Skip to content

Commit 857d319

Browse files
authored
Typography (#5)
* Updates for typography * Updates formatting headers and titles * Fix padding * Updates for preview-src/index.adoc
1 parent 7d04ac9 commit 857d319

File tree

9 files changed

+92
-44
lines changed

9 files changed

+92
-44
lines changed

preview-src/index.adoc

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
= Hardware and Software Requirements
1+
= Document Header
22
Author Name
33
:idprefix:
44
:idseparator: -
55
:!example-caption:
66
:!table-caption:
77
:page-pagination:
88

9+
== Headers and Titles
10+
911
[.float-group]
1012
--
1113
image:multirepo-ssg.svg[Multirepo SSG,180,135,float=right,role=float-gap]
@@ -22,7 +24,13 @@ Quisque pharetra tristique arcu fringilla dapibus.
2224
https://example.org[Curabitur,role=unresolved] ut massa aliquam, cursus enim et, accumsan lectus.
2325
Mauris eget leo nunc, nec tempus mi? Curabitur id nisl mi, ut vulputate urna.
2426

25-
== Cu solet
27+
== Headers and Titles
28+
29+
=== Section Title (Level 1)
30+
31+
==== Section Title (Level 2)
32+
33+
===== Section Title (Level 3)
2634

2735
Nominavi luptatum eos, an vim hinc philosophia intellegebat.
2836
Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#sonet# qui ea.
@@ -31,6 +39,19 @@ E = mc^2^.
3139
Eum an doctus <<liber-recusabo,maiestatis efficiantur>>.
3240
Eu mea inani iriure.footnote:[Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit.]
3341

42+
[%autowidth.stretch]
43+
|===
44+
|Column 1, header row |Column 2, header row |Column 3, header row
45+
46+
|Cell in column 1, row 2
47+
|Cell in column 2, row 2
48+
|Cell in column 3, row 2
49+
50+
|Cell in column 1, row 3
51+
|Cell in column 2, row 3
52+
|Cell in column 3, row 3
53+
|===
54+
3455
[,json]
3556
----
3657
{
@@ -301,7 +322,7 @@ Est in reque homero principes, meis deleniti mediocrem ad has.
301322
Ex nam suas nemore dignissim, vel apeirian democritum et.
302323

303324
.Antora is a multi-repo documentation site generator
304-
image::multirepo-ssg.svg[Multirepo SSG,3000,opts=interactive]
325+
image::multirepo-ssg.svg[Multirepo SSG,300,opts=interactive]
305326

306327
Make the switch today!
307328

src/css/breadcrumbs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.breadcrumbs {
22
display: none;
33
flex: 1 1;
4-
padding: 0 0.5rem 0 0.75rem;
4+
padding: 0 0.5rem 0 calc(24 / var(--rem-base) * 1rem);
55
line-height: var(--nav-line-height);
66
}
77

src/css/doc.css

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33
font-size: var(--doc-font-size);
44
hyphens: auto;
55
line-height: var(--doc-line-height);
6-
margin: var(--doc-margin);
6+
margin: 0; /* var(--doc-margin); */
77
max-width: var(--doc-max-width);
8-
padding: 0 1rem 4rem;
8+
padding-right: calc(40 / var(--rem-base) * 1rem);
9+
padding-left: calc(24 / var(--rem-base) * 1rem);
10+
padding-bottom: 4rem;
911
}
1012

1113
@media screen and (min-width: 1024px) {
1214
.doc {
1315
flex: auto;
1416
font-size: var(--doc-font-size--desktop);
15-
margin: var(--doc-margin--desktop);
17+
margin: 0; /* var(--doc-margin--desktop); */
1618
max-width: var(--doc-max-width--desktop);
1719
min-width: 0;
1820
}
@@ -32,36 +34,47 @@
3234

3335
.doc > h1.page:first-child {
3436
/* font-size: calc(36 / var(--rem-base) * 1rem); */
35-
margin: 1.5rem 0;
37+
margin: calc(24 / var(--rem-base) * 1rem) 0;
3638
}
3739

3840
.doc h1 {
3941
/* .ds-text-h1 */
40-
font-size: 1.5rem;
42+
font-size: calc(24 / var(--rem-base) * 1rem);
4143
font-weight: 600;
4244
}
4345

4446
.doc h2 {
4547
/* .ds-text-h2 */
46-
font-size: 1.25rem;
48+
font-size: calc(20 / var(--rem-base) * 1rem);
4749
font-weight: 600;
4850
}
4951

5052
.doc h3 {
51-
/* .ds-text-h3 { */
52-
font-size: 1rem;
53+
/* .ds-text-h3 */
54+
font-size: calc(20 / var(--rem-base) * 1rem);
5355
font-weight: 600;
5456
}
5557

5658
.doc h4 {
5759
/* .ds-text-h4 */
58-
font-size: 0.938rem;
60+
font-size: calc(16 / var(--rem-base) * 1rem);
61+
font-weight: 600;
62+
}
63+
64+
.doc h5 {
65+
/* .ds-text-h5 */
66+
font-size: calc(15 / var(--rem-base) * 1rem);
5967
font-weight: 600;
6068
}
6169

70+
.doc a.link,
71+
.doc a.link:hover {
72+
color: var(--heading-font-color);
73+
}
74+
6275
@media screen and (min-width: 769px) {
6376
.doc > h1.page:first-child {
64-
margin-top: 2.5rem;
77+
margin-top: calc(8 / var(--rem-base) * 1rem);
6578
}
6679
}
6780

@@ -75,7 +88,7 @@
7588

7689
#preamble + .sect1,
7790
.doc .sect1 + .sect1 {
78-
margin-top: 2rem;
91+
margin-top: calc(48 / var(--rem-base) * 1rem);
7992
}
8093

8194
.doc h1.sect0 {
@@ -87,9 +100,10 @@
87100

88101
.doc h2:not(.discrete) {
89102
border-bottom: 1px solid var(--section-divider-color);
90-
margin-left: -1rem;
91-
margin-right: -1rem;
92-
padding: 0.4rem 1rem 0.1rem;
103+
/* margin-left: -1rem;
104+
margin-right: -1rem; */
105+
margin: 0;
106+
padding: 0 0 calc(16 / var(--rem-base) * 1rem);
93107
}
94108

95109
.doc h3:not(.discrete),
@@ -175,7 +189,7 @@
175189
}
176190

177191
.doc pre {
178-
font-size: calc(16 / var(--rem-base) * 1rem);
192+
font-size: calc(14 / var(--rem-base) * 1rem);
179193
line-height: 1.5;
180194
margin: 0;
181195
}
@@ -185,7 +199,7 @@
185199
}
186200

187201
.doc .paragraph.lead > p {
188-
font-size: calc(18 / var(--rem-base) * 1rem);
202+
font-size: calc(14 / var(--rem-base) * 1rem);
189203
}
190204

191205
.doc .right {
@@ -243,7 +257,7 @@
243257
}
244258

245259
.doc table.tableblock {
246-
font-size: calc(15 / var(--rem-base) * 1rem);
260+
font-size: calc(14.5 / var(--rem-base) * 1rem);
247261
}
248262

249263
.doc .tablecontainer,
@@ -268,7 +282,7 @@
268282

269283
.doc table.tableblock,
270284
.doc table.tableblock > * > tr > * {
271-
border: 0 solid var(--table-border-color);
285+
border-bottom: 0 solid var(--table-border-color);
272286
}
273287

274288
.doc table.grid-all > * > tr > * {
@@ -511,7 +525,7 @@
511525
}
512526

513527
.doc .verseblock {
514-
font-size: 1.15em;
528+
font-size: 1em;
515529
padding: 1rem 2rem;
516530
}
517531

@@ -752,7 +766,7 @@
752766
.doc .sidebarblock > .content > .title {
753767
font-size: calc(22.5 / var(--rem-base) * 1rem);
754768
font-weight: var(--alt-heading-font-weight);
755-
line-height: 1.3;
769+
line-height: 1.5;
756770
margin-bottom: -0.3em;
757771
text-align: center;
758772
}
@@ -929,9 +943,9 @@
929943
border-radius: 100%;
930944
display: inline-block;
931945
font-family: var(--body-font-family);
932-
font-size: calc(13.5 / var(--rem-base) * 1rem);
946+
font-size: calc(12 / var(--rem-base) * 1rem);
933947
font-style: normal;
934-
line-height: 1.2;
948+
line-height: 1.5;
935949
text-align: center;
936950
width: 1.25em;
937951
height: 1.25em;

src/css/footer.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
footer.footer {
22
background-color: var(--footer-background);
33
color: var(--footer-font-color);
4-
font-size: calc(15 / var(--rem-base) * 1rem);
4+
font-size: calc(12 / var(--rem-base) * 1rem);
55
line-height: var(--footer-line-height);
66
padding: 1.5rem;
77
}

src/css/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@
3333
flex-basis: var(--toc-width--widescreen);
3434
}
3535
}
36+
37+
main {
38+
padding-right: calc(24 / var(--rem-base) * 1rem);
39+
}

