mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Rename theme path
This commit is contained in:
48
themes/hugo-theme-gruvbox/assets/css/critical/25-layout.css
Normal file
48
themes/hugo-theme-gruvbox/assets/css/critical/25-layout.css
Normal file
@@ -0,0 +1,48 @@
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-areas:
|
||||
"header"
|
||||
"main"
|
||||
"footer";
|
||||
grid-template-rows: auto 1fr auto;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
main {
|
||||
align-items: start;
|
||||
display: grid;
|
||||
grid-area: main;
|
||||
grid-template-areas: "empty content sidebar";
|
||||
grid-template-columns: 2fr minmax(0, 860px) 2fr;
|
||||
}
|
||||
|
||||
header {
|
||||
background: var(--bg1);
|
||||
grid-area: header;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-area: footer;
|
||||
}
|
||||
|
||||
main,
|
||||
footer {
|
||||
margin: 0.5em 1.1em;
|
||||
}
|
||||
|
||||
.content {
|
||||
grid-area: content;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
grid-area: sidebar;
|
||||
margin-top: 3rem;
|
||||
position: sticky;
|
||||
top: 2rem;
|
||||
|
||||
@media (--lg) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user