Complete #52, Optimize CSS, Reduce code duplication, Scrap templates; Massive refactor.

This commit is contained in:
Cutieguwu
2025-08-20 16:08:41 -04:00
parent 04a4adb4d4
commit d1e06b432d
55 changed files with 1533 additions and 1896 deletions

View File

@@ -1,40 +1,44 @@
.nav_dropdown {
> .header {
.dropdown {
> header {
display: grid;
grid-template-columns: 1fr min-content;
align-items: center;
ion-icon {
> ion-icon {
align-self: center;
transition-duration: 0.25s;
}
}
> .body {
> ul {
display: none;
border-bottom-left-radius: var(--border-radius-small);
border-bottom-right-radius: var(--border-radius-small);
background-color: var(--background-1);
// Remove default padding and style applied to ul for bullets.
padding: 0 var(--spacing-small);
list-style: none;
}
}
.nav_dropdown:hover {
> .header {
.dropdown:hover {
> header {
transform: var(--transform-scale-x);
ion-icon {
> ion-icon {
rotate: 90deg;
transition-duration: 0.25s;
}
}
> .body {
> ul {
display: grid;
}
}
@media only screen and (max-width: 500px) {
.nav_dropdown > .header ion-icon {
.dropdown > header > ion-icon {
margin-right: var(--padding-mobile);
}
}