mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-14 10:48:12 +02:00
Added subnavbar.
This commit is contained in:
1 parent
bdf6871b84
commit
46c35689d7
8 files changed
+298
-19
No files matched your search
+84
-2
@@ -49,7 +49,7 @@ body {
|
||||
padding: 2rem;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 800px) auto;
|
||||
grid-template-columns: minmax(0, 800px) auto auto;
|
||||
justify-content: center;
|
||||
align-items: start;
|
||||
gap: 1rem;
|
||||
@@ -270,6 +270,73 @@ select {
|
||||
image-rendering: auto;
|
||||
}
|
||||
|
||||
.SubNavbar {
|
||||
grid-column: 3;
|
||||
grid-row: 1;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
|
||||
padding: 0.5rem;
|
||||
|
||||
position: sticky;
|
||||
top: 2rem;
|
||||
align-self: start;
|
||||
|
||||
background-color: var(--Base);
|
||||
border: 4px solid var(--Mauve);
|
||||
}
|
||||
|
||||
.SubNavbarLink {
|
||||
display: block;
|
||||
|
||||
padding: 0.65rem 0.8rem;
|
||||
|
||||
color: var(--Text);
|
||||
background-color: var(--Mantle);
|
||||
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
|
||||
border: 3px solid var(--Surface2);
|
||||
|
||||
box-shadow:
|
||||
3px 3px 0
|
||||
var(--Crust);
|
||||
}
|
||||
|
||||
.SubNavbarLink:hover {
|
||||
color: var(--Sky);
|
||||
background-color: var(--Surface0);
|
||||
|
||||
border-color: var(--Sky);
|
||||
|
||||
transform: translate(
|
||||
1px,
|
||||
1px
|
||||
);
|
||||
|
||||
box-shadow:
|
||||
2px 2px 0
|
||||
var(--Crust);
|
||||
}
|
||||
|
||||
.SubNavbarLink:focus-visible {
|
||||
outline:
|
||||
3px solid
|
||||
var(--Yellow);
|
||||
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.SubNavbarLink[aria-current] {
|
||||
color: var(--Green);
|
||||
background-color: var(--Surface1);
|
||||
|
||||
border-color: var(--Green);
|
||||
}
|
||||
|
||||
.GardenStatus {
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
@@ -900,9 +967,24 @@ select {
|
||||
height: 3.5rem;
|
||||
}
|
||||
|
||||
.MainContainer {
|
||||
.SubNavbar {
|
||||
grid-column: 1;
|
||||
grid-row: 2;
|
||||
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
|
||||
position: static;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.SubNavbarLink {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.MainContainer {
|
||||
grid-column: 1;
|
||||
grid-row: 3;
|
||||
}
|
||||
|
||||
.GardenLayout {
|
||||
|
||||
Reference in new issue
Block a user