-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.scss
123 lines (103 loc) · 2.33 KB
/
index.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@import '../../00-materials/styles/mixins/check-mark-animated';
$border-width: 1px;
$border-type: solid;
axa-input-text {
.a-input-text__input-wrapper {
display: flex;
align-items: center;
width: 100%;
}
.a-input-text__input-elements {
position: relative;
display: flex;
align-items: center;
width: 100%;
}
.a-input-text__info-button {
margin-left: 10px;
width: 32px;
height: 32px;
}
.a-input-text__input {
@include text(t4);
appearance: none;
background: $color-prim-white;
border: $border-width $border-type $color-light-grey;
border-radius: 0;
box-sizing: border-box;
color: $color-dark-grey;
height: 40px;
padding: 0 20px;
width: 100%;
&::placeholder {
color: $color-light-grey;
}
&::-ms-clear {
display: none;
}
&:hover,
&:active,
&:focus {
border: $border-width $border-type $color-axa-blue;
}
&:focus,
&.focus {
border: $border-width $border-type $color-axa-blue;
outline: $border-width $border-type $color-axa-blue;
outline-offset: -2px;
}
&--error {
border: $border-width $border-type $color-shy-tomato;
&:hover,
&:active,
&:focus {
border: $border-width $border-type $color-shy-tomato;
}
&:focus,
&.focus {
outline: $border-width $border-type $color-shy-tomato;
outline-offset: -2px;
}
}
&:disabled,
&--readonly {
background-color: $color-alabaster;
border-color: $color-mercury;
color: $color-light-grey;
-webkit-text-fill-color: $color-light-grey;
opacity: 1;
}
}
.a-input-text__input--check {
padding-right: 31px;
}
.a-input-text__label {
@include text(t3);
display: block;
font-weight: 600;
color: $color-dark-grey;
margin-bottom: 10px;
}
&[disabled] .a-input-text__label,
&[readonly] .a-input-text__label {
color: $color-light-grey;
}
.a-input-text__check {
@include check-mark-animated();
position: absolute;
top: 7px;
right: 5px;
}
.a-input-text__error {
@include text(t4);
display: block;
color: $color-shy-tomato;
margin-top: 10px;
}
.a-input-text__character-overflow-error {
color: $color-shy-tomato;
}
.a-input-text__counter-info {
margin-top: 10px;
}
}