Skip to content

Commit 42f1b2f

Browse files
committed
Adjust modular scale and font sizes
1 parent b8c327e commit 42f1b2f

File tree

1 file changed

+19
-20
lines changed
  • lib/rdoc/generator/template/rorvswild/css

1 file changed

+19
-20
lines changed

lib/rdoc/generator/template/rorvswild/css/rdoc.css

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
--color-primary: oklch(0.5 0.18 29);
1313
--color-primary-hover: oklch(0.4 0.18 29);
14-
--color-strong-background: oklch(0.97 0.03 59);
14+
--color-strong-background: oklch(0.97 0.03 89);
1515
--color-topbar: var(--color-primary);
1616
--color-topbar-text: var(--color-background);
1717
--color-text: oklch(0.35 0.03 269);
@@ -194,7 +194,7 @@ summary::-webkit-details-marker { display: none; }
194194

195195
details > summary::after {
196196
content: '+';
197-
font-size: 0.833em;
197+
font-size: 0.823em;
198198
font-weight: bold;
199199
width: 2em;
200200
height: 2em;
@@ -221,34 +221,34 @@ main {
221221

222222
main sup {
223223
vertical-align: super;
224-
font-size: 0.8em;
224+
font-size: 0.823em;
225225
}
226226

227227
main h1 {
228-
font-size: 2.074rem;
228+
font-size: 2.178rem;
229229
line-height: 3rem;
230230
margin: 1rem 0 0;
231231
color: var(--color-title);
232232
word-break: break-word;
233233
}
234234

235235
main h1 + p {
236-
font-size: 1.44em;
236+
font-size: 1.383em;
237237
margin-top: 0.5rem;
238238
color: var(--color-text-light);
239239
}
240240

241241
main h2 {
242242
margin: 1.5em 0 0.5em;
243-
font-size: 1.44rem;
243+
font-size: 1.476rem;
244244
line-height: 3rem;
245245
color: var(--color-title);
246246
box-shadow: 0 1px 0 0 var(--color-text-light);
247247
}
248248

249249
main h3 {
250250
margin: 1.5em 0 0.5em;
251-
font-size: 1.2em;
251+
font-size: 1.215em;
252252
color: var(--color-title);
253253
}
254254

@@ -268,7 +268,7 @@ main h5 {
268268

269269
main h6 {
270270
margin: 1em 0 0;
271-
font-size: 0.833rem;
271+
font-size: 0.823rem;
272272
text-transform: uppercase;
273273
letter-spacing: 0.1em;
274274
color: var(--color-title);
@@ -288,7 +288,7 @@ main p {
288288
main pre {
289289
margin: 1em 0;
290290
padding: 1em 1.5em;
291-
font-size: 0.833rem;
291+
font-size: 0.823rem;
292292
}
293293

294294
main hr {
@@ -367,7 +367,7 @@ nav {
367367
z-index: 10;
368368
display: flex;
369369
flex-direction: column;
370-
font-size: 0.833rem;
370+
font-size: 0.823rem;
371371
line-height: 1.5rem;
372372
}
373373

@@ -381,7 +381,7 @@ nav[hidden] { display: none; }
381381
nav footer {
382382
padding: 1em 1rem;
383383
border-top: 1px solid var(--color-border);
384-
font-size: 0.694rem;
384+
font-size: 0.678rem;
385385
}
386386

387387
nav footer a:any-link {
@@ -421,7 +421,7 @@ nav footer a:any-link {
421421
nav h2 {
422422
margin: 0 0 0.5em;
423423
padding: 0.5em 0;
424-
font-size: 1.2em;
424+
font-size: 1.215em;
425425
color: var(--color-text);
426426
border-bottom: 1px solid var(--color-border);
427427
}
@@ -430,7 +430,7 @@ nav h3,
430430
#table-of-contents-navigation {
431431
margin: 0;
432432
padding: 0.5em 0;
433-
font-size: 0.694rem;
433+
font-size: 0.678rem;
434434
text-transform: uppercase;
435435
letter-spacing: 0.05em;
436436
}
@@ -523,7 +523,7 @@ nav.contextual { display: none }
523523
border: 1px solid var(--color-border);
524524
color: var(--color-text);
525525
border-radius: 4px;
526-
font-size: 14px;
526+
font-size: 0.823em;
527527
outline: none;
528528
transition: border-color 0.3s ease;
529529
background-color: var(--color-background);
@@ -586,7 +586,7 @@ nav.contextual { display: none }
586586
}
587587

588588
#search-results pre {
589-
font-size: 0.833rem;
589+
font-size: 0.823em;
590590
margin: 0.5rem 0;
591591
}
592592

@@ -611,7 +611,7 @@ code {
611611
background-color: var(--color-code-background);
612612
padding: 0em 0.4em;
613613
border-radius: 3px;
614-
font-size: 1em;
614+
font-size: 0.937em;
615615
line-height: 1em;
616616
text-transform: initial;
617617
}
@@ -652,10 +652,9 @@ em {
652652
margin-bottom: 0.75em;
653653
padding-left: 0;
654654
font-family: var(--font-mono);
655-
font-size: 110%;
656655
}
657656

658-
.constants-list > dl dt a { color: inherit; }
657+
.c > dl dt a { color: inherit; }
659658

660659
.constants-list > dl dd {
661660
margin: 0 0 2em 0;
@@ -700,7 +699,7 @@ em {
700699

701700
.toggle-source {
702701
margin-top: 1rem;
703-
font-size: 0.833rem;
702+
font-size: 0.823rem;
704703
font-weight: 400;
705704
line-height: 1rem;
706705
background: var(--color-code-background);
@@ -822,7 +821,7 @@ pre + .toggle-source { margin-top: 0.5rem; }
822821
--color-primary: oklch(0.85 0.09 29);
823822
--color-primary-hover: oklch(87.78296875% 0.07 29);
824823

825-
--color-strong-background: oklch(0.27 0.04 59);
824+
--color-strong-background: oklch(0.27 0.04 89);
826825

827826
--color-topbar: oklch(0.5 0.18 29);
828827
--color-topbar-text: oklch(0.99 0.001 269);

0 commit comments

Comments
 (0)