Skip to content

Commit 54a3997

Browse files
committed
layout emblems on home page using flexbox and display in monospace
1 parent f4353f6 commit 54a3997

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

preview-src/home.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Content for hero panel.
2525

2626
Introduction of things.
2727

28-
[.grid]
28+
[.grid.has-emblems]
2929
Thing A [.emblem]#Emblem#::
3030
Description of thing A.
3131

src/css/home.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
grid-row: 1;
3939
font-style: normal;
4040
padding-right: 0;
41+
word-wrap: normal;
4142
}
4243

4344
.doc .grid dd {
@@ -46,14 +47,21 @@
4647
}
4748
}
4849

50+
.doc .grid.has-emblems dt {
51+
display: flex;
52+
}
53+
4954
.doc .grid dt .emblem {
5055
color: var(--color-gray-50);
56+
font-family: var(--monospace-font-family);
5157
font-weight: normal;
58+
font-size: 0.95em;
59+
letter-spacing: -0.025em;
5260
}
5361

5462
.doc .grid dt .emblem::before {
5563
content: '//';
56-
padding-right: 0.5ch;
64+
padding: 0 0.5ch;
5765
}
5866

5967
.doc .grid .ulist {

0 commit comments

Comments
 (0)