-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
148 lines (126 loc) · 2.91 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
141
142
143
144
145
146
147
148
html {
font-size: 16px;
}
@media (max-width: 960px) {
html {
font-size: 12px;
}
}
@media (max-width: 480px) {
html {
font-size: 8px;
}
}
html, body {
background: #f6f6f6;
height: 100%;
width: 100%;
margin: 0;
font-family: sans-serif;
}
section {
display: flex;
display: -webkit-box;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: center;
-moz-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
section:not(.scroller-wrapper) {
border: 5px dashed #ddd;
border-left: 0;
border-right: 0;
color: hsla(0, 0%, 80%, 0.8);
font-family: sans-serif;
font-size: 5vw;
font-weight: 700;
min-height: 1000px;
letter-spacing: -3px;
padding: 0;
text-align: center;
text-shadow: 0 1px 0px #f6f6f6, 0 0 0 #000, 0 1px 0px #f6f6f6;
}
.scroller-wrapper {
position: relative;
}
.scroller {
background-repeat: no-repeat;
-webkit-background-size: cover;
background-size: cover;
position: relative;
display: block;
width: 100%;
overflow: hidden;
-webkit-transition: all 1s;
-moz-transition: all 1s;
-ms-transition: all 1s;
-o-transition: all 1s;
transition: all 1s;
}
.tip-wrapper {
display: flex;
display: -webkit-box;
display: -webkit-flex;
align-items: center;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: justify;
-moz-box-pack: justify;
-ms-flex-pack: distribute;
-webkit-justify-content: space-around;
justify-content: space-around;
height: 100%;
left: 0;
overflow: hidden;
position: absolute;
top: 0;
width: 100%;
}
.tip {
-webkit-flex: 0 1 20%;
-moz-flex: 0 1 20%;
-ms-flex: 0 1 20%;
flex: 0 1 20%;
background: hsla(0, 0%, 0%, .8);
border-radius: 3px;
color: #fff;
padding: 20px;
position: relative;
text-shadow: 0 2px 0 #000;
-webkit-transition: -webkit-transform 2s;
-moz-transition: -moz-transform 2s;
-ms-transition: -ms-transform 2s;
-o-transition: -o-transform 2s;
transition: transform 2s;
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
-ms-transform: translateY(0px);
-o-transform: translateY(0px);
transform: translateY(0px);
}
.tip h1 {
text-align: center;
font-size: 1.5em;
}
.tip p {
font-size: 1em;
}
.tip.bottom {
-webkit-transform: translateY(1000px);
-moz-transform: translateY(1000px);
-ms-transform: translateY(1000px);
-o-transform: translateY(1000px);
transform: translateY(1000px);
}
.tip.top {
-webkit-transform: translateY(-1000px);
-moz-transform: translateY(-1000px);
-ms-transform: translateY(-1000px);
-o-transform: translateY(-1000px);
transform: translateY(-1000px);
}