forked from rust-gamedev/rust-gamedev.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_extra.scss
129 lines (107 loc) · 2.08 KB
/
_extra.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
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
hr {
border: 0;
height: 1px;
margin: 32px 0;
background-color: #bfbfbf;
}
li {
// For consistency with other elements.
margin: 15px 0;
}
pre > code {
// To avoid grey background on code blocks.
background-color: inherit;
}
.site-header {
// To avoid a thick black line on top of the page.
border-top: none;
// To center the site's title.
text-align: center;
}
.site-title {
// To center the site's title.
float: none;
padding: 0;
}
.intro {
color: #ffffff;
background-color: $brand-color;
margin-top: -30px;
padding: 32px 0;
border-bottom: 1px solid #e8e8e8;
text-align: center;
.intro-icons svg {
width: 92px;
height: 92px;
}
.intro-lead {
font-weight: bold;
font-size: 1.5em;
}
a {
color: white;
font-weight: bold;
}
}
.home {
margin-top: 32px;
}
.social-links {
list-style: none;
margin: 0;
li {
margin-bottom: 4px;
a {
color: $grey-color;
}
}
}
.anchor {
visibility: hidden;
}
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor {
visibility: visible;
}
.post-content p img {
display: block;
box-sizing: border-box;
margin: 16px auto;
padding: 8px;
border: 1px solid #e8e8e8;
}
.post-link {
display: inline-block;
}
.post-list li h3 {
margin-bottom: 0;
}
a.btn {
text-decoration: none;
border-radius: 3px;
font-weight: 600;
border: 1px solid transparent;
box-sizing: border-box;
display: inline-block;
padding: 0.4em 2em;
background-color: $brand-color;
color: $background-color;
border-color: $background-color;
&:hover {
color: lighten($background-color, 10);
border-color: $brand-color;
}
}
// A hack for image captions.
// See https://stackoverflow.com/questions/19331362/using-an-image-caption-in-markdown-jekyll
img + em,
a:first-child + em:last-child,
video + em {
display: block;
text-align: center;
color: $grey-color;
}