src/css/nav.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
@media screen and (min-width: 1024px) {
1818
.nav-container {
19-
font-size: calc(15.5 / var(--rem-base) * 1rem);
19+
font-size: calc(14.5 / var(--rem-base) * 1rem);
2020
flex: none;
2121
position: static;
2222
top: 0;
@@ -168,7 +168,7 @@ html.is-clipped--nav {
168168
}
169169

170170
.nav-panel-explore .context {
171-
font-size: calc(15 / var(--rem-base) * 1rem);
171+
font-size: calc(14.5 / var(--rem-base) * 1rem);
172172
flex-shrink: 0;
173173
color: var(--nav-muted-color);
174174
box-shadow: 0 -1px 0 var(--nav-panel-divider-color);

src/css/toc.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626

2727
.toc .toc-menu ul {
28-
font-size: calc(15 / var(--rem-base) * 1rem);
28+
font-size: calc(16 / var(--rem-base) * 1rem);
2929
line-height: var(--toc-line-height);
3030
list-style: none;
3131
margin: 0;
@@ -51,11 +51,15 @@
5151

5252
@media screen and (min-width: 1024px) {
5353
.toc .toc-menu h3 {
54-
font-size: calc(15 / var(--rem-base) * 1rem);
54+
font-size: calc(16 / var(--rem-base) * 1rem);
5555
}
5656

5757
.toc .toc-menu ul {
58-
font-size: calc(13.5 / var(--rem-base) * 1rem);
58+
font-size: calc(16 / var(--rem-base) * 1rem);
59+
}
60+
61+
.toc.sidebar .toc-menu {
62+
margin-left: calc(40 / var(--rem-base) * 1rem);
5963
}
6064
}
6165

@@ -77,6 +81,7 @@
7781
display: inline-block;
7882
padding: 0.25rem 0 0.25rem 0.5rem;
7983
text-decoration: none;
84+
font-weight: var(--toc-menu-font-weight);
8085
}
8186

8287
.sidebar.toc .toc-menu a {

src/css/toolbar.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,20 @@
22
color: var(--toolbar-font-color);
33
align-items: center;
44
background-color: var(--toolbar-background);
5-
box-shadow: 0 1px 0 var(--toolbar-border-color);
5+
/* box-shadow: 0 1px 0 var(--toolbar-border-color); */
66
display: flex;
7-
font-size: calc(15 / var(--rem-base) * 1rem);
7+
font-size: calc(14.5 / var(--rem-base) * 1rem);
88
height: var(--toolbar-height);
99
justify-content: flex-start;
1010
position: sticky;
1111
top: var(--navbar-height);
1212
z-index: var(--z-index-toolbar);
1313
}
1414

15+
.toolbar ul li:last-of-type {
16+
color: var(--toolbar-muted-color);
17+
}
18+
1519
.toolbar a {
1620
color: inherit;
1721
}
@@ -64,5 +68,5 @@
6468
}
6569

6670
.toolbar .edit-this-page a {
67-
color: var(--toolbar-muted-color);
71+
color: var(--toolbar-font-color);
6872
}

src/css/vars.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--body-line-height: 1.5;
88
--body-font-color: var(--ds-text-primary);
99
--body-font-family: "Roboto Flex", sans-serif;
10-
--body-font-weight-bold: 500;
10+
--body-font-weight-bold: 600;
1111
--monospace-font-family: "Roboto Mono", monospace;
1212
--monospace-font-weight-bold: 500;
1313
/* base */
@@ -31,16 +31,16 @@
3131
/* nav */
3232
--nav-background: var(--ds-background-body);
3333
--nav-border-color: var(--ds-divider);
34-
--nav-line-height: 1.35;
34+
--nav-line-height: 1.5;
3535
--nav-heading-font-color: var(--ds-text-tertiary);
3636
--nav-muted-color: var(--ds-text-tertiary);
3737
--nav-panel-divider-color: var(--ds-divider);
3838
--nav-secondary-background: var(--ds-background-body);
3939
/* toolbar */
4040
--toolbar-background: var(--ds-background-body);
4141
--toolbar-border-color: var(--ds-divider);
42-
--toolbar-font-color: var(--ds-text-primary);
43-
--toolbar-muted-color: var(--ds-text-disabled);
42+
--toolbar-font-color: var(--ds-primary-main);
43+
--toolbar-muted-color: var(--ds-text-tertiary);
4444
--page-version-menu-background: var(--ds-background-level3);
4545
--page-version-missing-font-color: var(--ds-text-tertiary);
4646
/* admonitions */
@@ -57,8 +57,8 @@
5757
/* doc */
5858
--doc-font-color: var(--ds-text-secondary);
5959
--doc-font-size: inherit;
60-
--doc-font-size--desktop: calc(17 / var(--rem-base) * 1rem);
61-
--doc-line-height: 1.6;
60+
--doc-font-size--desktop: calc(16 / var(--rem-base) * 1rem);
61+
--doc-line-height: 1.5;
6262
--doc-margin: 0 auto;
6363
--doc-margin--desktop: 0 2rem;
6464
--heading-font-color: var(--ds-text-primary);
@@ -94,17 +94,17 @@
9494
--table-stripe-background: var(--ds-background-body);
9595
--table-footer-background: linear-gradient(to bottom, var(--ds-background-level1) 0%, var(--ds-background-body) 100%);
9696
/* toc */
97-
--toc-font-color: var(--nav-muted-color);
97+
--toc-font-color: var(--ds-text-secondary);
9898
--toc-heading-font-color: var(--doc-font-color);
9999
--toc-border-color: var(--ds-divider);
100-
--toc-line-height: 1.2;
100+
--toc-line-height: 1.5;
101101
/* footer */
102102
--footer-line-height: var(--doc-line-height);
103103
--footer-background: var(--ds-neutral-soft-bg);
104104
--footer-font-color: var(--ds-text-primary);
105105
--footer-link-font-color: var(--link-font-color);
106106
/* dimensions and positioning */
107-
--navbar-height: calc(63 / var(--rem-base) * 1rem);
107+
--navbar-height: calc(104 / var(--rem-base) * 1rem);
108108
--toolbar-height: calc(45 / var(--rem-base) * 1rem);
109109
--drawer-height: var(--toolbar-height);
110110
--body-top: var(--navbar-height);

0 commit comments

Comments
 (0)