-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstyles.css
173 lines (154 loc) · 5.41 KB
/
styles.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, body {
height: 100%;
margin: 0;
padding: 0;
}
#main {
position: relative;
background-color: #141414;
background-image: -webkit-linear-gradient(top, #CCC, #EEE 100%);
background-image: -moz-linear-gradient(top, #CCC, #EEE 100%);
background-image: -ms-linear-gradient(top, #CCC, #EEE 100%);
background-image: -o-linear-gradient(top, #CCC, #EEE 100%);
background-image: linear-gradient(top, #CCC, #EEE 100%);
height: 100%;
min-height: 800px;
color: #333;
font: 300 15px/1 Verdana;
}
#main:before {
background-image: -webkit-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -moz-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -ms-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: -o-radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
background-image: radial-gradient(center, circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 100%);
position: absolute;
content: '';
top: 0; right: 0; bottom: 0; left: 0;
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
.wrapper {
position: relative;
width: 500px;
height: 800px;
position: absolute;
top: 50%; left: 50%;
margin-left: -250px;
margin-top: -400px;
}
h1 {
font: bold 60px/1 'Ubuntu';
color: rgba(40, 40, 40, 0.8);
text-shadow: 1px 2px 3px #DDD, 0 0 0 #000, 1px 2px 3px #DDD;
letter-spacing: -5px;
}
p {
text-shadow: 1px 1px 1px rgba(255, 255, 255, .5);
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
.container,
li {
width: 500px;
height: 500px;
display: block;
}
.container {
position: relative;
overflow: hidden;
}
ul {
padding: 0;
}
li {
-webkit-transition: .3s all ease-out;
-moz-transition: .3s all ease-out;
-ms-transition: .3s all ease-out;
-o-transition: .3s all ease-out;
transition: .3s all ease-out;
line-height: 300px;
color: white;
text-align: center;
font: 30px/500px 'Ubuntu';
list-style: none;
position: absolute;
}
li.moving {
-webkit-transition: none;
-moz-transition: none;
-ms-transition: none;
-o-transition: none;
transition: none;
}
li:nth-child(1) { background: red; }
li:nth-child(2) { background: blue; }
li:nth-child(3) { background: purple; }
li:nth-child(4) { background: orange; }
.transform li.to-current {
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.transform li.to-prev {
-webkit-transform: translate(-500px, 0) !important;
-moz-transform: translate(-500px, 0) !important;
-ms-transform: translate(-500px, 0) !important;
-o-transform: translate(-500px, 0) !important;
transform: translate(-500px, 0) !important;
}
.transform li.to-next {
-webkit-transform: translate(500px, 0) !important;
-moz-transform: translate(500px, 0) !important;
-ms-transform: translate(500px, 0) !important;
-o-transform: translate(500px, 0) !important;
transform: translate(500px, 0) !important;
}
.transform3d li.to-current {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
}
.transform3d li.to-prev {
-webkit-transform: translate3d(-500px, 0, 0) !important;
-moz-transform: translate3d(-500px, 0, 0) !important;
}
.transform3d li.to-next {
-webkit-transform: translate3d(500px, 0, 0) !important;
-moz-transform: translate3d(500px, 0, 0) !important;
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. */
button {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-user-drag: none;
border: 2px solid rgba(0, 0, 0, 0);
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding: 0 16px;
margin: 20px 0;
font: bold 30px/52px 'Ubuntu';
height: 56px;
letter-spacing: -2px;
color: rgba(40, 40, 40, 0.8);
text-shadow: 1px 1px 2px #AAA;
background-image: -webkit-radial-gradient(50% -10px, circle cover, #FFF, #DDD);
background-image: -moz-radial-gradient(50% -10px, circle cover, #FFF, #DDD);
background-image: -o-radial-gradient(50% -10px, circle cover, #FFF, #DDD);
background-image: radial-gradient(50% -10px, circle cover, #FFF, #DDD);
-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
-o-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.3);
}
button.disable {
opacity: .2;
}
button:active {
padding-top: 1px;
-webkit-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
-o-box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0px 1px 4px rgba(0, 0, 0, 0.3);
}
button.prev { float: left; }
button.next { float: right; }