File tree Expand file tree Collapse file tree 11 files changed +62
-34
lines changed Expand file tree Collapse file tree 11 files changed +62
-34
lines changed Original file line number Diff line number Diff line change
1
+ // GUIKit colors
2
+ $gui-kit-gray-30 : #aaa ;
3
+ $gui-kit-gray-90 : #2a2a2a ;
4
+ $gui-kit-level-2 : #0ab88a ;
5
+
1
6
@mixin textInputLabel {
2
7
font-size : 12px ;
3
8
line-height : 24px ;
6
11
top : 0 ;
7
12
left : 8px ;
8
13
padding : 0 8px ;
9
- color : $tc -gray-30 ;
14
+ color : $gui-kit -gray-30 ;
10
15
display : none ;
11
16
}
12
17
13
18
@mixin textInput {
14
- border : 1px solid $tc -gray-30 ;
19
+ border : 1px solid $gui-kit -gray-30 ;
15
20
border-radius : 6px ;
16
21
font-size : 16px ;
17
22
padding : 15px ;
20
25
21
26
& ::-webkit-input-placeholder {
22
27
/* Edge */
23
- color : $tc -gray-30 ;
28
+ color : $gui-kit -gray-30 ;
24
29
opacity : 1 ;
25
30
text-transform : none ;
26
31
font-size : 16px ;
27
32
}
28
33
29
34
& :-ms-input-placeholder {
30
35
/* Internet Explorer 10-11 */
31
- color : $tc -gray-30 ;
36
+ color : $gui-kit -gray-30 ;
32
37
opacity : 1 ;
33
38
text-transform : none ;
34
39
font-size : 16px ;
35
40
}
36
41
37
42
& ::placeholder {
38
- color : $tc -gray-30 ;
43
+ color : $gui-kit -gray-30 ;
39
44
opacity : 1 ;
40
45
text-transform : none ;
41
46
font-size : 16px ;
42
47
}
48
+
49
+ & :focus {
50
+ border : 1px solid $gui-kit-gray-30 ;
51
+ box-shadow : none ;
52
+ }
43
53
}
44
54
45
55
@mixin textInputXs {
Original file line number Diff line number Diff line change 6
6
top : 0 ;
7
7
left : 0 ;
8
8
background-color : $tc-white ;
9
- border : 1px solid $tc -gray-30 ;
9
+ border : 1px solid $gui-kit -gray-30 ;
10
10
11
11
/* Create the checkmark/indicator (hidden when not checked) */
12
12
.after {
96
96
97
97
/* When the checkbox is checked, add a blue background */
98
98
& :checked ~ .checkmark {
99
- background-color : $tc -level-2 ;
99
+ background-color : $gui-kit -level-2 ;
100
100
border : none ;
101
101
box-shadow : inset 0 1px 2px 0 rgba (0 , 0 , 0 , 0.29 );
102
102
Original file line number Diff line number Diff line change 15
15
}
16
16
17
17
& .isFocused .label {
18
- color : $tc -level-2 ;
18
+ color : $gui-kit -level-2 ;
19
19
}
20
20
21
21
& .haveError .label ,
64
64
top : 64px !important ;
65
65
66
66
.DayPicker__withBorder {
67
- border : 1px solid $tc -gray-30 ;
67
+ border : 1px solid $gui-kit -gray-30 ;
68
68
box-shadow : 2px 2px 3px 0 $tc-gray-neutral-light ;
69
69
overflow : hidden ;
70
70
}
79
79
80
80
svg {
81
81
path {
82
- fill : $tc -level-2 ;
82
+ fill : $gui-kit -level-2 ;
83
83
}
84
84
}
85
85
115
115
.DayPicker_weekHeader_ul {
116
116
.DayPicker_weekHeader_li {
117
117
small {
118
- color : $tc -gray-90 ;
118
+ color : $gui-kit -gray-90 ;
119
119
font-weight : 500 !important ;
120
120
}
121
121
}
157
157
background : transparent !important ;
158
158
159
159
div {
160
- background : $tc -level-2 ;
160
+ background : $gui-kit -level-2 ;
161
161
}
162
162
}
163
163
Original file line number Diff line number Diff line change 33
33
34
34
& .isFocused {
35
35
.label {
36
- color : $tc -level-2 ;
36
+ color : $gui-kit -level-2 ;
37
37
}
38
38
39
39
.iconDropdown {
54
54
.Select-control {
55
55
margin : 0 ;
56
56
padding : 0 ;
57
- border : 1px solid $tc -gray-30 !important ;
57
+ border : 1px solid $gui-kit -gray-30 !important ;
58
58
border-radius : 6px !important ;
59
59
height : 52px ;
60
60
outline : none !important ;
67
67
padding : 0 ;
68
68
height : 22px ;
69
69
line-height : 22px ;
70
+
71
+ & :focus {
72
+ border : none ;
73
+ box-shadow : none ;
74
+ }
70
75
}
71
76
}
72
77
88
93
}
89
94
90
95
.Select-placeholder {
91
- color : $tc -gray-30 ;
96
+ color : $gui-kit -gray-30 ;
92
97
opacity : 1 ;
93
98
text-transform : none ;
94
99
font-size : 16px ;
127
132
128
133
.Select-menu-outer {
129
134
top : calc (100% + 2px ) !important ;
130
- border : 1px solid $tc -gray-30 !important ;
135
+ border : 1px solid $gui-kit -gray-30 !important ;
131
136
border-radius : 0 !important ;
132
137
max-height : 269px ;
133
138
z-index : 7 ;
139
144
padding : 0 15px !important ;
140
145
font-size : 16px !important ;
141
146
line-height : 30px !important ;
142
- color : $tc -gray-90 !important ;
147
+ color : $gui-kit -gray-90 !important ;
143
148
background-color : transparent !important ;
144
149
145
150
& .is-selected {
146
151
font-weight : bold !important ;
147
152
}
148
153
149
154
& :hover {
150
- background-color : $tc-level-2 !important ;
155
+ background-color : #229173 !important ;
151
156
color : $tc-white !important ;
152
157
}
153
158
}
169
174
.Select- control {
170
175
height : 52px ;
171
176
}
177
+
178
+ .Select-input {
179
+ input {
180
+ height : 52px ;
181
+ }
182
+ }
172
183
}
173
184
}
174
185
182
193
.Select-input {
183
194
input {
184
195
font-size : 14px ;
196
+ height : 40px ;
185
197
}
186
198
}
187
199
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ function DropdownTerms({
47
47
selectInput [ 0 ] . style . top = focused ? `${ height1 + height2 - 1 } px` : '0' ;
48
48
inputField = selectInput [ 0 ] . getElementsByTagName ( 'input' ) ;
49
49
inputField [ 0 ] . placeholder = focused ? addNewOptionPlaceholder : '' ;
50
+ inputField [ 0 ] . style . border = 'none' ;
51
+ inputField [ 0 ] . style . boxShadow = 'none' ;
50
52
}
51
53
} , [ focused , selectedOption ] ) ;
52
54
Original file line number Diff line number Diff line change 51
51
padding : 0 !important ;
52
52
border-radius : 5px !important ;
53
53
font-size : 12 !important ;
54
- color : $tc -gray-90 !important ;
54
+ color : $gui-kit -gray-90 !important ;
55
55
padding-left : 7px !important ;
56
56
margin-top : 0 !important ;
57
57
margin-bottom : 5px !important ;
64
64
border-right : none !important ;
65
65
padding : 0 7px !important ;
66
66
margin : 0 !important ;
67
- color : $tc -gray-90 !important ;
67
+ color : $gui-kit -gray-90 !important ;
68
68
background : transparent !important ;
69
69
}
70
70
74
74
white-space : nowrap ;
75
75
overflow : hidden ;
76
76
text-overflow : ellipsis ;
77
- color : $tc -gray-90 !important ;
77
+ color : $gui-kit -gray-90 !important ;
78
78
text-decoration : none !important ;
79
+ font-size : 12px ;
79
80
}
80
81
}
81
82
107
108
.Select- input {
108
109
background : $tc-white ;
109
110
height : 40px !important ;
110
- border : 1px solid $tc -gray-30 ;
111
+ border : 1px solid $gui-kit -gray-30 ;
111
112
right : -1px ;
112
113
left : -1px ;
113
114
cursor : auto ;
119
120
120
121
& ::-webkit-input-placeholder {
121
122
/* Edge */
122
- color : $tc -gray-30 ;
123
+ color : $gui-kit -gray-30 ;
123
124
opacity : 1 ;
124
125
text-transform : none ;
125
126
font-size : 16px ;
126
127
}
127
128
128
129
& :-ms-input-placeholder {
129
130
/* Internet Explorer 10-11 */
130
- color : $tc -gray-30 ;
131
+ color : $gui-kit -gray-30 ;
131
132
opacity : 1 ;
132
133
text-transform : none ;
133
134
font-size : 16px ;
134
135
}
135
136
136
137
& ::placeholder {
137
- color : $tc -gray-30 ;
138
+ color : $gui-kit -gray-30 ;
138
139
opacity : 1 ;
139
140
text-transform : none ;
140
141
font-size : 16px ;
Original file line number Diff line number Diff line change 7
7
left : 0 ;
8
8
background-color : $tc-white ;
9
9
border-radius : 50% ;
10
- border : 1px solid $tc -gray-30 ;
10
+ border : 1px solid $gui-kit -gray-30 ;
11
11
12
12
/* Create the indicator (the dot/circle - hidden when not checked) */
13
13
& ::after {
44
44
-moz-user-select : none ;
45
45
-ms-user-select : none ;
46
46
user-select : none ;
47
- color : $tc -gray-90 ;
47
+ color : $gui-kit -gray-90 ;
48
48
49
49
/* Hide the browser's default radio button */
50
50
input {
54
54
55
55
/* When the radio button is checked, add a blue background */
56
56
& :checked ~ .checkmark {
57
- background-color : $tc -level-2 ;
57
+ background-color : $gui-kit -level-2 ;
58
58
box-shadow : inset 0 1px 2px 0 rgba (0 , 0 , 0 , 0.29 );
59
59
border : none ;
60
60
Original file line number Diff line number Diff line change 46
46
}
47
47
48
48
input :not ([type = ' checkbox' ]):focus + label {
49
- color : $tc -level-2 ;
49
+ color : $gui-kit -level-2 ;
50
50
}
51
51
52
52
input :not ([type = ' checkbox' ]).haveError + label ,
Original file line number Diff line number Diff line change 25
25
}
26
26
27
27
& :focus ~ label {
28
- color : $tc -level-2 ;
28
+ color : $gui-kit -level-2 ;
29
29
}
30
30
31
31
& .haveError ~ label ,
Original file line number Diff line number Diff line change 12
12
left : 0 ;
13
13
right : 0 ;
14
14
bottom : 0 ;
15
- background-color : $tc -gray-30 ;
15
+ background-color : $gui-kit -gray-30 ;
16
16
box-shadow : inset 0 1px 2px 0 rgba (0 , 0 , 0 , 0.29 );
17
17
18
18
& ::before {
81
81
height : 0 ;
82
82
83
83
& :focus + .slider {
84
- box-shadow : 0 0 1px $tc -level-2 ;
84
+ box-shadow : 0 0 1px $gui-kit -level-2 ;
85
85
}
86
86
87
87
& :checked + .slider {
88
- background-color : $tc -level-2 ;
88
+ background-color : $gui-kit -level-2 ;
89
89
}
90
90
}
91
91
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ export default function useWindowSize() {
11
11
} ) ;
12
12
13
13
function changeWindowSize ( ) {
14
- setWindowSize ( { width : window . innerWidth , height : window . innerHeight } ) ;
14
+ setWindowSize ( {
15
+ width : isSSR ? window . innerWidth : 1200 ,
16
+ height : isSSR ? window . innerHeight : 800 ,
17
+ } ) ;
15
18
}
16
19
17
20
React . useEffect ( ( ) => {
You can’t perform that action at this time.
0 commit comments