-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy patharticle.styl
More file actions
275 lines (242 loc) · 5.05 KB
/
article.styl
File metadata and controls
275 lines (242 loc) · 5.05 KB
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
icon-size = 32px
icon-gap = 25px
article
position relative
background #fff
box-shadow: 0 -1px 0 #e5e5e5, 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.24);
@media screen and (max-width: 900px)
margin 8px -10px 15px -10px
&.page
padding-left 20px
.icon
display none
.title
a
&:after
content '\f08e'
color color-meta
font 12px font-icon
padding-left 10px
vertical-align super
.post-content
padding 25px 20px 25px 20px
margin-bottom 24px
position relative
@media screen and (max-width: 600px)
padding-left 20px
.gallery
overflow hidden
position relative
&:hover
.control
opacity 1
img
min-width 100%
max-width 100%
height auto
position absolute
top 0
left 0
opacity 0
.control
opacity 0
transition 0.3s
.prev, .next
position absolute
top 0
width 50%
height 100%
cursor pointer
&:before
position absolute
font 24px/1 font-icon
text-align center
width 24px
text-shadow 0 0 15px rgba(0,0,0,0.5)
color #fff
margin-top -12px
top 50%
.prev
left 0
&:before
content '\f053'
left 10px
.next
right 0
&:before
content '\f054'
right 10px
header
.icon
width icon-size
height icon-size
margin-right icon-gap
position absolute
top 20px
left 20px
color color-link
@media screen and (max-width: 600px)
display none
&:before
position absolute
font 32px font-icon
top 0
left 0
width 32px
text-align center
time
color color-meta
font 0.8em font-title
margin-bottom 5px
display block
line-height 2.5
.title
font-weight bold
a
color color-font
&:hover
color color-link
text-decoration none
.entry
word-wrap break-word
text-align justify
line-height 1.6
p, blockquote, ul, ol, dl, table, iframe, h3, h4, h5, h6, .video-container
margin-top 15px
blockquote
word-wrap break-word
border-top 1px solid color-border
border-bottom 1px solid color-border
font-style italic
font-family font-serif
font-size 1.2em
padding 0 30px 15px
text-align left
footer
border-top none
font-size 0.8em
line-height 1
margin 20px 0 0
padding-top 0
cite
&:before
content '—'
color #ccc
padding 0 0.5em
code, pre
font-family font-mono
code
background #eee
color #666
padding 0 5px
margin 0 2px
font-size 0.9em
border 1px solid color-border
border-radius 3px
pre
background #eee
border 1px solid color-border
margin-top 15px
overflow auto
padding 7px 15px
border-radius 2px
code
background none
padding 0
margin 0
border none
border-radius 0
ul, ol, dl
margin-left 20px
ul, ol, dl
margin-top 0
h1, h2
font-weight normal
border-bottom 1px solid color-border
padding-bottom 10px
margin-top 20px
h3, h4, h5, h6
font-weight normal
img, video
max-width 100%
height auto
border none
iframe
border none
.caption
display block
margin-top 5px
color color-meta
position relative
font-size 0.9em
padding-left 25px
&:before
content '\f040'
position absolute
font 1.3em font-icon
position absolute
left 0
top 3px
.video-container
position relative
padding-bottom 56.25%
padding-top 30px
height 0
overflow hidden
iframe, object, embed
position absolute
top 0
left 0
width 100%
height 100%
margin-top 0
.pullquote
float right
border none
padding 0
margin 1em 0 0.5em 1.5em
text-align left
width 45%
font-size 1.5em
footer
margin-top 15px
padding-top 10px
border-top 1px solid color-border
color color-meta
font-size 0.9em
line-height 16px
position relative
min-height 16px
a
color color-meta
&:hover
color color-link
text-decoration none
&:before
font 1.1em font-icon
padding-right 10px
vertical-align middle
&.comment-link
&:before
content '\f075'
.categories, .tags
position relative
padding-left 25px
margin 5px 0
&:before
position absolute
font 1.1em font-icon
.categories
&:before
content '\f07b'
top 2px
left 1px
.tags
&:before
content '\f02b'
top 3px
left 2px
.addthis
margin-top 15px
iframe
margin-top 0