responsive footer

This commit is contained in:
zoe 2022-04-16 15:27:19 +02:00
parent cb4c119646
commit 052ff3b0a8
7 changed files with 90 additions and 10 deletions

View file

@ -280,3 +280,27 @@ button {
&:hover {background-color: transparent;}
background-color: transparent;
}
#hamburger-bg{
background-color: $dark-bg;
& .hamburger-nav-item {
background-color: transparent;
color: $dark-ln;
border-color: $dark-ln;
&:hover {
background-color: $dark-ln;
color: $dark-bg;
}
}
&.light{
background-color: $light-bg;
& .hamburger-nav-item{
color: $light-ln;
border-color: $light-ln;
&:hover {
background-color: $light-ln;
color: $light-bg;
}
}
}
}

View file

@ -136,7 +136,6 @@ header{
#hamburger-bg{
position: fixed;
background-color: red;
width: 100%;
height: calc(100% - 42pt);
left: 0pt;
@ -148,8 +147,15 @@ header{
justify-content: center;
& * {
display: grid;
margin-top: 14pt;
margin-bottom: 14pt;
margin-top: 2%;
margin-bottom: 2%;
text-align: center;
}
&.hidden{
display: none;
}
}
#darkmode-button-small {
margin-right: 8pt;
}

View file

@ -1,4 +1,6 @@
#hamburger-button {
#hamburger-button,
#hamburger-bg,
#darkmode-button-small{
display: none;
}
@ -9,8 +11,18 @@
{
display: none;
}
#hamburger-button {
#hamburger-button,
#darkmode-button-small,
#hamburger-bg,
#hamburger-bg #darkmode-toggle-label,
#hamburger-bg #darkmode-toggle{
display: flex;
}
#hamburger-bg #darkmode-toggle,
#hamburger-bg #darkmode-toggle-label{
position: absolute;
bottom: 1em;
right: 1em;
}
}

View file

@ -101,3 +101,10 @@ ul a{
border-style: solid;
padding: 0.12em;
}
#hamburger-bg {
& .hamburger-nav-item {
border-style: solid;
padding: 0.12em;
}
}