|
| 1 | +@import "../../styles/variables"; |
| 2 | + |
| 3 | +.c4input { |
| 4 | + border: none; |
| 5 | + margin: 2rem 0; |
| 6 | + |
| 7 | + p { |
| 8 | + margin: 0; |
| 9 | + padding-bottom: $spacing__s; |
| 10 | + color: $color__text; |
| 11 | + font-size: .933rem; |
| 12 | + } |
| 13 | + |
| 14 | + &--label { |
| 15 | + padding-bottom: $spacing__s; |
| 16 | + display: block; |
| 17 | + color: $color__white; |
| 18 | + font-weight: 600; |
| 19 | + cursor: pointer; |
| 20 | + } |
| 21 | + |
| 22 | + &--help { |
| 23 | + color: $color__n-20; |
| 24 | + font-size: $font-size__small; |
| 25 | + |
| 26 | + a { |
| 27 | + text-decoration: none; |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | + &--wrapper { |
| 32 | + display: flex; |
| 33 | + align-items: center; |
| 34 | + } |
| 35 | + |
| 36 | + &--control { |
| 37 | + display: block; |
| 38 | + width: 100%; |
| 39 | + padding: $spacing__s; |
| 40 | + border: 1px solid $color__n-85; |
| 41 | + border-radius: $border-radius__m; |
| 42 | + font-size: 1rem; |
| 43 | + line-height: 1.5rem; |
| 44 | + color: $color__white; |
| 45 | + background-color: $color__n-85; |
| 46 | + transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; |
| 47 | + |
| 48 | + &--error { |
| 49 | + border: 2px solid $color__form-error !important; |
| 50 | + } |
| 51 | + |
| 52 | + &:focus { |
| 53 | + border-color: $color__button-blurple; |
| 54 | + outline: 0; |
| 55 | + box-shadow: 0 0 0 0.2rem rgba($color__button-blurple, 0.25); |
| 56 | + } |
| 57 | + &:disabled { |
| 58 | + background-color: $color__n-90; |
| 59 | + border-color: $color__n-90; |
| 60 | + color: $color__n-30; |
| 61 | + cursor: not-allowed; |
| 62 | + } |
| 63 | + &::placeholder { |
| 64 | + color: $color__n-20; |
| 65 | + } |
| 66 | + |
| 67 | + &::-webkit-calendar-picker-indicator { |
| 68 | + filter: invert(1); |
| 69 | + } |
| 70 | + |
| 71 | + &[type="number"] { |
| 72 | + &::-webkit-outer-spin-button,&::-webkit-inner-spin-button { |
| 73 | + -webkit-appearance: none; |
| 74 | + } |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + &--error { |
| 79 | + margin-top: $spacing__s; |
| 80 | + color: $color__form-error !important; |
| 81 | + |
| 82 | + &::before { |
| 83 | + content: "⚠ " |
| 84 | + } |
| 85 | + } |
| 86 | +} |
| 87 | + |
| 88 | +.c4input--textarea { |
| 89 | + textarea { |
| 90 | + min-height: 8.75rem; |
| 91 | + resize: vertical; |
| 92 | + } |
| 93 | +} |
| 94 | + |
| 95 | +.c4input--select { |
| 96 | + .c4input--control { |
| 97 | + padding: 0; |
| 98 | + } |
| 99 | + |
| 100 | + .c4input--reactselect { |
| 101 | + &__control { |
| 102 | + background-color: $color__n-85 !important; |
| 103 | + padding: 0 !important; |
| 104 | + color: $color__white !important; |
| 105 | + border: transparent !important; |
| 106 | + cursor: pointer !important; |
| 107 | + |
| 108 | + &--is-disabled { |
| 109 | + background-color: $color__n-90 !important; |
| 110 | + |
| 111 | + .c4input--reactselect__indicator { |
| 112 | + color: $color__n-30 !important; |
| 113 | + } |
| 114 | + } |
| 115 | + |
| 116 | + &--is-focused,&--is-focused:focus-within { |
| 117 | + border-color: $color__button-blurple; |
| 118 | + outline: 0; |
| 119 | + box-shadow: 0 0 0 0.2rem rgba($color__button-blurple, 0.25) !important; |
| 120 | + } |
| 121 | + } |
| 122 | + |
| 123 | + &__indicator-separator { |
| 124 | + background-color: $color__n-50 !important; |
| 125 | + } |
| 126 | + |
| 127 | + &__indicator { |
| 128 | + color: $color__white !important; |
| 129 | + &:focus, &:hover { |
| 130 | + color: $color__white !important; |
| 131 | + } |
| 132 | + } |
| 133 | + |
| 134 | + &__value-container, &__input-container { |
| 135 | + font-family: $font__default; |
| 136 | + font-size: 1rem; |
| 137 | + line-height: 1.5rem; |
| 138 | + margin: 0px !important; |
| 139 | + padding: 0.25rem 0.5rem !important; |
| 140 | + } |
| 141 | + |
| 142 | + &__single-value { |
| 143 | + color: $color__white !important; |
| 144 | + margin: 0px 0.5rem; |
| 145 | + |
| 146 | + &--is-disabled { |
| 147 | + color: $color__n-30 !important; |
| 148 | + } |
| 149 | + } |
| 150 | + |
| 151 | + &__menu { |
| 152 | + background-color: $color__n-80 !important; |
| 153 | + color: $color__white !important; |
| 154 | + } |
| 155 | + |
| 156 | + &__option--is-focused { |
| 157 | + background-color: $color__n-60 !important; |
| 158 | + outline: 2px solid $color__n-60 !important; |
| 159 | + } |
| 160 | + |
| 161 | + &__placeholder { |
| 162 | + $color: $color__white; |
| 163 | + opacity: 0.5; |
| 164 | + font-size: 0.9em; |
| 165 | + } |
| 166 | + |
| 167 | + &__input { |
| 168 | + color: $color__white !important; |
| 169 | + |
| 170 | + &:focus { |
| 171 | + border-radius: $border-radius__s; |
| 172 | + box-shadow: 0 0 0 0.2rem rgba($color__button-blurple, 0.25) !important; |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | + &__multi-value { |
| 177 | + background-color: $color__n-60 !important; |
| 178 | + |
| 179 | + &__label { |
| 180 | + color: $color__white !important; |
| 181 | + } |
| 182 | + |
| 183 | + &--is-disabled { |
| 184 | + color: $color__n-30 !important; |
| 185 | + |
| 186 | + .c4input--reactselect__multi-value__label { |
| 187 | + color: $color__n-30 !important; |
| 188 | + } |
| 189 | + } |
| 190 | + } |
| 191 | + |
| 192 | + &__multi-value__remove:hover { |
| 193 | + color: $color__red !important; |
| 194 | + background-color: rgba(255, 255, 255, 0.1) !important; |
| 195 | + } |
| 196 | + } |
| 197 | +} |
0 commit comments