-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
140 lines (132 loc) · 3.12 KB
/
style.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
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500,700);
.wrapper {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.material-textfield {
display: inline-block;
height: 4rem;
padding-top: 2rem;
}
.material-textfield input {
background: none;
border: none;
box-sizing: border-box;
display: block;
font-family: Roboto, Arial, sans-serif;
font-size: 1rem;
padding: 0.25rem 0.1rem;
width: 100%;
}
.material-textfield input:invalid {
box-shadow: none;
}
.material-textfield input:focus {
outline: none;
}
.material-textfield label {
display: inline-block;
font-family: Roboto, Arial, sans-serif;
font-size: 0;
pointer-events: none;
position: relative;
text-transform: uppercase;
width: 100%;
}
.material-textfield label::before {
content: attr(data-content);
position: relative;
transition: all 0.2s ease;
will-change: font-size, top;
}
.material-textfield label::after {
bottom: 0.9rem;
content: "";
height: 0.3rem;
left: 50%;
position: absolute;
transition: all 0.2s ease;
width: 0;
will-change: width, left;
}
.material-textfield label::before, .material-textfield input[required]:focus ~ label::before {
font-size: 0.75rem;
top: -3.25rem;
}
.material-textfield input:focus ~ label::after {
left: 0%;
width: 100%;
}
.material-textfield input:invalid ~ label::before {
font-size: 1rem;
top: -2rem;
}
.material-textfield.blue input {
border-bottom: 0.1rem solid #03A9F4;
color: #0275a8;
}
.material-textfield.blue label::after {
background: #03A9F4;
}
.material-textfield.blue label::before, .material-textfield.blue input[required]:focus ~ label::before {
color: #47c4fd;
}
.material-textfield.blue input:invalid ~ label::before {
color: #03A9F4;
}
.material-textfield.red input {
border-bottom: 0.1rem solid #F44336;
color: #d2190b;
}
.material-textfield.red label::after {
background: #F44336;
}
.material-textfield.red label::before, .material-textfield.red input[required]:focus ~ label::before {
color: #f8877f;
}
.material-textfield.red input:invalid ~ label::before {
color: #F44336;
}
/* buttons styling */
.btn {
display: block;
margin: 0 auto;
text-align: center;
width: 8%;
border-radius: 2px;
margin-top: 5px;
margin-bottom: 5px;
padding: 17px 24px;
font-size: 18px;
line-height: 1;
font-weight: 600;
letter-spacing: .3px;
text-decoration: none;
color: #fff;
box-shadow: 1px 1px 2px 0px rgba(0,0,0,0.20);
position: relative;
transition: .2s;
-webkit-transition: .2s;
-moz-transition: .2s;
-o-transition: .2s;
}
.btn:hover {
transform: translate(0px, -1px);
-webkit-transform: translate(0px, -1px);
box-shadow: 1px 3px 10px 0px rgba(0,0,0,0.15);
}
.btn:active {
transform: translate(0px, 0px);
-webkit-transform: translate(0px, 0px);
box-shadow: inset 0px -1px 4px 0px rgba(0,0,0,0.10);
}
.sm {
padding: 8px 14px;
font-size: 14px;
}
.blue2 {
background-color: #02aedc;
font-weight: 400;
}