2
2
box-sizing : border-box;
3
3
}
4
4
5
- input ,
6
- button {
5
+ .AppWrapper input ,
6
+ .AppWrapper button {
7
+ all : unset;
7
8
-webkit-appearance : none;
8
9
-moz-appearance : none;
9
10
appearance : none;
10
11
outline : none;
11
12
border-style : none;
12
13
}
13
14
14
- html {
15
- background-color : # 6772e5 ;
16
- font-size : 16px ;
17
- font-family : Roboto, Open Sans, Segoe UI, sans-serif;
18
- font-weight : 500 ;
19
- font-style : normal;
20
- text-rendering : optimizeLegibility;
21
- height : 100% ;
22
- }
23
-
24
- body {
25
- height : 100% ;
26
- margin : 0 ;
27
- }
28
-
29
- # root {
30
- height : 100% ;
31
- display : flex;
32
- align-items : center;
33
- justify-content : center;
34
- }
35
-
36
15
.AppWrapper {
37
16
width : 500px ;
38
17
height : 400px ;
@@ -50,11 +29,11 @@ body {
50
29
}
51
30
}
52
31
53
- .Form {
32
+ .AppWrapper . Form {
54
33
animation : fade 200ms ease-out;
55
34
}
56
35
57
- .FormGroup {
36
+ .AppWrapper . FormGroup {
58
37
margin : 0 15px 20px ;
59
38
padding : 0 ;
60
39
border-style : none;
65
44
border-radius : 4px ;
66
45
}
67
46
68
- .FormRow {
47
+ .AppWrapper . FormRow {
69
48
display : -ms-flexbox;
70
49
display : flex;
71
50
-ms-flex-align : center;
@@ -74,11 +53,12 @@ body {
74
53
border-top : 1px solid # 819efc ;
75
54
}
76
55
77
- .FormRow : first-child {
56
+ .AppWrapper . FormRow : first-child {
78
57
border-top : none;
79
58
}
80
59
81
- .FormRowLabel {
60
+ .AppWrapper .FormRowLabel {
61
+ all : unset;
82
62
width : 15% ;
83
63
min-width : 70px ;
84
64
padding : 11px 0 ;
@@ -94,14 +74,14 @@ body {
94
74
opacity : 1 ;
95
75
}
96
76
}
97
- .FormRowInput : -webkit-autofill {
77
+ .AppWrapper . FormRowInput : -webkit-autofill {
98
78
-webkit-text-fill-color : # fce883 ;
99
79
/* Hack to hide the default webkit autofill */
100
80
transition : background-color 100000000s ;
101
81
animation : 1ms void-animation-out;
102
82
}
103
83
104
- .FormRowInput {
84
+ .AppWrapper . FormRowInput {
105
85
font-size : 16px ;
106
86
width : 100% ;
107
87
padding : 11px 15px 11px 0 ;
@@ -110,20 +90,23 @@ body {
110
90
animation : 1ms void-animation-out;
111
91
}
112
92
113
- .FormRowInput ::placeholder {
93
+ .AppWrapper . FormRowInput ::placeholder {
114
94
color : # 87bbfd ;
115
95
}
116
96
117
- .StripeElement--webkit-autofill {
97
+ .AppWrapper . StripeElement--webkit-autofill {
118
98
background : transparent !important ;
119
99
}
120
100
121
- .StripeElement {
101
+ .AppWrapper . StripeElement {
122
102
width : 100% ;
123
103
padding : 11px 15px 11px 0 ;
104
+ margin : 0 ;
105
+ background : none;
124
106
}
125
107
126
- .SubmitButton {
108
+ .AppWrapper .SubmitButton {
109
+ text-align : center;
127
110
display : block;
128
111
font-size : 16px ;
129
112
width : calc (100% - 30px );
@@ -140,28 +123,28 @@ body {
140
123
will-change : transform, background-color, box-shadow;
141
124
}
142
125
143
- .SubmitButton : active {
126
+ .AppWrapper . SubmitButton : active {
144
127
background-color : # d782d9 ;
145
128
box-shadow : 0 6px 9px rgba (50 , 50 , 93 , 0.06 ), 0 2px 5px rgba (0 , 0 , 0 , 0.08 ),
146
129
inset 0 1px 0 # e298d8 ;
147
130
transform : scale (0.99 );
148
131
}
149
132
150
- .SubmitButton .SubmitButton--error {
133
+ .AppWrapper . SubmitButton .SubmitButton--error {
151
134
transform : translateY (15px );
152
135
}
153
- .SubmitButton .SubmitButton--error : active {
136
+ .AppWrapper . SubmitButton .SubmitButton--error : active {
154
137
transform : scale (0.99 ) translateY (15px );
155
138
}
156
139
157
- .SubmitButton : disabled {
140
+ .AppWrapper . SubmitButton : disabled {
158
141
opacity : 0.5 ;
159
142
cursor : default;
160
143
background-color : # 7795f8 ;
161
144
box-shadow : none;
162
145
}
163
146
164
- .ErrorMessage {
147
+ .AppWrapper . ErrorMessage {
165
148
color : # fff ;
166
149
position : absolute;
167
150
display : flex;
@@ -178,25 +161,25 @@ body {
178
161
will-change : opacity, transform;
179
162
}
180
163
181
- .ErrorMessage svg {
164
+ .AppWrapper . ErrorMessage svg {
182
165
margin-right : 10px ;
183
166
}
184
167
185
- .Result {
168
+ .AppWrapper . Result {
186
169
margin-top : 50px ;
187
170
text-align : center;
188
171
animation : fade 200ms ease-out;
189
172
}
190
173
191
- .ResultTitle {
174
+ .AppWrapper . ResultTitle {
192
175
color : # fff ;
193
176
font-weight : 500 ;
194
177
margin-bottom : 8px ;
195
178
font-size : 17px ;
196
179
text-align : center;
197
180
}
198
181
199
- .ResultMessage {
182
+ .AppWrapper . ResultMessage {
200
183
color : # 9cdbff ;
201
184
font-size : 14px ;
202
185
font-weight : 400 ;
@@ -205,7 +188,7 @@ body {
205
188
text-align : center;
206
189
}
207
190
208
- .ResetButton {
191
+ .AppWrapper . ResetButton {
209
192
border : 0 ;
210
193
cursor : pointer;
211
194
background : transparent;
0 commit comments