|
| 1 | +/* textarea */ |
| 2 | +textarea{ |
| 3 | +background-color:rgb(var(--theme-gray-02)); |
| 4 | +padding:01em; |
| 5 | +margin:001em0; |
| 6 | +color:rgb(var(--form-input-text)); |
| 7 | +font-size:1em; |
| 8 | +font-family:var(--font-regular); |
| 9 | +line-height:2em; |
| 10 | +height:5em; |
| 11 | +min-height:2.5em; |
| 12 | +min-width:0; |
| 13 | +width:100%; |
| 14 | +border-width:var(--form-input-border); |
| 15 | +border-style: solid; |
| 16 | +border-color: transparent; |
| 17 | +border-radius:var(--theme-radius); |
| 18 | +cursor: text; |
| 19 | +resize: vertical; |
| 20 | +display: block; |
| 21 | +transition: background-color var(--layout-timing-extra-fast), color var(--layout-timing-extra-fast), border-color var(--layout-timing-extra-fast), box-shadow var(--layout-timing-extra-fast); |
| 22 | +-moz-appearance: textfield; |
| 23 | +} |
| 24 | + |
| 25 | +textarea:hover{ |
| 26 | +background-color:rgb(var(--theme-gray-03)); |
| 27 | +color:rgb(var(--form-input-text-hover)); |
| 28 | +outline: none; |
| 29 | +box-shadow:000var(--layout-line-width) rgb(var(--theme-gray-06)); |
| 30 | +} |
| 31 | + |
| 32 | +textarea:focus{ |
| 33 | +background-color:rgb(var(--theme-gray-01)); |
| 34 | +color:rgb(var(--form-input-text-focus)); |
| 35 | +outline: none; |
| 36 | +z-index:2; |
| 37 | +box-shadow:000var(--layout-line-width) rgb(var(--theme-accent)),000calc(var(--layout-line-width) *2) rgba(var(--theme-accent),0.25); |
| 38 | +} |
| 39 | + |
| 40 | +textarea[disabled]{ |
| 41 | +background-color: transparent; |
| 42 | +color:rgb(var(--form-input-text-disabled)); |
| 43 | +border-color:rgb(var(--form-input-text-disabled)); |
| 44 | +cursor: default; |
| 45 | +box-shadow: none; |
| 46 | +} |
| 47 | + |
| 48 | +textarea[disabled]:hover, |
| 49 | +textarea[disabled]:focus{ |
| 50 | +color:rgb(var(--form-input-text-disabled)); |
| 51 | +} |
| 52 | + |
| 53 | +textarea::placeholder{ |
| 54 | +color:rgb(var(--form-input-placeholder)); |
| 55 | +transition: color var(--layout-timing-extra-fast); |
| 56 | +} |
| 57 | + |
| 58 | +textarea:hover::placeholder{ |
| 59 | +color:rgb(var(--form-input-placeholder-hover-focus)); |
| 60 | +} |
| 61 | + |
| 62 | +textarea:focus::placeholder{ |
| 63 | +color:rgb(var(--form-input-placeholder-hover-focus)); |
| 64 | +} |
| 65 | + |
| 66 | +textarea[disabled]:hover::placeholder, |
| 67 | +textarea[disabled]:focus::placeholder{ |
| 68 | +color:rgb(var(--form-input-placeholder-disabled)); |
| 69 | +} |
| 70 | + |
1 | 71 | /* email, number, password, search, tel, text */ |
2 | 72 | input[type="email"], |
3 | 73 | input[type="number"], |
|
0 commit comments