fixed mobile counter docking; docked header;

This commit is contained in:
Spencer Flagg 2024-01-27 16:38:15 +01:00
parent 6877c5ba97
commit 9144206832
3 changed files with 17 additions and 4 deletions

View file

@ -37,6 +37,7 @@
aspect-ratio: 1; aspect-ratio: 1;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: none;
} }
.theme-toggle:hover, .theme-toggle:active, .theme-toggle:focus { .theme-toggle:hover, .theme-toggle:active, .theme-toggle:focus {
background: none; background: none;

View file

@ -68,6 +68,8 @@
<style lang="scss"> <style lang="scss">
.today__list { .today__list {
margin-bottom: 25vh;;
ul { ul {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -21,18 +21,22 @@
} }
/* d00000 ff7d00 */ /* d00000 ff7d00 */
body {
background-color: var(--c-bkg);
}
html[data-theme='light'] body { html[data-theme='light'] body {
background-color: #f2f0ef;
--c-border: #e9e9e9; --c-border: #e9e9e9;
--c-toggle: #00464b; --c-toggle: #00464b;
--c-zebra: #ececec; --c-zebra: #ececec;
--c-bkg: #f2f0ef;
} }
html[data-theme='dark'] body { html[data-theme='dark'] body {
background-color: #181818;
--c-border: #2b2b2b; --c-border: #2b2b2b;
--c-toggle: #ffe600; --c-toggle: #ffe600;
--c-zebra: #ececec11; --c-zebra: #ececec11;
--c-bkg: #181818;
} }
@ -80,7 +84,13 @@ nav ul li {
} }
header { header {
padding-top: 2rem;
position: sticky;
top: 0;
background: var(--c-bkg);
z-index: 1;
margin: 0 -2rem;
padding: 2rem 2rem 0 2rem;
} }
/* aside { /* aside {
@ -145,7 +155,7 @@ section {
} }
} }
@media screen and (max-width: 400px) { @media screen and (max-width: 500px) {
.counters { .counters {
margin-right: -2rem; margin-right: -2rem;
border-radius: 2rem 0 0 2rem; border-radius: 2rem 0 0 2rem;