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
|
@import "../vendor/reset";
@import "../base/colors";
@import "../base/fonts";
html {
min-height: 100%;
}
body {
font-family: "Open Sans", "Microsoft YaHei", "Hiragino Sans GB", "Hiragino Sans GB W3", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
background: $dark_blue; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(left top, $dark_blue, $middle_blue); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(bottom right, $dark_blue, $middle_blue); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(bottom right, $dark_blue, $middle_blue); /* For Firefox 3.6 to 15 */
background: linear-gradient(to bottom right, $dark_blue, $middle_blue); /* Standard syntax */
color: $dark_grey_text;
min-height: 100%;
}
h1 {
font-size: 1.3em;
font-weight: 600;
width: 100%;
}
p {
-webkit-margin-before: 0.5em;
-webkit-margin-after: 0.5em;
margin-before: 0.5em;
margin-after: 0.5em;
}
.field-group {
position:relative;
margin: 1em 0;
width: 96%;
}
label {
font-size: 0.9em;
margin-bottom: 10px;
display: inline-block;
}
input {
display: block;
border: none;
border-bottom: solid 1px #4da3b6;
width: 100%;
height: auto;
padding: 6px 0px;
}
input:focus {
outline:none;
}
input:focus ~ .animated-label, input:valid ~ .animated-label {
top:-12px;
left: 0;
font-size:0.7em;
color:#4da3b6;
}
.animated-label {
color:#999;
position:absolute;
pointer-events:none;
left: 6px;
top:10px;
transition:0.2s ease all;
-moz-transition:0.2s ease all;
-webkit-transition:0.2s ease all;
}
button {
background: $dark_blue;
padding: 0.8em;
color: $white;
text-align: center;
border: none;
border-radius: 2px;
font-weight: 300;
width: 96%;
}
.container {
background: $white;
width: 84%;
margin: 3% auto;
padding: 6% 5%;
}
form {
-webkit-display: flex;
display: flex;
-webkit-align-items: center;
align-items: center;
-webkit-flex-direction: column;
flex-direction: column;
img {
width: 50%;
}
}
|