forked from gingerbeardman/Beautipedia.safariextension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beautipedia.css
459 lines (371 loc) · 10.3 KB
/
beautipedia.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
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
/*The !important declaration is very important. Without, the author stylesheet would take precedence. It must be declared on anything not created by Beautipedia. For some properties, !important must be used, regardless of the element creator. These are typically properties which were created using a blanket selector (html, body). I have used !important on all properties, just to be safe.*/
@font-face {
font-family: "jGaramond";
src: local('Garamond'), url('jGaraRegular.ttf') format('truetype');
}
@media screen { /*limits most rules to screen only*/
/* Visual Editor */
.ve-ui-toolbar {
margin-top: -6px !important;
}
/* Hide Dumb Stuff */
#mw-panel, #mp-sister, #mp-lang, #footer-icons, #p-personal, #left-navigation, #p-views, #p-cactions, #mw-page-base, #articlecount, .editsection, .magnify, #mw-fr-revisiontag, .portlet, .tmbox-notice, .mbox-image, #featured-star, #good-star, #protected-icon, .mw-editsection-visualeditor {
display: none !important;
}
/* Header (includes search and menu) */
#fwpHeaderContainer {
top: 0px;
width: 100%;
}
.fwpFixedMenuOn {
position: fixed !important;
}
.fwpFixedMenuOff {
position: absolute !important;
}
#fwpHeader {
position: relative;
max-width: 1000px;
width: 75%;
height: 100%;
margin: 0 auto;
}
/* Search */
#p-search {
position: absolute;
right: 0px !important;
opacity: .25;
-webkit-transition-property: opacity;
-webkit-transition-duration: .4s;
}
#p-search:hover {
opacity: 1 !important;
}
.fwpFocused {
opacity: 1 !important;
}
#simpleSearch {
background-image: none !important;
-webkit-border-radius: 5px !important;
}
#searchInput {
-webkit-appearance: none !important;
outline: none !important;
}
#searchButton > img {
padding-top: 0.3em !important;
}
div#simpleSearch button#searchButton img {
margin-top: -5px !important;
}
.suggestions-results, .suggestions-special {
background-color: white !important;
}
a#notLoggedIn {
text-decoration: none;
font-family: 'jGaramond', 'Garamond', serif !important;
color: #303030 !important;
opacity: .25 !important;
position: absolute;
left: -2.5em;
top: 0.75em;
}
a#notLoggedIn:hover {
text-decoration: underline;
opacity: 1 !important;
}
.mw-editsection {
margin-top: -1.5em !important;
visibility: hidden;
float: right !important;
}
.mw-editsection a {
opacity: .2 !important;
visibility: visible;
}
.subtleEditIcons {
float: left !important;
margin-left: -2.75em !important;
}
.subtleEditIcons a {
opacity: .12 !important;
background: transparent url('edit.png') right center no-repeat !important;
padding-right: 1.5em;
}
.mw-editsection a:hover {
opacity: 1 !important;
}
/* Main Menu */
#mlDiv {
/*Menu, position, text | add opposite of width to right (-.88em) | width makes it easier to move mouse from "W" to menu*/
top: .8em !important;
right: -6.88em !important;
width: 6em;
font-family: 'jGaramond', 'Garamond', serif !important;
opacity: .25 !important;
-webkit-transition-property: opacity;
-webkit-transition-duration: .4s;
}
#mlDiv:hover {
opacity: 1 !important;
}
#mainLink {
/*Menu, position, text */
position: relative;
color: #303030 !important;
text-decoration: none !important;
}
#mainLink:hover {
/*Menu, removes underline below "W" */
text-decoration: none !important;
}
#mlLinksDiv {
/*Menu, sets up main style of div */
display: none !important;
position: absolute !important;
background: white !important;
border: 1px solid grey !important;
border-radius: 5px !important;
max-width: 6.25em !important;
white-space: nowrap !important;
-webkit-box-shadow: 2px 4px 10px grey !important;
}
#mlLinksDiv hr {
border-color: lightgrey;
}
#mlDiv:hover .mlLinksDivShow {
/*Menu, displays div on hover - class is dynamically set by javascript*/
display: block !important;
}
.mlLinksDivHide {
/*Menu, hides div on hover - class is dynamically set by javascript*/
display: none !important;
}
#mlLinksDiv a {
/*Menu -> Links, sets one link per line (block), text stuff, overflow*/
display: block !important;
padding: 5px !important;
text-decoration: none !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
#mlLinksDiv a:hover {
/*Menu -> Links, highlights links when hovered*/
background: highlight !important;
}
#mlLinksDiv a:first-child {
/*Menu -> Links, prevents top corners of highlight from clipping rounded corners of mlLinksDiv*/
border-top-right-radius: 5px !important;
border-top-left-radius: 5px !important;
}
#mlLinksDiv a:last-child {
/*Menu -> Links, prevents bottom corners of highlight from clipping rounded corners of mlLinksDiv*/
border-bottom-right-radius: 5px !important;
border-bottom-left-radius: 5px !important;
}
#fwpLangSwitch.off {
/*Hides language switch*/
display: none !important;
}
#fwpLangSwitch.on {
/*Displays language switch*/
display: block !important;
}
/* Main Page */
#mp-upper h2, #mp-bottom h2 {
/*Main Page -> Featured Headings*/
background: none !important;
border: none !important;
border-bottom: 1px solid grey !important;
}
#mp-upper table, #mp-bottom table, .MainPageBG, #mp-bottom {
/*Main Page, light grey article background*/
background-color: #F1F1F1 !important;
}
#mp-topbanner {
/*Main Page -> Welcome Banner*/
background: none !important;
border: none !important;
font-family: "Garamond", "jGaramond", serif !important;
}
#mp-topbanner td:nth-child(n+2) {
/*Main Page -> Welcome Banner, removes everything but welcome to wikipedia*/
display: none !important;
}
#mp-topbanner td table {
/*Main Page -> Welcome Banner, center table*/
margin: auto !important;
vertical-align: middle;
}
#mp-banner td {
border: 1px dashed grey !important;
background: transparent !important;
}
#mp-banner span {
display: block !important;
margin: 10px !important;
margin-bottom: 0px !important;
}
/*General Pages*/
.MainPageBG {
/*General*/
//width: 50% !important;
border: 1px solid #BEBEBE !important;
-webkit-border-radius: 3px !important;
}
.MainPageBG h2 > span {
color: #191919 !important;
text-shadow: white 0px 1px 0px;
}
#mw-head-base, #content, #footer {
/*General, Removes strange blue lines */
background-image: none !important;
}
#content, #fwpHeader {
/*Page Width, menus aligned to content*/
width: 75%;
max-width: 60em; //careful of em - see if pixels work better
}
#content {
/*General, white, rounded corner backdrop, shadow*/
margin: 3em auto 0 auto !important;
padding: 0.5em 2.5em 1.5em 2.5em !important;
border: #CACACA solid 1px !important;
-webkit-border-radius: 6px !important;
-webkit-box-shadow: 0 0 10px #ccc !important;
}
html {
/*General, Basic text adjustments*/
text-align: justify !important;
font-family: "Helvetica", "Arial", sans-serif !important;
}
/* Content Display */
#footer a {
/*Content -> footer, removes blue links in footer*/
color: inherit !important;
}
.fwpColorLinksNone a, #mlDiv a {
/*Content, Removes blue coloring if setting is off
Absence of .fwpColorLinksOn property sets links to color assigned by author stylesheet*/
color: inherit !important;
-webkit-transition-property: color, text-shadow;
-webkit-transition-duration: .2s, .2s;
-webkit-transition-timing-function: ease-out, ease-out;
}
.fwpColorLinksBlue a {
-webkit-transition: color .5s ease;
}
.fwpColorLinksGrey a {
color: #7E7E7E !important;
-webkit-transition: color .5s ease;
}
.fwpColorLinksNone a:hover, .fwpColorLinksBlue a:hover, .fwpColorLinksGrey a:hover {
color: #0488E7 !important;
text-shadow: 0px 0px 3px #C2DBF1;
}
p {
margin-top: 1em !important;
}
.fwpIndentOn p {
/* Adds text indent if setting on. */
text-indent: 1em !important;
}
#firstHeading {
/*Content -> Headlines, Garamond, Larger font*/
font-family: "Garamond", "jGaramond", serif !important;
font-size: 3em !important;
font-weight: normal;
}
.mw-headline {
/*Content -> Headlines, Garamond, different font*/
font-size: 1.75em !important;
display: block !important;
margin-top: .25em !important;
padding-bottom: 0.25em !important;
font-family: "Garamond", "jGaramond", serif !important;
}
h1,h2,h3,h4,h5,h6 {
text-align: left !important;
overflow: visible !important;
}
h2 .mw-headline {
font-weight: 900 !important;
}
h3 .mw-headline {
font-weight: normal !important;
}
h2 > span, h3 > span {
/*Makes multi-line headers act correctly (line-overlap problem)*/
line-height: 1;
margin-bottom: -.25em;
}
.thumbinner {
/*Content -> Thumbnails, image well*/
-webkit-border-radius: 3px !important;
-webkit-box-shadow: 0 0 8px #ccc !important;
}
.thumbcaption {
/*Content -> Thumbnails -> Captions, basic settings, hides captions, adds transitions*/
text-align: center !important;
height: 0 !important;
display: none !important;
-webkit-transition-property: height;
-webkit-transition-duration: 1s;
}
.thumbinner:hover .thumbcaption {
/*Content -> Thumbnails -> Captions, shows captions on hover of thumbnail*/
display: block !important;
height: auto !important;
}
.navbox-title, .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title, .navbox-columns-table td {
background-color: lightgrey !important;
}
[class="noprint plainlinks navbar"], [class="noprint plainlinks navbar"] span {
background: transparent !important;
}
blockquote {
border-left: 1px dashed lightgrey;
font-style: italic;
padding: 0 5px;
}
div[id^=ogg_player] img {
display: none;
}
div[id^=ogg_player] button {
background-image: url("circleright22.png");
background-repeat: no-repeat;
background-position: center;
height: 32px;
border: 1px solid grey;
background-color: transparent;
margin: 5px 0;
cursor: pointer;
}
/* Matt Sephton, http://www.gingerbeardman.com */
#toc ul li {
padding-bottom: 0.4em !important;
}
#toc .tocnumber:after {
content:". ";
}
div#content a.external, div#content a[href^="gopher://"] {
background: url('external-link-ltr-icon.png') center right no-repeat !important;
}
}
@media print {
.infobox, .thumb {
page-break-inside: avoid;
}
#toc, #catlinks, #footer-info-copyright, #footer-places {
display: none;
}
p {
text-align: justify;
}
.fwpIndentOn p {
text-indent: 2em;
}
#p-search {
display: none;
}
}