-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path_post.scss
94 lines (82 loc) · 1.16 KB
/
_post.scss
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
/**
* Blog list.
*/
.post-meta {
color: $grey;
}
.post-link {
font-size: 1.2em;
}
.post-list {
list-style: none;
margin-left: 0.25em;
// keep date separated from title in list view
.post-meta {
margin-right: 0.25em;
@include media-query($on-palm) {
display: block;
}
}
}
.post-title {
line-height: 1.15;
margin-bottom: 0.25em;
}
/**
* Post page.
*/
.post {
hr {
margin: 1em 0;
}
// center images
p > img {
display: block;
margin: 0 auto;
}
// remove extra spacing for lists and items
ol ol,
ol ul,
ul ol,
ul ul {
font-size: 100%;
margin-top: 0;
margin-bottom: 0;
}
li {
margin-bottom: 0;
}
}
.post-content {
.anchor-icon {
bottom: 0;
color: $grey;
display: none;
font-size: 0.75em;
left: -1em;
position: absolute;
}
h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
> a {
&,
&:visited {
color: inherit;
}
@media only screen and (min-width: $on-palm) {
&:active,
&:focus,
&:hover {
+ .anchor-icon {
display: inline-block;
}
}
}
}
}
}