-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
172 lines (165 loc) · 3.43 KB
/
main.css
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
html {
box-sizing: border-box;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
margin:0;
padding:0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height:100vh;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
background-color: #325E77;
width:100%;
max-width:632px;
margin:0;
font-size: 16px;
padding:3em;
line-height: 1.1875em;
color: #fff;
font-family: 'Montserrat', sans-serif;
}
#logo {
width:100%;
margin-bottom:6.5em;
}
form {
text-align:center;
}
form input {
display:block;
margin:auto;
font-size: inherit;
line-height: inherit;
color:inherit;
border:none;
text-align:center;
outline:none;
font-family: inherit;
}
form input[type='text'] {
background:none;
border-bottom: 1px solid #3EE4A9;
width:23em;
padding:.375em;
border-radius:0;
}
form input[type='text']::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color:inherit;
}
form input[type='text']::-moz-placeholder { /* Firefox 19+ */
color:inherit;
}
form input[type='text']:-ms-input-placeholder { /* IE 10+ */
color:inherit;
}
form input[type='text']:-moz-placeholder { /* Firefox 18- */
color:inherit;
}
form.error input[type='text'] {
border-bottom-color: #F64747;
}
form div {
color:#F64747;
font-size:.75em;
visibility: hidden;
}
form.error div {
visibility: visible;
}
form input[type='submit'] {
display: none;
}
form input[type='submit'] + label {
background-color:#3EE4A9;
border-radius: 6px;
padding: .8125em;
width:10em;
text-transform: uppercase;
margin:1.5em auto;
display:block;
position: relative;
}
form input[type='submit']:hover + label {
background-color: #1FC78B;
}
form input[type='submit']:active + label{
opacity:initial;
}
form input[type='submit']:disabled + label {
background-color: #1FC78B;
opacity:.5;
}
form input[type='submit']:disabled:hover + label {
background-color: #1FC78B;
/*opacity:.75;*/
}
form input[type='submit'] + label:after {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
border-radius: inherit;
background-color: inherit;
padding: inherit;
}
form input[type='submit'].checking:hover + label,
form input[type='submit'].success:hover + label {
background-color:#3EE4A9;
}
form input[type='submit'].checking + label:after {
content: '';
background-image: url(spinner.svg);
background-repeat: no-repeat;
background-size: 1em;
background-position: center;
}
form input[type='submit'].success + label:after {
content:url('check2.svg');
}
/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
border: inherit;
-webkit-text-fill-color: #fff;
-webkit-box-shadow: none;
transition: background-color 5000s ease-in-out 0s;
}
/*@media only screen and (max-width: 700px) {
body {
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
}*/
@media only screen and (max-width: 450px) {
form input[type='text'],
form input[type='submit'] + label {
width:100%;
}
form input[type='submit'] + label {
margin-top:2.5em;
}
}
/*@supports(padding: max(0px)) {
@media only screen and (max-width: 700px) {
body {
padding-left: max(1em, env(safe-area-inset-left));
padding-right: max(1em, env(safe-area-inset-right));
}
}
}*/