finish up sport awesome

This commit is contained in:
konnorrogers
2023-10-18 16:10:18 -04:00
parent 1df6afa541
commit a1a09a2b2b
4 changed files with 42 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
html {
min-height: 100%;
height: auto;
}
body {
padding: 0;
height: auto;

View File

@@ -1,3 +1,8 @@
html {
min-height: 100%;
height: auto;
}
body {
padding: 0;
height: auto;

View File

@@ -3,14 +3,19 @@ layout: layout-example.njk
---
<style>
*, *:before, *:after {
box-sizing: border-box;
}
html {
min-height: 100%;
height: auto;
}
body {
padding: 0;
height: auto;
--wa-color-brand-fill-vivid: var(--wa-color-blue-20);
margin: 0 auto;
}
img {
@@ -138,10 +143,26 @@ layout: layout-example.njk
text-align: end;
}
.layout-banner {
padding: var(--wa-space-base);
text-align: center;
background-color: var(--wa-color-yellow-80);
}
.layout-header::after {
content: "";
position: absolute;
top: 0px;
left: 0px;
width: 100vw;
height: var(--banner-height);
z-index: -1;
background-color: var(--wa-color-yellow-80);
}
</style>
<wa-layout main-id="main-content" class="wa-theme-light" mobile-breakpoint="925" disable-sticky="banner">
<header style="padding: var(--wa-space-base); background-color: var(--wa-color-yellow-80);" slot="banner">
<header class="layout-banner" slot="banner">
Reminder! Get your insurance paperwork in by Oct 12!
</header>

View File

@@ -18,15 +18,21 @@ export default css`
--sub-header-height: 0px;
}
:host([disable-sticky~="banner"]) {
:host([disable-sticky~="banner"]) :is([part~="header"], [part~="sub-header"]) {
--banner-height: 0px !important;
}
:host([disable-sticky~="header"]) {
:host([disable-sticky~="header"]) [part~="sub-header"] {
--header-height: 0px !important;
}
:host([disable-sticky~="sub-header"]) {
--sub-header-height: 0px !important;
/* Nothing else depends on sub-header-height. */
:host([disable-sticky~="sub-header"]) {}
:host([disable-sticky~="aside"]) [part~="aside"],
:host([disable-sticky~="menu"]) [part~="menu"] {
height: unset;
max-height: unset;
}
:host([disable-sticky~="banner"]) [part~="banner"],