UNPKG

1.07 kBSCSSView Raw
1@import '../../styles/common/colors';
2@import '../../styles/common/screen';
3
4.textarea-component {
5 label {
6 display: block;
7 margin-bottom: 10px;
8 font-size: 16px;
9 color: $navy-text;
10 font-weight: 200;
11 }
12
13 textarea {
14 color: $primary-4;
15 border: solid 2px $neutral-3;
16 border-radius: 3px;
17 box-sizing: border-box;
18 font-size: 14px;
19 line-height: 1.6;
20 padding: 10px;
21 width: 100%;
22 max-width: 100%;
23 transition: border-color ease-in-out .15s;
24
25 @media #{$media-small-minus} {
26 min-width: 240px;
27 }
28
29 &:hover {
30 border-color: rgba($neutral-4, .4);
31 }
32
33 &:focus {
34 border-color: rgba($neutral-4, .6);
35 outline: 0;
36 }
37 }
38
39 &.textarea-error {
40 textarea {
41 border: 2px solid $danger;
42
43 &:focus {
44 box-shadow: 0 0 2px $danger;
45 }
46 }
47 }
48
49 &.textarea-disabled {
50 cursor: not-allowed;
51
52 textarea {
53 background-color: rgba($neutral-3, .6);
54 cursor: not-allowed;
55
56 &:hover {
57 border: solid 2px $neutral-3;
58 }
59 }
60 }
61
62}