-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformBox.css
More file actions
executable file
·159 lines (137 loc) · 2.95 KB
/
Copy pathformBox.css
File metadata and controls
executable file
·159 lines (137 loc) · 2.95 KB
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
@keyframes spinner {
0% { transform: rotateZ(0deg); }
100% { transform: rotateZ(359deg); }
}
* {
box-sizing: border-box;
}
.wrapper {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
width: 100%;
min-height: 100%;
padding: 20px;
background: rgba(darken($primary,40%), 0.85);
}
.login {
border-radius: 2px 2px 5px 5px;
padding: 10px 20px 20px 20px;
width: 90%;
max-width: 320px;
background: #ffffff;
position: relative;
padding-bottom: 80px;
box-shadow: 0px 1px 5px rgba(0,0,0,0.3);
&.loading {
button {
max-height: 100%;
padding-top: 50px;
.spinner {
opacity: 1;
top: 40%;
}
}
}
&.ok {
button {
background-color: #8bc34a;
.spinner{
border-radius: 0;
border-top-color: transparent;
border-right-color: transparent;
height: 20px;
animation: none;
transform: rotateZ(-45deg);
}
}
}
input {
display: block;
padding: 15px 10px;
margin-bottom: 10px;
width: 100%;
border: 1px solid #ddd;
transition: border-width 0.2s ease;
border-radius: 2px;
color: #ccc;
&+ i.fa {
color: #fff;
font-size: 1em;
position: absolute;
margin-top: -47px;
opacity: 0;
left: 0;
transition: all 0.1s ease-in;
}
&:focus {
&+ i.fa {
opacity: 1;
left: 30px;
transition: all 0.25s ease-out;
}
outline: none;
color: #444;
border-color: $primary;
border-left-width: 35px;
}
}
a {
font-size: 0.8em;
color: $primary;
text-decoration: none;
}
.title {
color: #444;
font-size: 1.2em;
font-weight: bold;
margin: 10px 0 30px 0;
border-bottom: 1px solid #eee;
padding-bottom: 20px;
}
button {
width: 100%;
height: 100%;
padding: 10px 10px;
background: $primary;
color: #fff;
display: block;
border: none;
margin-top: 20px;
position: absolute;
left: 0;
bottom: 0;
max-height: 60px;
border: 0px solid rgba(0,0,0,0.1);
border-radius: 0 0 2px 2px;
transform: rotateZ(0deg);
transition: all 0.1s ease-out;
border-bottom-width: 7px;
.spinner {
display: block;
width: 40px;
height: 40px;
position: absolute;
border: 4px solid #ffffff;
border-top-color: rgba(255,255,255,0.3);
border-radius: 100%;
left: 50%;
top: 0;
opacity: 0;
margin-left: -20px;
margin-top: -20px;
animation: spinner 0.6s infinite linear;
transition: top 0.3s 0.3s ease,
opacity 0.3s 0.3s ease,
border-radius 0.3s ease;
box-shadow: 0px 1px 0px rgba(0,0,0,0.2);
}
}
&:not(.loading) button:hover {
box-shadow: 0px 1px 3px $primary;
}
&:not(.loading) button:focus {
border-bottom-width: 4px;
}
}