mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 03:21:35 +01:00
Correct tab size and adjust toc
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
max-inline-size: 100%;
|
inline-size: 100%;
|
||||||
|
margin-block-start: 0.25rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user