| 1 |
:root { |
| 2 |
--ipydatagrid-ui-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, |
| 3 |
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; |
| 4 |
--ipydatagrid-ui-font-size0: 0.83333em; |
| 5 |
--ipydatagrid-ui-font-size1: 13px; /* Base font size */ |
| 6 |
--ipydatagrid-ui-font-size2: 1.2em; |
| 7 |
--ipydatagrid-ui-font-size3: 1.44em; |
| 8 |
--ipydatagrid-padding: 3px; |
| 9 |
--ipydatagrid-filter-dialog-width: 220px; |
| 10 |
--ipydatagrid-filter-icon-light: url('icons/filter.svg'); |
| 11 |
--ipydatagrid-sort-asc-icon-light: url('icons/arrow-up-short.svg'); |
| 12 |
--ipydatagrid-sort-desc-icon-light: url('icons/arrow-down-short.svg'); |
| 13 |
--ipydatagrid-filter-icon-dark: url('icons/filter-dark.svg'); |
| 14 |
--ipydatagrid-sort-asc-icon-dark: url('icons/arrow-up-short-dark.svg'); |
| 15 |
--ipydatagrid-sort-desc-icon-dark: url('icons/arrow-down-short-dark.svg'); |
| 16 |
--ipydatagrid-filter-icon: var(--ipydatagrid-filter-icon-light); |
| 17 |
--ipydatagrid-sort-asc-icon: var(--ipydatagrid-sort-asc-icon-light); |
| 18 |
--ipydatagrid-sort-desc-icon: var(--ipydatagrid-sort-desc-icon-light); |
| 19 |
|
| 20 |
--ipydatagrid-layout-color0: white; |
| 21 |
--ipydatagrid-layout-color1: white; |
| 22 |
--ipydatagrid-layout-color2: #eeeeee; |
| 23 |
--ipydatagrid-layout-color3: #bdbdbd; |
| 24 |
--ipydatagrid-layout-color4: #757575; |
| 25 |
|
| 26 |
--ipydatagrid-ui-font-color0: rgba(0, 0, 0, 1); |
| 27 |
--ipydatagrid-ui-font-color1: rgba(0, 0, 0, 0.87); |
| 28 |
--ipydatagrid-ui-font-color2: rgba(0, 0, 0, 0.54); |
| 29 |
--ipydatagrid-ui-font-color3: rgba(0, 0, 0, 0.38); |
| 30 |
|
| 31 |
--ipydatagrid-border-color0: #bdbdbd; |
| 32 |
--ipydatagrid-border-color1: #bdbdbd; |
| 33 |
--ipydatagrid-border-color2: #e0e0e0; |
| 34 |
--ipydatagrid-border-color3: #eeeeee; |
| 35 |
|
| 36 |
--ipydatagrid-brand-color0: #1976d2; |
| 37 |
--ipydatagrid-brand-color1: #2196f3; |
| 38 |
--ipydatagrid-brand-color2: #64b5f6; |
| 39 |
--ipydatagrid-brand-color3: #bbdefb; |
| 40 |
--ipydatagrid-brand-color4: #e3f2fd; |
| 41 |
--ipydatagrid-brand-color5: #00e6ff; |
| 42 |
--ipydatagrid-brand-color6: #ffe100; |
| 43 |
--ipydatagrid-brand-color7: #009eb0; |
| 44 |
--ipydatagrid-brand-color8: #b09b00; |
| 45 |
|
| 46 |
--ipydatagrid-menu-bgcolor: white; |
| 47 |
--ipydatagrid-menu-border-color: #bdbdbd; |
| 48 |
--ipydatagrid-filter-dlg-textcolor: black; |
| 49 |
--ipydatagrid-filter-dlg-bgcolor: white; |
| 50 |
} |
| 51 |
|
| 52 |
.ipydatagrid-widget { |
| 53 |
width: 100%; |
| 54 |
height: 100%; |
| 55 |
font-family: var(--ipydatagrid-ui-font-family); |
| 56 |
font-size: var(--ipydatagrid-ui-font-size1); |
| 57 |
} |
| 58 |
|
| 59 |
.ipydatagrid-widget > div { |
| 60 |
width: 100%; |
| 61 |
height: 100%; |
| 62 |
padding: var(--ipydatagrid-padding); |
| 63 |
border: none; |
| 64 |
font-family: "Lato", Helvetica, sans-serif; |
| 65 |
} |
| 66 |
|
| 67 |
.lm-DataGrid-cellEditorOccluder { |
| 68 |
margin: var(--ipydatagrid-padding); |
| 69 |
} |
| 70 |
|
| 71 |
.ipydatagrid-filterMenu { |
| 72 |
font-family: var(--ipydatagrid-ui-font-family); |
| 73 |
font-size: var(--ipydatagrid-ui-font-size1); |
| 74 |
border: 1px solid var(--ipydatagrid-menu-border-color, #bdbdbd); |
| 75 |
box-shadow: 5px 5px 5px rgba(0, 0, 0, .2); |
| 76 |
background: var(--ipydatagrid-menu-bgcolor, white); |
| 77 |
z-index: 10; |
| 78 |
padding: 5px; |
| 79 |
min-height: 143px; |
| 80 |
} |
| 81 |
|
| 82 |
.ipydatagrid-filterMenu select, .ipydatagrid-filterMenu input, .ipydatagrid-filterMenu button { |
| 83 |
color: var(--ipydatagrid-ui-font-color0, black) !important; |
| 84 |
background: var(--ipydatagrid-menu-bgcolor, white); |
| 85 |
font-size: var(--ipydatagrid-ui-font-size1); |
| 86 |
} |
| 87 |
|
| 88 |
.ipydatagrid-filterMenuIcon { |
| 89 |
background-size: 21px; |
| 90 |
background-repeat: no-repeat; |
| 91 |
} |
| 92 |
|
| 93 |
.ipydatagrid-filterMenuIcon-filter { |
| 94 |
background-image: var(--ipydatagrid-filter-icon); |
| 95 |
} |
| 96 |
|
| 97 |
.ipydatagrid-filterMenuIcon-sortAsc { |
| 98 |
background-image: var(--ipydatagrid-sort-asc-icon); |
| 99 |
} |
| 100 |
|
| 101 |
.ipydatagrid-filterMenuIcon-sortDesc { |
| 102 |
background-image: var(--ipydatagrid-sort-desc-icon); |
| 103 |
} |
| 104 |
|
| 105 |
.ipydatagrid-unique-value-grid { |
| 106 |
min-height: 165px; |
| 107 |
min-width: var(--ipydatagrid-filter-dialog-width); |
| 108 |
z-index: 1; |
| 109 |
} |
| 110 |
|
| 111 |
.ipydatagrid-filter-title { |
| 112 |
min-height: 25px; |
| 113 |
min-width: var(--ipydatagrid-filter-dialog-width); |
| 114 |
} |
| 115 |
|
| 116 |
.ipydatagrid-filter-apply { |
| 117 |
min-height: 20px; |
| 118 |
} |
| 119 |
|
| 120 |
.ipydatagrid-filter-condition-select { |
| 121 |
min-height: 35px; |
| 122 |
min-width: var(--ipydatagrid-filter-dialog-width); |
| 123 |
} |
| 124 |
|
| 125 |
.ipydatagrid-context-menu { |
| 126 |
border: 1px solid var(--ipydatagrid-menu-border-color, #bdbdbd); |
| 127 |
background-color: var(--ipydatagrid-menu-bgcolor, white) !important; |
| 128 |
color: var(--ipydatagrid-ui-font-color0, black) !important; |
| 129 |
font-family: var(--ipydatagrid-ui-font-family); |
| 130 |
font-size: var(--ipydatagrid-ui-font-size1); |
| 131 |
padding-top: 7px; |
| 132 |
padding-bottom: 4px; |
| 133 |
padding-left: 3px; |
| 134 |
} |
| 135 |
|
| 136 |
.ipydatagrid-context-menu .lm-Menu-item.lm-mod-active, .ipydatagrid-context-menu .p-Menu-item.p-mod-active { |
| 137 |
background-color: var(--ipydatagrid-layout-color2); |
| 138 |
} |
| 139 |
|
| 140 |
.ipydatagrid-text-input-filter { |
| 141 |
transform: translate(5px, 0px); |
| 142 |
} |