-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.css
More file actions
350 lines (287 loc) · 6.67 KB
/
site.css
File metadata and controls
350 lines (287 loc) · 6.67 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
/*
This style sheet is copyrighted Antonio Bonifati 2012 and licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
*/
/** Overall layout and style. **/
/* Get rid of default margin and paddings and font sizes some elements have.
We want to set them explicitely, because they are inconsistent between
different browsers. In particular we use all relative units (EMs or %) so
that you can increase or decrease all fonts just by changing the base font
size here. */
* {
margin: 0;
padding: 0;
font: 1em "Trebuchet MS", Arial, sans-serif;
}
/* For old browsers with poor HTML5 support */
header, section, footer, aside, nav, article, hgroup {
display: block;
}
/* http://stackoverflow.com/questions/2869212/css3-gradient-background-set-on-body-doesnt-stretch-but-instead-repeats */
html {
height: 100%;
}
body {
/* This rules are both needed to center the whole site. */
width: 80%;
margin: 5% auto;
background: #009246; /* Old browsers */
background: -webkit-linear-gradient(#009246,#52c688); /* Safari and Chrome */
background: -moz-linear-gradient(#009246,#52c688); /* Firefox */
background: -o-linear-gradient(#009246,#52c688); /* Opera */
background: -ms-linear-gradient(#009246,#52c688); /* IE */
background: linear-gradient(#009246,#52c688); /* W3C */
}
#top_header h2 {
color: #fff;
text-transform: uppercase;
}
#top_content {
background: #fff;
border: .063em solid #800000;
padding: 2%;
/* Needed to make the white background encompass all floated content.
See: http://www.quirksmode.org/css/clearing.html */
overflow: hidden;
width: 96%;
}
#top_article {
padding: 1.25em;
}
#top_article_side {
/* If width is left out, this aside takes as much
space as needed, which can be too much. */
width: 16em;
float: right;
clear: right;
background: #ce2b37;
color: #fff;
border-radius: 1em;
padding: 1.875em;
margin: 0 0 1em 1em;
}
#top_article_side li {
margin-left: 1.875em;
}
#top_article_menu {
float: right;
clear: right;
border-radius: 1em;
padding: 1em 0.8em;
margin: 0.8em 0 0.8em 1em;
background: #ce2b37;
}
#top_article_menu a {
color: #fff;
text-decoration: none;
display: block;
width: 100%;
height: 100%;
padding: .063em;
border-bottom: .063em dotted #fff;
}
/* Trick to make block elements flow as line/inline elements do. I am not using
display: inline-block; because it clears the float when zooming in, leaving
a lot of blank space to the left of the floated element.
Unfortunately, at very high zoom levels, overflow: auto makes horizontal
scrollbars appear. But the overflow: hidden alternative isn't better either.
Remember that the overflow property is not inherited, so it has to be set for
each element we want to clip. E.g. you cannot set it to header for all
contained h1, h2, etc. */
/* TODO: add other elements here as needed. */
#top_article h1 {
overflow: auto;
}
button {
padding: .063em .375em;
}
.h2 {
font-size: 1.5em;
border-bottom: .063em dotted #333;
padding-bottom: .25em;
margin-bottom: .5em;
}
.h3 {
font-size: 1.17em;
font-weight: bolder;
}
.in_a_row {
float: left;
margin: 1em 1em 1em 0;
}
.newline {
clear: both;
}
#side_tab {
position: fixed;
top: 20%;
right: 0;
/* Setting the z-index as negative and doing that only here seems to be the
only simsolution that is both simple and works. Hope it will not knock out
links with some browsers, but it shouldn't according to my understand of
how stacking layers and event works! */
z-index: -1;
padding: .5em;
background-color: #fff;
border: .063em solid #800000;
border-right: none;
border-top-left-radius: 1em;
border-bottom-left-radius: 1em;
opacity: .8;
}
#side_tab:hover {
opacity: 1;
padding-right: .625em;
padding-left: .625em;
}
#side_tab ul, #top_article_menu ul {
list-style-type: none;
}
#top_footer {
clear: both;
padding: .938em 0;
}
#top_footer div {
width: 44em;
margin: auto;
}
/* See: http://stackoverflow.com/questions/5848609/vertically-align-multiple-lines-beside-a-floated-image */
#top_footer p {
display: table-cell;
width: 44em;
height: 31px;
vertical-align: middle;
}
#top_footer p img {
float: left;
padding-right: 10px;
}
/* Turn off the border on all your images. We do not set the border of all
elements to 0 at the beginning, because we want to keep default the border
style for buttons. */
img, input[type="image"] {
border: none;
}
section {
margin-top: .5em;
}
p {
margin: 1.12em 0;
}
p.answer {
margin: 0 0 .375em 0;
}
button {
margin: .125em;
}
.center {
text-align: center;
}
#top_article footer {
font-size: 0.8em;
color: #333;
}
dt {
font-weight: bolder;
}
dd p {
margin-top: 0;
}
em, i {
font-style: italic;
}
b {
font-weight: bolder;
}
time {
color: #800000;
border: .063em solid #ce2b37;
border-radius: .25em .5em .25em .5em;
padding-left: .125em;
padding-right: .125em;
}
.tumblr {
border-radius: 4px;
background: #ce2b37;
padding: 5px 10px 0 0;
}
.tumblr:hover {
opacity: 0.9;
}
/** Link style. **/
/* Unvisited and visited link. */
a:link, a:visited {
color: #009246;
}
/* Selected link. */
a:active {
color: #ce2b37;
}
#top_article_side a:link, #top_article_side a:visited {
color: #fff;
}
#top_article_side a:active {
color: #000;
}
#top_article_menu a:link, #top_article_menu a:visited {
color: #fff;
}
#top_article_menu a:hover {
color: #009246;
background: #fff;
}
#top_footer a:link, #top_footer a:visited {
color: #000;
}
#top_footer a:active {
color: #fff;
}
#side_tab a {
text-decoration: none;
}
#side_tab nav li:nth-child(1) a {
color: #009246;
}
#side_tab nav li:nth-child(2) a {
color: #333;
}
#side_tab nav li:nth-child(3) a {
color: #ce2b37;
}
canvas#jc6wQSIo7R7DM {
vertical-align: text-bottom;
cursor: hand;
cursor: pointer;
}
/** Main menu tab-like style. **/
#top_menu ul, ul.compact {
list-style-type: none;
margin-top: 1.25em;
}
#top_menu li, .compact li, .compact form {
display: inline; /* inline-block does not make the bottom borders to overlap! */
padding-right: .313em; /* space between inline list items (e.g. menu tabs) */
}
#top_menu a {
text-decoration: none;
color: #fff;
border: .063em solid #800000;
border-top-right-radius: .5em;
border-top-left-radius: .5em;
background: #ce2b37;
padding: .438em .313em 0 .313em; /* padding-bottom should be left to 0! */
}
#top_menu a.selected {
color: #009246;
background: #fff;
/* This border will overlap with the #top_div border, if applied to a (not to li) */
border: .063em solid #800000;
border-bottom-color: #fff;
}
#top_menu a:hover {
color: #009246;
background: #fff;
/* This border will overlap with the #top_div border, if applied to a (not to li) */
border: .063em solid #800000;
border-bottom-color: #fff;
}