GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add readermode css · MaxLinWorm/MaxLinWorm.github.io@53c77e0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • readermode.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎readermode.css‎

Copy file name to clipboard
+292Lines changed: 292 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,292 @@
1+
@import url(https://maxlinworm.github.io/max-base.css);
2+
3+
/* NORMALIZAÇÂO */
4+
5+
/* ------- REGRAS -------- */
6+
7+
/* Para normalizar uso de rem */
8+
#cr-iframe {
9+
font-size: 16px;
10+
}
11+
12+
/* Normaliza box-sizing para border-box
13+
* https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
14+
15+
#cr-iframe {
16+
box-sizing: border-box;
17+
}
18+
19+
#cr-iframe *,
20+
#cr-iframe *:before,
21+
#cr-iframe *:after {
22+
box-sizing: inherit;
23+
}
24+
25+
#cr-body {
26+
font-feature-settings: var(--max_body_ffs);
27+
font-variant-ligatures: normal;
28+
font-kerning: normal;
29+
text-rendering: optimizeLegibility;
30+
}
31+
32+
#cr-content-container blockquote {
33+
font-style: normal;
34+
}
35+
36+
/* Fix para bagunça do line-height quando usa superscript */
37+
#cr-content-container sup {
38+
line-height: 0 !important
39+
}
40+
41+
/* HIFENS */
42+
#cr-content-container p {
43+
-webkit-hyphens: var(--max_body_hifens);
44+
-webkit-hyphenate-limit-before: var(--max_body_hifens_limit-before);
45+
-webkit-hyphenate-limit-after: var(--max_body_hifens_limit-after);
46+
-webkit-hyphenate-limit-chars: var(--max_body_hifens_limit-chars);
47+
-webkit-hyphenate-limit-lines: var(--max_body_hifens_limit-lines);
48+
-webkit-hyphenate-limit-last: var(--max_body_hifens_limit-last);
49+
-webkit-hyphenate-limit-zone: var(--max_body_hifens_limit-zone);
50+
51+
-moz-hyphens: var(--max_body_hifens);
52+
-moz-hyphenate-limit-chars: var(--max_body_hifens_limit-chars);
53+
-moz-hyphenate-limit-lines: var(--max_body_hifens_limit-lines);
54+
-moz-hyphenate-limit-last: var(--max_body_hifens_limit-last);
55+
-moz-hyphenate-limit-zone: var(--max_body_hifens_limit-zone);
56+
57+
-ms-hyphens: var(--max_body_hifens);
58+
-ms-hyphenate-limit-chars: var(--max_body_hifens_limit-chars);
59+
-ms-hyphenate-limit-lines: var(--max_body_hifens_limit-lines);
60+
-ms-hyphenate-limit-last: var(--max_body_hifens_limit-last);
61+
-ms-hyphenate-limit-zone: var(--max_body_hifens_limit-zone);
62+
63+
overflow-wrap: var(--max_body_hifens_wrap);
64+
hyphens: var(--max_body_hifens);
65+
hyphenate-limit-chars: var(--max_body_hifens_limit-chars);
66+
hyphenate-limit-lines: var(--max_body_hifens_limit-lines);
67+
hyphenate-limit-last: var(--max_body_hifens_limit-last);
68+
hyphenate-limit-zone: var(--max_body_hifens_limit-zone);
69+
}
70+
71+
#cr-content-container pre code {
72+
font-family: var(--max_code_ff);
73+
font-size: var(--max_code_fs);
74+
line-height: var(--max_code_lh);
75+
font-weight: var(--max_code_fw);
76+
77+
font-feature-settings: var(--max_code_ffs);
78+
-webkit-font-feature-settings: var(--max_code_ffs);
79+
-moz-font-feature-settings: var(--max_code_ffs);
80+
-ms-font-feature-settings: var(--max_code_ffs);
81+
82+
font-variant: var(--max_code_fv);
83+
font-variant-ligatures: var(--max_code_fvl);
84+
font-variant-alternates: var(--max_code_fva);
85+
}
86+
87+
/* CONTAINERS */
88+
89+
#cr-body {
90+
background-color: var(--max_cont_pag_background_bg) !important;
91+
margin: 0px;
92+
padding: 0px;
93+
box-sizing: border-box;
94+
}
95+
96+
#cr-container {
97+
max-width: var(--max_cont_pag_foreground_mw) !important;
98+
padding-left: 0;
99+
padding-right: 0;
100+
box-sizing: border-box;
101+
font-size: var(--max_body_fs);
102+
}
103+
104+
#cr-content-container {
105+
background-color: var(--max_cont_pag_foreground_bg);
106+
margin: var(--max_cont_pag_foreground_margin);
107+
108+
padding-top: var(--max_cont_pag_foreground_pt);
109+
padding-right: var(--max_cont_pag_foreground_pr);
110+
padding-left: var(--max_cont_pag_foreground_pl);
111+
padding-bottom: var(--max_cont_pag_foreground_pb);
112+
113+
max-width: var(--max_cont_pag_foreground_mw);
114+
box-shadow: var(--max_cont_pag_foreground_elevation);
115+
border-radius: var(--max_cont_pag_foreground_brad);
116+
box-sizing: border-box;
117+
font-size: var(--max_body_fs)!important;
118+
}
119+
120+
/* BODY COPY */
121+
122+
#cr-content-wrapper {
123+
font-size: var(--max_body_fs);
124+
line-height: var(--max_body_lh);
125+
font-family: var(--max_body_ff_serif);
126+
color: var(--max_body_c);
127+
text-align: left
128+
}
129+
130+
/* Com indent para separar parágrafos */
131+
132+
#cr-content-wrapper p {
133+
margin: 0;
134+
padding: 0;
135+
136+
margin-block-start: var(--max_body_p-espaco_mbs);
137+
margin-block-end: var(--max_body_p-espaco_mbe);
138+
}
139+
140+
#cr-content-wrapper p:not([align=center]) + p,
141+
#cr-content-wrapper p:not([style='text-align:center']) + p {
142+
margin-block-start: var(--max_body_p-indent_mbs);
143+
text-indent: var(--max_body_p-indent_ti);
144+
}
145+
146+
/* BLOCKQUOTES*/
147+
148+
#cr-content-wrapper blockquote {
149+
padding: 0;
150+
margin: 0 auto;
151+
152+
margin-block-start: var(--max_q_mbs);
153+
margin-block-end: var(--max_q_mbe);
154+
155+
/* Retira espaçamento lateral */
156+
margin-inline-start: 0;
157+
margin-inline-end: 0;
158+
box-sizing: border-box;
159+
160+
border-left: var(--max_q_bl);
161+
padding-left: var(--max_q_pl);
162+
163+
opacity: 1;
164+
}
165+
166+
#cr-content-wrapper blockquote,
167+
#cr-content-wrapper blockquote p {
168+
font-size: var(--max_body_fs);
169+
line-height: var(--max_body_lh);
170+
font-family: var(--max_body_ff_serif);
171+
color: var(--max_body_c);
172+
text-align: left;
173+
box-sizing: border-box;
174+
}
175+
176+
#cr-content-wrapper blockquote:before {
177+
display: none;
178+
}
179+
/* CODE */
180+
181+
#cr-content-wrapper .codeBlock {
182+
font-family: var(--max_code_ff);
183+
font-size: var(--max_code_fs);
184+
line-height: var(--max_code_lh);
185+
font-weight: var(--max_code_fw);
186+
187+
font-feature-settings: var(--max_code_ffs);
188+
-webkit-font-feature-settings: var(--max_code_ffs);
189+
-moz-font-feature-settings: var(--max_code_ffs);
190+
-ms-font-feature-settings: var(--max_code_ffs);
191+
192+
font-variant: var(--max_code_fv);
193+
font-variant-ligatures: var(--max_code_fvl);
194+
font-variant-alternates: var(--max_code_fva);
195+
}
196+
197+
/* LISTS */
198+
199+
#cr-content-wrapper p ul {
200+
margin-block-start: var(--max_ul_mbs);
201+
margin-block-end: var(--max_ul_mbe);
202+
margin-inline-start: var(--max_ul_mis);
203+
}
204+
205+
/* HEADINGS */
206+
207+
#cr-content-wrapper h1 {
208+
font-family: var(--max_h1_ff);
209+
font-size: var(--max_h1_fs);
210+
font-weight: var(--max_h1_fw);
211+
line-height: var(--max_h1_lh);
212+
letter-spacing: var(--max_h1_ls);
213+
214+
margin-block-start: var(--max_h1_mbs);
215+
margin-block-end: var(--max_h1_mbe);
216+
217+
font-variant: var(--max_h1_fv);
218+
}
219+
220+
#cr-content-wrapper h2 {
221+
font-family: var(--max_h2_ff);
222+
font-size: var(--max_h2_fs);
223+
font-weight: var(--max_h2_fw);
224+
line-height: var(--max_h2_lh);
225+
letter-spacing: var(--max_h2_ls);
226+
227+
margin-block-start: var(--max_h2_mbs);
228+
margin-block-end: var(--max_h2_mbe);
229+
230+
font-variant: var(--max_h2_fv);
231+
}
232+
233+
#cr-content-wrapper h3 {
234+
font-family: var(--max_h3_ff);
235+
font-size: var(--max_h3_fs);
236+
font-weight: var(--max_h3_fw);
237+
line-height: var(--max_h3_lh);
238+
letter-spacing: var(--max_h3_ls);
239+
240+
margin-block-start: var(--max_h3_mbs);
241+
margin-block-end: var(--max_h3_mbe);
242+
243+
font-variant: var(--max_h3_fv);
244+
}
245+
246+
#cr-content-wrapper h4 {
247+
font-family: var(--max_h4_ff);
248+
font-size: var(--max_h4_fs);
249+
font-weight: var(--max_h4_fw);
250+
line-height: var(--max_h4_lh);
251+
letter-spacing: var(--max_h4_ls);
252+
253+
margin-block-start: var(--max_h4_mbs);
254+
margin-block-end: var(--max_h4_mbe);
255+
256+
font-variant: var(--max_h4_fv);
257+
}
258+
259+
/* HORIZONTAL RULE */
260+
261+
#cr-content-wrapper hr {
262+
font-size: var(--max_hr_fs);
263+
line-height: var(--max_hr_lh);
264+
position: var(--max_hr_position);
265+
height: var(--max_hr_height);
266+
margin: var(--max_hr_margin);
267+
padding: var(--max_hr_padding);
268+
border: var(--max_hr_border);
269+
outline: var(--max_hr_outline);
270+
271+
background-color: none;
272+
width: 100%;
273+
}
274+
275+
#cr-content-wrapper hr::before {
276+
display: var(--max_hr-before_dislay);
277+
position: var(--max_hr-before_position);
278+
left: var(--max_hr-before_left);
279+
right: var(--max_hr-before_right);
280+
top: var(--max_hr-before_top);
281+
bottom: var(--max_hr-before_bottom);
282+
padding-top: var(--max_hr-before_pt);
283+
content: var(--max_hr-before_content);
284+
text-align: var(--max_hr-before_ta);
285+
}
286+
287+
288+
289+
/* RETIRAR ELEMENTOS */
290+
#cr-pro-features-tooltip {
291+
display: none !important;
292+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.