|
1 | 1 | @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"); |
2 | | - |
| 2 | +/***************** |
| 3 | +* Plugin variables |
| 4 | +******************/ |
| 5 | +body { |
| 6 | + --react-datepicker-navigation-height: 24px; |
| 7 | + --react-datepicker-navigation-width: 24px; |
| 8 | +} |
| 9 | +/***************** |
| 10 | +* Base |
| 11 | +******************/ |
3 | 12 | .database-plugin__html { |
4 | 13 | box-sizing: border-box; |
5 | 14 | } |
@@ -145,7 +154,7 @@ div.database-plugin__checkbox { |
145 | 154 | color: currentColor; |
146 | 155 | width: 1.15em; |
147 | 156 | height: 1.15em; |
148 | | - border: 0.15em solid currentColor; |
| 157 | + border: 0.05em solid currentColor; |
149 | 158 | border-radius: 0.15em; |
150 | 159 | transform: translateY(-0.075em); |
151 | 160 |
|
@@ -179,6 +188,10 @@ div.database-plugin__checkbox { |
179 | 188 | outline-offset: max(2px, 0.15em); |
180 | 189 | } |
181 | 190 |
|
| 191 | +.database-plugin__checkbox input[type="checkbox"]:checked:after { |
| 192 | + background-color: var(--form-background); |
| 193 | +} |
| 194 | + |
182 | 195 | .database-plugin__md_cell { |
183 | 196 | vertical-align: middle; |
184 | 197 | } |
@@ -671,9 +684,9 @@ div.database-plugin__checkbox { |
671 | 684 | color: var(--text-on-accent); |
672 | 685 | } |
673 | 686 |
|
674 | | -/* |
| 687 | +/************************* |
675 | 688 | * React-datepicker styles |
676 | | -*/ |
| 689 | +**************************/ |
677 | 690 | .react-datepicker__year-read-view--down-arrow, |
678 | 691 | .react-datepicker__month-read-view--down-arrow, |
679 | 692 | .react-datepicker__month-year-read-view--down-arrow, |
@@ -920,8 +933,8 @@ div.database-plugin__checkbox { |
920 | 933 | padding: 0; |
921 | 934 | border: none; |
922 | 935 | z-index: 4; |
923 | | - height: 32px; |
924 | | - width: 32px; |
| 936 | + height: var(--react-datepicker-navigation-height); |
| 937 | + width: var(--react-datepicker-navigation-width); |
925 | 938 | text-indent: -999em; |
926 | 939 | overflow: hidden; |
927 | 940 | } |
@@ -1544,37 +1557,3 @@ div.database-plugin__checkbox { |
1544 | 1557 | padding: 5px 0; |
1545 | 1558 | clear: left; |
1546 | 1559 | } |
1547 | | - |
1548 | | -.react-datepicker__portal { |
1549 | | - position: fixed; |
1550 | | - width: 100vw; |
1551 | | - height: 100vh; |
1552 | | - background-color: var(--background-primary); |
1553 | | - left: 0; |
1554 | | - top: 0; |
1555 | | - justify-content: center; |
1556 | | - align-items: center; |
1557 | | - display: flex; |
1558 | | - z-index: 4; |
1559 | | -} |
1560 | | - |
1561 | | -.react-datepicker__portal .react-datepicker__day-name, |
1562 | | -.react-datepicker__portal .react-datepicker__day, |
1563 | | -.react-datepicker__portal .react-datepicker__time-name { |
1564 | | - width: 3rem; |
1565 | | - line-height: 3rem; |
1566 | | -} |
1567 | | - |
1568 | | -@media (max-width: 400px), (max-height: 550px) { |
1569 | | - .react-datepicker__portal .react-datepicker__day-name, |
1570 | | - .react-datepicker__portal .react-datepicker__day, |
1571 | | - .react-datepicker__portal .react-datepicker__time-name { |
1572 | | - width: 2rem; |
1573 | | - line-height: 2rem; |
1574 | | - } |
1575 | | -} |
1576 | | - |
1577 | | -.react-datepicker__portal .react-datepicker__current-month, |
1578 | | -.react-datepicker__portal .react-datepicker-time__header { |
1579 | | - font-size: 1.44rem; |
1580 | | -} |
0 commit comments