File tree 3 files changed +28
-28
lines changed 3 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 1
1
< head >
2
2
< meta charset ="utf-8 ">
3
+ < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
3
4
< title > {{ page.title }}</ title >
4
5
< link rel ="stylesheet " href ="css/normalize.css "/>
5
6
< link rel ="stylesheet " href ="css/style.css "/>
Original file line number Diff line number Diff line change @@ -27,11 +27,23 @@ body {
27
27
}
28
28
}
29
29
30
+ header , # content {
31
+ max-width : 920px ;
32
+ margin : 0 auto;
33
+ padding-left : 30px ;
34
+ padding-right : 30px ;
35
+ }
36
+
30
37
header {
31
- padding : 140px 110px 0 110px ;
38
+ padding-top : 20px ;
39
+ }
40
+
41
+ # content {
42
+ padding-bottom : 60px ;
32
43
}
33
44
34
45
# _header h1 {
46
+ margin-top : 0 ;
35
47
margin-left : -19px ;
36
48
opacity : 0 ;
37
49
animation : fadein 1s forwards;
@@ -49,10 +61,6 @@ header {
49
61
animation : fadein 1s forwards, slideright 1s forwards;
50
62
}
51
63
52
- # content {
53
- padding : 0 110px 60px 110px ;
54
- }
55
-
56
64
# tag em {
57
65
font-style : normal
58
66
}
@@ -123,26 +131,17 @@ a:hover {
123
131
ul {
124
132
margin-top : 20px ;
125
133
padding : 0 15px ;
126
- width : 100 % ;
134
+ column-gap : 30 px ;
127
135
column-count : 2 ;
128
136
box-sizing : content-box;
129
137
}
130
138
131
139
ul li {
132
140
margin-top : 5px ;
133
- margin-right : 60px ;
134
141
list-style : none;
135
142
border-bottom : 1px solid # eee ;
136
143
padding : 5px 0 ;
137
- column-break-inside : avoid;
138
- }
139
-
140
- ul ::after {
141
- content : '.' ;
142
- height : 0 ;
143
- display : block;
144
- visibility : hidden;
145
- clear : both;
144
+ break-inside : avoid;
146
145
}
147
146
148
147
code {
@@ -151,7 +150,7 @@ code {
151
150
}
152
151
153
152
pre {
154
- margin : 20px ;
153
+ margin : 20px 0 ;
155
154
padding : 20px ;
156
155
border : 1px solid # ddd ;
157
156
border-bottom-color : # ccc ;
@@ -162,16 +161,15 @@ pre {
162
161
}
163
162
164
163
main img : not ([src *= avatar ]): not ([src *= badges ]): not ([src *= ".svg" ]) {
165
- margin : 30 px ;
166
- padding : 1 px ;
164
+ display : block ;
165
+ margin : 30 px auto ;
167
166
border-radius : 3px ;
168
167
box-shadow : 0 3px 10px # dedede, 0 1px 5px # 888 ;
169
168
max-width : 100% ;
170
169
}
171
170
172
171
footer {
173
172
background-color : # eee ;
174
- width : 100% ;
175
173
padding : 50px 0 ;
176
174
text-align : right;
177
175
border-top : 1px solid # ddd ;
@@ -184,22 +182,22 @@ footer span {
184
182
font-size : 0.8em ;
185
183
}
186
184
187
- @media all and (max-width : 850px ) {
188
- ul li {
189
- width : 100% ;
190
- }
191
- }
192
-
193
185
@media all and (max-width : 600px ) {
194
186
# tag {
195
187
margin-top : 0 ;
196
188
margin-left : 0 ;
197
189
margin-bottom : 0 ;
198
190
}
199
191
200
- .onload # tag {
201
- margin-left : 0 ;
192
+ ul {
193
+ column-count : 1 ;
194
+ }
195
+
196
+ pre {
197
+ padding : 10px ;
198
+ margin : 20px -11px ;
202
199
}
200
+
203
201
}
204
202
205
203
blockquote {
Original file line number Diff line number Diff line change 17
17
18
18
for ( var i = 0 ; i < images . length ; i += 1 ) {
19
19
images [ i ] . onload = onloadHandler ;
20
+ images [ i ] . onerror = onloadHandler ;
20
21
}
21
22
} ) ;
22
23
You can’t perform that action at this time.
0 commit comments