Move site map CSS to the site map template

This commit is contained in:
Helen Chong 2024-04-16 00:31:00 +08:00
parent cb63c70793
commit 14febca88b
3 changed files with 38 additions and 39 deletions

View File

@ -11,9 +11,6 @@
{# CSS #} {# CSS #}
<link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}"> <link rel="stylesheet" href="{{'/assets/css/main.css' | url | safe}}">
{% if sitemap %}
<link rel="stylesheet" href="{{'/assets/css/sitemap.css' | url | safe}}">
{% endif %}
{# Fonts #} {# Fonts #}
<link rel="stylesheet" href="{{'/assets/fonts/noto-sans/noto-sans.css' | url | safe}}"> <link rel="stylesheet" href="{{'/assets/fonts/noto-sans/noto-sans.css' | url | safe}}">

View File

@ -1,35 +0,0 @@
main ul {
display: grid;
gap: 0.5rem;
}
.link-list {
margin: 0 0 0 1em;
padding: 0;
list-style: none;
}
.link-list a:focus {
outline: 0.15rem solid var(--clr-link);
}
.link-list li {
padding-left: 0.5em;
align-items: start;
}
.link-list li::marker {
content: "▶";
}
.link-list ul li::marker {
content: "★";
}
.link-list ul ul li::marker {
content: "♥";
}
.link-list ul ul ul li::marker {
content: "❣";
}

View File

@ -4,7 +4,6 @@ title: Site Map
eleventyExcludeFromCollections: true eleventyExcludeFromCollections: true
metadata: metadata:
desc: Site map of Leilukin's Hub. desc: Site map of Leilukin's Hub.
sitemap: true
--- ---
<article> <article>
@ -99,3 +98,41 @@ sitemap: true
</ul> </ul>
</ul> </ul>
</article> </article>
<style>
main ul {
display: grid;
gap: 0.5rem;
}
.link-list {
margin: 0 0 0 1em;
padding: 0;
list-style: none;
}
.link-list a:focus {
outline: 0.15rem solid var(--clr-link);
}
.link-list li {
padding-left: 0.5em;
align-items: start;
}
.link-list li::marker {
content: "▶";
}
.link-list ul li::marker {
content: "★";
}
.link-list ul ul li::marker {
content: "♥";
}
.link-list ul ul ul li::marker {
content: "❣";
}
</style>