chore(style): add font tokens, normalize hex case, fix .note order
- --font-title and --font-body replace four repeated literal font stacks. - Hex colors normalized to uppercase (6 of 9 values already were). - .note moved next to blockquote, its closest relative; it was stranded after the @media print block for no reason. - The RSS badge's rect now uses fill: var(--accent) instead of a hardcoded #D9480F, so it already follows the print override (--accent becomes #000) instead of ignoring it. Verified: CSS and the three touched pages (en index, services, it servizi) pass the W3C Nu checker.
This commit is contained in:
parent
3284ce5c76
commit
943e8e8b15
2 changed files with 22 additions and 20 deletions
|
|
@ -3,19 +3,21 @@
|
||||||
--surface: #F1EDE0;
|
--surface: #F1EDE0;
|
||||||
--border: #D9D3C2;
|
--border: #D9D3C2;
|
||||||
--text: #111417;
|
--text: #111417;
|
||||||
--muted: #5b564a;
|
--muted: #5B564A;
|
||||||
--accent: #D9480F;
|
--accent: #D9480F;
|
||||||
--link: #b13a0b;
|
--link: #B13A0B;
|
||||||
|
--font-title: "Courier New", Courier, monospace;
|
||||||
|
--font-body: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
:root {
|
:root {
|
||||||
--bg: #111417;
|
--bg: #111417;
|
||||||
--surface: #1b1f23;
|
--surface: #1B1F23;
|
||||||
--border: #5b564a;
|
--border: #5B564A;
|
||||||
--text: #F9F7ED;
|
--text: #F9F7ED;
|
||||||
--muted: #8a8473;
|
--muted: #8A8473;
|
||||||
--link: #f0683a;
|
--link: #F0683A;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -25,13 +27,13 @@ body {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
background-color: var(--bg);
|
background-color: var(--bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: var(--font-body);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1, h2, h3 {
|
h1, h2, h3 {
|
||||||
margin: 2em 0 .5em;
|
margin: 2em 0 .5em;
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: var(--font-title);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
@ -75,10 +77,18 @@ blockquote {
|
||||||
border-left: 4px solid var(--accent);
|
border-left: 4px solid var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.note {
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: .5em 1em;
|
||||||
|
border-left: 4px solid var(--accent);
|
||||||
|
background-color: var(--surface);
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: var(--surface);
|
background-color: var(--surface);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: var(--font-title);
|
||||||
font-size: .9375em;
|
font-size: .9375em;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
@ -123,7 +133,7 @@ code {
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
:root {
|
:root {
|
||||||
--bg: #fff;
|
--bg: #FFF;
|
||||||
--border: #000;
|
--border: #000;
|
||||||
--text: #000;
|
--text: #000;
|
||||||
--muted: #000;
|
--muted: #000;
|
||||||
|
|
@ -144,14 +154,6 @@ code {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.note {
|
|
||||||
margin: 1em 0;
|
|
||||||
padding: .5em 1em;
|
|
||||||
border-left: 4px solid var(--accent);
|
|
||||||
background-color: var(--surface);
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
@ -190,7 +192,7 @@ thead th {
|
||||||
.data tbody th {
|
.data tbody th {
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: var(--font-title);
|
||||||
}
|
}
|
||||||
|
|
||||||
.data td {
|
.data td {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
<a href="{{url_news}}feed.xml" title="RSS"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="RSS"><rect width="32" height="32" rx="6" fill="#D9480F"/><circle cx="9" cy="23" r="3" fill="#fff"/><path d="M6 14a12 12 0 0 1 12 12M6 6a20 20 0 0 1 20 20" fill="none" stroke="#fff" stroke-width="3"/></svg></a>
|
<a href="{{url_news}}feed.xml" title="RSS"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" role="img" aria-label="RSS"><rect width="32" height="32" rx="6" style="fill:var(--accent)"/><circle cx="9" cy="23" r="3" fill="#fff"/><path d="M6 14a12 12 0 0 1 12 12M6 6a20 20 0 0 1 20 20" fill="none" stroke="#fff" stroke-width="3"/></svg></a>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue