Repository navigation
Expand file tree
/
Copy path5-post.sass
More file actions
175 lines (150 loc) · 3.53 KB
/
Copy path5-post.sass
File metadata and controls
175 lines (150 loc) · 3.53 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
#main
float: right
width: calc(100% - #{$sidebar-width})
height: 100%
overflow: auto
-webkit-overflow-scrolling: touch
transition: width .35s $time-function
// &.fadeIn
// animation: fadeIn .6s $time-function
.container
max-width: $post-max-width
width: $post-width-at-3-columns
margin: auto
padding: 0 10px
// Typogragh
h2, h3, h4, h5, h6
margin-top: $post-paragraph-spacing * 1.5
margin-bottom: $post-paragraph-spacing * .5
color: $post-title-color
h1 + h2, h2 + h3, h3 + h4, h4 + h5, h5 + h6
margin-top: $post-paragraph-spacing
.post
padding-top: 2em
font-size: $post-font-size
line-height: $post-line-height
text-shadow: 1px 1px 0 #fff
&-title
margin: 0 0 $post-paragraph-spacing * .75
font-size: 1.8em
color: $post-title-color
&-meta
font-size: .9em
color: $post-meta-color
&-span
margin-right: 1em
&.date:before
@extend %icon
@extend %icon-date
margin-right: .2em
&.tag:before
@extend %icon
@extend %icon-tag
margin-right: .2em
&.comment:before
@extend %icon
@extend %icon-comment
margin-right: .2em
a
word-break: break-all
text-decoration: none
color: $post-link-color
outline: none
&:hover
color: $post-link-hover-color
p, ul, ol
margin-top: 0
margin-bottom: $post-paragraph-spacing
ul, ol
padding-left: 1.5em
li
margin-bottom: $post-paragraph-spacing * .25
> ul, > ol
margin-top: $post-paragraph-spacing * .25
margin-bottom: 0
blockquote
position: relative
margin: 0 0 $post-paragraph-spacing 2em
font-style: italic
&:before
@extend %icon
@extend %icon-quote
position: absolute
top: 0
left: -1.5em
z-index: 1
transform: rotate(180deg)
img
display: block
width: 100%
border: $post-img-border-width solid $post-img-border-color
code
font-family: $post-code-font
font-size: .9em
*:not(pre) > code
padding: 0 .25em
color: $post-code-inline-color
background: $post-code-inline-bg
pre
margin-top: 0
margin-bottom: $post-paragraph-spacing
padding: 1em
line-height: 1.3
background: $post-code-block-bg
overflow: auto
-webkit-overflow-scrolling: touch
&::-webkit-scrollbar
height: $code-scrollbar-height
&::-webkit-scrollbar-thumb
background: $code-scrollbar-color
&:hover
background: darken($code-scrollbar-color, 10%)
hr
height: 0
margin: $post-paragraph-spacing * 2 0
border: none
border-top: 1px solid $post-hr-color
// post share
.post-share
margin: 2em 0
padding-top: .7em
padding-bottom: .6em
font-size: 28px
text-align: center
background: $post-share-bg
&-icon
margin: 0 10px
text-decoration: none
color: $post-share-color
transition: color .15s linear
outline: none
&:hover
color: $post-share-hover-color
&:before
@extend %icon
&.twitter:before
@extend %icon-twitter-share
&.evernote:before
@extend %icon-evernote
&.weibo:before
@extend %icon-weibo
// comment
#disqus_thread > a
color: $gradient-end
// footer
.footer
margin-top: 50px
padding-bottom: 30px
font-size: $footer-font-size
line-height: $footer-line-height
text-align: center
color: $footer-color
&-entry
margin: 0
> a
color: darken($footer-color, 15%)
text-decoration: none
transition: color .15s linear
outline: none
&:hover
color: $footer-link-hover-color