elements
2 years ago
fields
2 years ago
groups
2 years ago
layouts
2 years ago
index.ts
2 years ago
styles.module.scss
2 years ago
styles.module.scss
94 lines
| 1 | .dateField { |
| 2 | :global { |
| 3 | .react-datepicker-wrapper { |
| 4 | width: 100%; |
| 5 | } |
| 6 | |
| 7 | .react-datepicker-popper[data-placement^=bottom]^=bottom] { |
| 8 | .react-datepicker__triangle { |
| 9 | left: 50% !important; |
| 10 | transform: translate(-50%, 0) !important; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | .react-datepicker__day { |
| 15 | &--selected { |
| 16 | &, |
| 17 | &:hover { |
| 18 | background-color: var(--givewp-primary-color); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | &--keyboard-selected { |
| 23 | background-color: var(--givewp-grey-100); |
| 24 | |
| 25 | &:hover { |
| 26 | background-color: var(--givewp-primary-color); |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | .multiSelectField { |
| 34 | :global { |
| 35 | .givewp-fields-multiSelect { |
| 36 | &__control { |
| 37 | border-color: rgb(102, 102, 102); |
| 38 | box-shadow: none; |
| 39 | |
| 40 | &:hover { |
| 41 | border-color: var(--givewp-primary-color); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | &__multi-value { |
| 46 | align-items: center; |
| 47 | gap: var(--givewp-spacing-2); |
| 48 | background: var(--givewp-grey-25); |
| 49 | padding: var(--givewp-spacing-2); |
| 50 | color: var(--givewp-grey-900); |
| 51 | |
| 52 | &__label { |
| 53 | font-size: 0.875rem; |
| 54 | line-height: 1rem; |
| 55 | font-weight: 500; |
| 56 | padding: 0; |
| 57 | } |
| 58 | |
| 59 | &__remove { |
| 60 | background: none; |
| 61 | border: 0; |
| 62 | color: currentColor; |
| 63 | padding: 0; |
| 64 | |
| 65 | svg { |
| 66 | width: 1rem; |
| 67 | height: 1rem; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | &__indicator { |
| 73 | color: rgb(102, 102, 102); |
| 74 | |
| 75 | &:hover { |
| 76 | color: var(--givewp-primary-color); |
| 77 | cursor: pointer; |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | &__indicator-separator { |
| 82 | background-color: rgb(102, 102, 102); |
| 83 | } |
| 84 | |
| 85 | &__option { |
| 86 | &--is-focused { |
| 87 | background-color: var(--givewp-grey-25); |
| 88 | cursor: pointer; |
| 89 | } |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 |