fix: logo in own grid column, content never overlaps
This commit is contained in:
+23
-7
@@ -42,15 +42,15 @@ body {
|
|||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
.page-logo-wrap {
|
.page-logo-wrap {
|
||||||
position: fixed;
|
grid-area: logo;
|
||||||
left: 1.5rem;
|
padding: 1.2rem 0 0 1.5rem;
|
||||||
|
align-self: start;
|
||||||
|
position: sticky;
|
||||||
top: 4.5rem;
|
top: 4.5rem;
|
||||||
z-index: 90;
|
|
||||||
width: 110px;
|
|
||||||
}
|
}
|
||||||
.page-logo {
|
.page-logo {
|
||||||
width: 100%;
|
height: clamp(2.5rem, 5vw, 3.5rem);
|
||||||
height: auto;
|
width: auto;
|
||||||
opacity: 0.9;
|
opacity: 0.9;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -162,7 +162,7 @@ button {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 1rem 1rem 1rem 8rem;
|
padding: 1rem;
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@@ -772,6 +772,22 @@ button {
|
|||||||
transform: none !important;
|
transform: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Dashboard grid layout */
|
||||||
|
.dashboard-page {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 130px 1fr;
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
header header
|
||||||
|
logo main
|
||||||
|
. footer;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
.dashboard-page .header { grid-area: header; }
|
||||||
|
.dashboard-page .page-logo-wrap { grid-area: logo; }
|
||||||
|
.dashboard-page .admin-layout { grid-area: main; margin: 0; max-width: 100%; }
|
||||||
|
.dashboard-page .made-by-wrap { grid-area: footer; }
|
||||||
|
|
||||||
/* Richer background */
|
/* Richer background */
|
||||||
.dashboard-page {
|
.dashboard-page {
|
||||||
background:
|
background:
|
||||||
|
|||||||
Reference in New Issue
Block a user