fix nav styling,

fix linting
This commit is contained in:
Arthur Lu 2023-10-19 17:26:37 +00:00
parent 4e4b63f63a
commit 9b3a1e8cad
4 changed files with 10 additions and 9 deletions

View File

@ -32,6 +32,7 @@ header h1 {
margin: 0;
background-color: var(--nav-header-bg-color);
color: var(--nav-header-text-color);
width: fit-content;
}
nav {
@ -64,20 +65,20 @@ label[for="navtoggle"], #navtoggle {
align-items: center;
}
nav a[aria-current="page"], nav a:hover {
nav a:hover, nav a[aria-current="page"] {
color: var(--nav-link-active-text-color);
background-color: var(--nav-link-active-bg-color);
}
nav:hover a[aria-current="page"] {
color: var(--nav-text-color);
background-color: var(--nav-bg-color);
}
nav:hover a[aria-current="page"]:hover {
color: var(--nav-link-active-text-color);
background-color: var(--nav-link-active-bg-color);
}
nav:hover a[aria-current="page"]:has(~ a:hover) {
color: var(--nav-text-color);
background-color: var(--nav-bg-color);
}
}
@media screen and (width <= 600px){

View File

@ -44,7 +44,7 @@ main, dialog {
}
main {
padding: 0 16px 16px 16px;
padding: 0 16px 16px;
}
.w3-card {

View File

@ -231,7 +231,7 @@ async function request (url, content) {
}
}
catch (error) {
return {status: 400, error: error};
return { status: 400, error };
}
}

View File

@ -44,7 +44,7 @@
</nav>
</header>
<main>
<section class="w3-container">
<section>
<h2>Settings</h2>
<form id = "settings">
<div class="w3-card w3-padding">