Skip to content

Commit

Permalink
example site - small css refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
andis-sprinkis committed Feb 23, 2024
1 parent a6b066b commit 0723b75
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions site/documents/index/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
--text-color-link: blue;
--text-color-link-active: red;
--text-color-link-visited: purple;
--text-size-small: 0.85em;
--border-radius-outline: 0.0125em;
--border-radius-pre: 0.22em;
--ul-li-indent-width: clamp(1.35em, 1.75em, 7vw);
Expand Down Expand Up @@ -61,6 +62,12 @@
}
}

@media print {
:root {
--paragraph-width: 70vw;
}
}

*:focus {
outline: var(--color-focus-outline) solid 0.2rem;
outline-offset: 0.3275em;
Expand Down Expand Up @@ -245,24 +252,6 @@ ul.inline-list-spread {
max-width: var(--paragraph-width);
}

@media print {
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
nav,
hr,
pre,
ul.inline-list-sep,
ul.inline-list-spread {
max-width: 70vw;
}
}

nav .inline-list-sep,
nav .inline-list-spread {
line-height: var(--line-height-nav-inline);
Expand Down Expand Up @@ -450,10 +439,6 @@ pre code {
border-radius: 0;
}

.nav-bottom > ul.inline-list-sep {
justify-content: center;
}

@media print {
pre,
code {
Expand All @@ -462,7 +447,13 @@ pre code {
border-radius: 0;
font-size: 1em;
}
}

.nav-bottom > ul.inline-list-sep {
justify-content: center;
}

@media print {
.nav-top,
.nav-bottom {
display: none;
Expand All @@ -475,7 +466,7 @@ pre code {

small,
.text-small {
font-size: 0.85em;
font-size: var(--text-size-small);
}

.text-align-left {
Expand Down

0 comments on commit 0723b75

Please sign in to comment.