forked from Clouda-team/touch.code.baidu.com
-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
212 lines (170 loc) · 3.15 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
body {
font: 14px/1.2em Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace;
color: #333;
}
::selection {
text-shadow: none;
background: rgba(65,131,196,0.4);
}
pre {
background-color: rgba(0, 0, 0, 0.05);
-webkit-border-radius: 10px;
padding-left: 1em;
}
code { font: 14px/1.2em Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace; }
code .keyword { color: #3E6F2A; font-weight: bold; }
code .string, code .regexp { color: #B23819; }
code .class, code .special { color: #333; font-weight: bold; }
code .number { color: #B23819; }
code .comment { color: #998; }
#main {
min-width : 320px;
}
.viewport {
max-width: 1000px;
margin: 0 auto;
overflow: hidden;
}
#header{
}
#header section{
max-width: 1000px;
margin: 0 auto;
}
@media screen and (min-width:768px){
#header h1{
margin: 0;
font-size: 4em;
line-height: 2em;
text-transform: uppercase;
letter-spacing: .2em;
text-align: center;
}
}
@media screen and (max-width:767px){
#header h1{
margin: 0;
font-size: 3.2em;
line-height: 1.8em;
text-transform: uppercase;
letter-spacing: .2em;
text-align: center;
}
}
#header h3{
font-weight : normal;
text-transform: uppercase;
margin : 0;
text-align: center;
color : #999;
position: relative;
top: -1em;
line-height: 2em;
}
#intro {
text-align: center;
background : #7ec9ac;
color : #fefefe;
padding : 2em;
}
@media screen and (min-width:768px){
#features{
display: -webkit-box;
-webkit-box-orient: horizontal;
max-width: 1000px;
margin: 0 auto;
}
}
@media screen and (max-width:767px){
#features{
display: -webkit-box;
-webkit-box-orient: vertical;
}
#features li{
margin-bottom: 1em;
}
}
#features li{
-webkit-box-flex: 1;
}
#features li img{
max-width: 120px;
margin-bottom: 1em;
}
#features li span{
display: block;
line-height: 1.5em;
}
#demo{
overflow: hidden;
}
#nav {
-webkit-user-select: none;
background: #333;
}
#navlist li i{
background-image: url(images/pointers.png);
height: 55px;
line-height: 55px;
width: 55px;
display: inline-block;
vertical-align: middle;
margin-right: .5em;
}
#navlist i.rotate{
background-position: -4px -4px;
}
#navlist i.scale{
background-position: -4px -80px;
}
#navlist i.tap{
background-position: -4px -155px;
}
#navlist i.swipe{
background-position: -4px -230px;
}
#navlist i.drag{
background-position: -4px -305px;
}
#navlist i.touch{
background-position: -4px -382px;
}
@media screen and (min-width:768px){
#navlist{
display: -webkit-box;
-webkit-box-orient: horizontal;
text-align: center;
}
#navlist li{
-webkit-box-flex: 1;
background: #333;
color: #fff;
padding: 1em;
cursor: pointer;
-webkit-transition: background 0.3s;
}
#navlist li:hover,
#navlist li:active{
background-color : #555;
}
}
#play {
width: 1000px;
height: 388px;
position: relative;
margin: 0 auto;
}
#play .target{
position: absolute;
top: 100px;
left: 412px;
cursor: pointer;
width: 166px;
border: 1px solid #eee;
-webkit-border-radius: 100px;
-webkit-box-shadow: 2px 2px 5px #bbb;
}
#code pre{
max-width: 800px;
margin: 0 auto;
}