-
Notifications
You must be signed in to change notification settings - Fork 1
/
vector.rehash.css
147 lines (123 loc) · 3.09 KB
/
vector.rehash.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
/*
* wikipedia.rehash [css] 2.0.0
* - krasjet
*
* A minimal typographic rehash of Wikipedia designed for better screen
* readability.
*
* homepage: https://krasjet.com/voice/wikipedia.rehash/
*/
/* remove the blue border on the left */
.mw-body {
border-left: none;
}
/* navbar */
#mw-panel .portal {
margin: 0 0.7rem 0 0.5rem;
font-size: 1.1rem !important;
}
/* fix search box */
.suggestions {
right: 16px !important;
}
.selector-left {
left: 120px !important;
}
/*
* larger font size and more space between lines
* charter can be downloaded here: https://practicaltypography.com/fonts/charter.zip
*/
.mw-body-content {
font-size: 1.3rem !important;
line-height: 1.65;
font-family: charter, serif;
}
/* hyphenation, only available on firefox, legacy edge, and safari */
.mw-body-content p {
-webkit-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
/* CJK typefaces, remove this if you don't use CJK wikipedia */
.mw-body-content:lang(ja) {
font-size: 1.25rem !important;
font-family: charter, "Hiragino Mincho ProN", YuMincho, "Yu Mincho", "Noto Serif CJK JP",
"Source Han Serif JP", "MS Mincho", HiraMinProN-W3, serif;
}
.mw-body-content:lang(zh) {
font-size: 1.25rem !important;
line-height: 1.7;
font-family: charter, "Songti SC", "Songti TC", "Noto Serif CJK SC", "Noto Serif CJK TC",
"Source Han Serif CN", "Source Han Serif SC", "Source Han Serif TC", NSimSun, SimSun,
"LiSong Pro", PMingLiU, MingLiU, HiraMinProN-W3, serif;
}
.mw-body-content:lang(zh-Hans) {
font-size: 1.25rem !important;
line-height: 1.7;
font-family: charter, "Songti SC", "Noto Serif CJK SC", "Source Han Serif CN",
"Source Han Serif SC", NSimSun, SimSun, "LiSong Pro", PMingLiU, MingLiU, serif;
}
.mw-body-content:lang(zh-Hant) {
font-size: 1.25rem !important;
line-height: 1.7;
font-family: charter, "Songti TC", "Noto Serif CJK TC", "Source Han Serif CN",
"Source Han Serif TC", PMingLiU, STSong, "LiSong Pro", MingLiU, NSimSun, SimSun, serif;
}
/* less intrusive heading size */
#mw-content-text h2 {
margin-top: 1.15rem;
font-size: 120% !important;
}
/* prevent math image overflow */
dd .mwe-math-fallback-image-inline {
max-width: 100% !important;
}
/* fix the equation box issue */
.equation-box dd .mwe-math-fallback-image-inline {
max-width: none !important;
}
/* fix numbered equations */
dd td {
width: initial !important;
}
/* font size adjustments for various elements */
/*
* I'm using Fira Mono as my monospace font.
* You might have to tweak this part for your setup.
*/
pre,
code,
.monospaced {
font-size: 75% !important;
}
.hatnote {
font-size: 90% !important;
}
/* list items */
#mw-content-text ul,
#mw-content-text ol {
font-size: 96% !important;
}
table {
font-size: 85% !important;
/* uncomment this if you want to prevent table overflow */
/* display: block;
overflow-x: auto; */
}
table pre,
table code,
table .monospaced {
font-size: 85% !important;
}
#toc {
font-size: 90% !important;
}
#toc h2 {
font-size: 100% !important;
}
#mp-topbanner {
font-size: 80% !important;
}
.thumbcaption {
font-size: 85% !important;
}