Skip to content

Commit

Permalink
example site - icons to use 'content' pseudoelem. css prop. / make al…
Browse files Browse the repository at this point in the history
…l headings default bold
  • Loading branch information
andis-sprinkis committed Dec 7, 2023
1 parent 1ddc848 commit db8b187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion site/documents/index/_block_layout_index_children.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ <h1>Example index page</h1>
aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia.
</p>
</section>
<hr />
<section>
<h2 id="heading-nav-documents">Site documents</h2>
<nav aria-labelledby="heading-nav-documents">
Expand Down
16 changes: 4 additions & 12 deletions site/documents/index/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ a:hover {
a[target='_blank']::after,
a[href^='mailto:']::after,
a[href^='tel:']::after {
content: '';
background: var(--url-icon-new-tab);
content: var(--url-icon-new-tab);
display: inline-block;
width: 1em;
height: var(--line-height-em);
Expand Down Expand Up @@ -209,14 +208,9 @@ h3,
h4,
h5,
h6 {
font-weight: normal;
font-size: 1em;
}

h1 {
font-weight: bold;
}

ul,
ol {
margin-top: 0;
Expand Down Expand Up @@ -280,7 +274,7 @@ h1 {
}

h2 {
margin-top: calc(0.5 * var(--grid-gap));
margin-top: var(--grid-gap);
}

ul {
Expand All @@ -295,8 +289,7 @@ ul li {
}

ul li::before {
content: '';
background: var(--url-icon-bullet);
content: var(--url-icon-bullet);
display: inline-block;
width: 1em;
height: var(--line-height-em);
Expand Down Expand Up @@ -329,8 +322,7 @@ ul.inline-list-sep li::before {
}

ul.inline-list-sep li:not(:last-child)::after {
content: '';
background: var(--url-icon-dot);
content: var(--url-icon-dot);
print-color-adjust: exact;
display: inline-block;
width: 1em;
Expand Down

0 comments on commit db8b187

Please sign in to comment.