mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-06-26 17:00:46 +00:00
js automation and mobile menu
This commit is contained in:
@ -34,13 +34,14 @@
|
||||
}
|
||||
|
||||
&__subtitle {
|
||||
font-family: "CocogooseNormal";
|
||||
// font-family: "CocogooseNormal";
|
||||
font-weight: 400;
|
||||
color: white;
|
||||
font-size: 1.5rem;
|
||||
margin: 0;
|
||||
|
||||
@include atSmall(){
|
||||
font-size: 2.9rem;
|
||||
font-size: 2.4rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,11 @@
|
||||
width: 100%;
|
||||
z-index: 2;
|
||||
transition: background-color .3s ease-out;
|
||||
|
||||
&--is-expanded {
|
||||
background-color: orange;
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
|
||||
@include atMedium(){
|
||||
position: fixed;
|
||||
@ -16,6 +21,73 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__menu-icon{
|
||||
width: 20px;
|
||||
height: 19px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 20px;
|
||||
height: 3px;
|
||||
background: #FFF;
|
||||
transform-origin: 0 0;
|
||||
transition: transform .3s ease-out;
|
||||
}
|
||||
|
||||
&__middle {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 0;
|
||||
width: 20px;
|
||||
height: 3px;
|
||||
background: #FFF;
|
||||
transition: all .3s ease-out;
|
||||
transform-origin: 0 50%;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 20px;
|
||||
height: 3px;
|
||||
background: #FFF;
|
||||
transform-origin: 0 100%;
|
||||
transition: transform .3s ease-out;
|
||||
}
|
||||
|
||||
@include atMedium {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&__menu-icon--close-x {
|
||||
&::before {
|
||||
transform: rotate(45deg) scaleX(1.25);
|
||||
}
|
||||
|
||||
.site-header__menu-icon__middle{
|
||||
transform: scaleX(0);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&::after {
|
||||
transform: rotate(-45deg) scaleX(1.25) translateY(1px);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
&__menu-content{
|
||||
opacity: 0;
|
||||
transform: scale(1.2);
|
||||
@ -25,6 +97,12 @@
|
||||
padding-top: 90px;
|
||||
text-align: center;
|
||||
|
||||
&--is-visible{
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@include atMedium(){
|
||||
opacity: 1;
|
||||
z-index: 1;
|
||||
@ -35,17 +113,26 @@
|
||||
|
||||
&__logo{
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
top: 0px;
|
||||
padding: 5px 15px;
|
||||
left: 50%;
|
||||
transform-origin: 50% 0%;
|
||||
transform: translateX(-50%) scale(.8);
|
||||
transition: transform .3s ease-out;
|
||||
background-color: rgba(black, 0.5);
|
||||
|
||||
&--orange-bg {
|
||||
background-color: orange;
|
||||
}
|
||||
|
||||
@include atMedium(){
|
||||
padding: 0;
|
||||
top: 3px;
|
||||
position: relative;
|
||||
float: left;
|
||||
left: auto;
|
||||
transform: translateX(0);
|
||||
background-color: rgba(black, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user