forked from treffynnon/sqlstyle.guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
210 lines (174 loc) · 3.1 KB
/
style.css
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
---
layout: nil
---
{% assign primary_colour = '#DE1B1B' %}
/*
Begin styles from codeguide.co by @mdo
*/
html {
font-size: 16px;
}
@media (min-width: 48em) {
html {
font-size: 20px;
}
}
body {
margin: 0;
font: 1rem/1.5 "PT Sans", sans-serif;
color: #333;
}
/*
End styles from codeguide.co by @mdo
*/
/*
* Page navigation
*/
#page-nav {
bottom: 0.5em;
right: 0.5em;
position: fixed;
text-align: center;
font-weight: bold;
}
/*
* Typography
*/
h1 {
font-family: 'Roboto Slab', serif;
font-weight: 400;
}
h2 {
font-family: 'Roboto Slab', serif;
font-weight: 400;
border-bottom: 0.25em solid #e2e2e2;
padding-bottom: 0.3em;
}
h3:before {
content: '➤';
width: 1.5em;
display: inline-block;
margin-left: -1.5em;
color: {{ primary_colour }};
font-weight: normal;
}
a {
color: #333;
border-bottom: 1px solid {{ primary_colour }};
text-decoration: none;
-o-transition:.2s;
-ms-transition:.2s;
-moz-transition:.2s;
-webkit-transition:.2s;
transition:.3s;
}
a:hover {
color: {{ primary_colour }};
border-color: #333;
}
#translation-bar {
background: linear-gradient(top, #444, #111);
background: -ms-linear-gradient(top, #444, #111);
background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#111));
background: -moz-linear-gradient(top, #444, #111);
text-align: right;
color: #999;
}
#translation-bar .wrap {
padding: .5% 10%;
}
#translation-bar nav {
font-size: .7em;
}
#translation-bar a {
color: inherit;
}
header.top {
background: {{ primary_colour }};
color: #333;
}
header.top h1 {
color: #fff;
margin-bottom: 0;
}
header.top p.author {
margin-top: 0;
}
header.top a {
color: #333;
border-color: #333;
}
header.top a:hover {
border: none;
text-decoration: none;
}
header.top p.twitter {
float: right;
margin-top: -3em;
}
@media (max-width: 28.75em) {
header.top p.twitter {
float: none;
margin-top: 0;
}
}
.wrap {
padding: 2% 10%;
max-width: 48em;
margin: 0 auto;
}
#content h1 {
display: none;
}
ul#markdown-toc {
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-column-gap: 1em;
-moz-column-gap: 1em;
column-gap: 1em;
margin-bottom: 2.8em;
}
.foot hr {
font-family: 'Roboto Slab', serif;
padding: 0;
border: none;
border-top: 0.1em solid #E2E2E2;
color: #E2E2E2;
text-align: center;
}
.foot hr:after {
content: "§";
display: inline-block;
position: relative;
top: -0.925em;
font-size: 1.5em;
padding: 0 0.25em;
background: white;
}
.foot .buttons {
margin-top: 3em;
}
.quick-links {
list-style: none;
margin-left: 0;
text-align: center;
}
.quick-links li {
display: inline;
}
/* Syntax highlighting */
code {
font-family: 'Droid Sans Mono', monospace;
font-size: 0.825em;
color: #666;
}
pre code {
max-height: 450px;
overflow-y: auto;
}
{% include highlight.hybrid.css %}
.anchorjs-link {
color: {{ primary_colour }};
border: none;
}