Correct tab size and adjust toc

This commit is contained in:
thiloho
2023-05-19 12:33:18 +02:00
parent 6001f195b3
commit ab7f43364f
5 changed files with 46 additions and 38 deletions

View File

@@ -55,6 +55,7 @@
} }
input { input {
max-inline-size: 100%; inline-size: 100%;
margin-block-start: 0.25rem;
} }
</style> </style>

View File

@@ -12,6 +12,6 @@ const { title, description } = Astro.props;
<meta name="description" content={description} /> <meta name="description" content={description} />
<script is:inline> <script is:inline>
const storedTheme = localStorage.getItem("theme"); const storedTheme = localStorage.getItem("theme");
document.documentElement.classList = storedTheme; document.documentElement.className = storedTheme;
</script> </script>
</head> </head>

View File

@@ -24,11 +24,18 @@
ul { ul {
position: absolute; position: absolute;
border: var(--standard-border); border: var(--standard-border);
padding: 1rem;
padding-inline-start: 2rem; padding-inline-start: 2rem;
background-color: var(--background-color); background-color: var(--background-color);
inset-block-start: var(--nav-height); inset-block-start: var(--nav-height);
margin: 0; margin: 0;
padding: 0;
list-style: none;
inset-inline-end: 0; inset-inline-end: 0;
} }
a {
display: block;
padding-inline: 1rem;
padding-block: 0.25rem;
}
</style> </style>

View File

@@ -6,7 +6,7 @@
let theme = "System"; let theme = "System";
function loadTheme() { function loadTheme() {
theme = localStorage.getItem("theme"); theme = localStorage.getItem("theme") || "System";
} }
function saveTheme() { function saveTheme() {
@@ -15,7 +15,7 @@
loadTheme(); loadTheme();
$: document.documentElement.classList = theme; $: document.documentElement.className = theme;
</script> </script>
<Dropdown shortcut="T"> <Dropdown shortcut="T">