server actix for cannabinieri website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

194 lines
3.1 KiB

.header {
position: relative;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
background-color: transparent;
}
.logo a {
display: block;
position: sticky;
z-index: 2;
}
.logo a img {
display: block;
width: 100%;
height: 15vh;
padding-top: 2vh;
padding-left: 2vw;
}
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding-right: 5vw;
}
.navigation input:checked ~ .menu {
right: 0;
}
.menu {
display: flex;
justify-content: start;
flex-direction: column;
align-items: center;
position: fixed;
top: 0;
right: -90vw;
background: #fff;
opacity: 90%;
width: 70vw;
height: 100%;
padding-top: 11vh;
z-index: 1;
transition: .5s;
margin: 0;
padding-right: 5vw;
}
.menu li {
list-style-type: none;
width: 100%;
}
.menu li a {
color: #000;
text-decoration: none;
display: block;
padding: 1.3vh 0;
line-height: 1;
font-size: 2.35vh;
text-align: right;
box-shadow: 0 .5vw 0 -0.35vw #D8D8D8;
text-transform: uppercase;
transition: .3s;
}
.hamburger {
position: relative;
width: 5vw;
height: .5vh;
background: #000;
cursor: pointer;
z-index: 2;
transition: .3s;
}
.hamburger:before,
.hamburger:after {
content: "";
position: absolute;
height: 4px;
right: 0;
background: #000;
transition: .3s;
}
.hamburger:before {
top: -1vh;
width: 5vw;
}
.hamburger:after {
top: 1vh;
width: 5vw;
}
.toggle_menu {
position: absolute;
width: 3.5vw;
height: 5.5vh;
z-index: 3;
cursor: pointer;
opacity: 0;
top: unset;
left: unset;
}
.navigation input:checked ~ .hamburger {
background: transparent;
}
.navigation input:checked ~ .hamburger::before {
top: 0;
transform: rotate(-45deg);
width: 5vw;
}
.navigation input:checked ~ .hamburger::after {
top: 0;
transform: rotate(45deg);
width: 5vw;
}
@media (min-width: 768px) {
.menu {
width: unset;
}
.menu li a {
font-size: 1.85vh;
}
}
@media (min-width: 1024px) {
.header {
position: relative;
width: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
}
.hamburger,
.toggle_menu {
display: none;
}
.menu {
justify-content: center;
flex-direction: row;
position: sticky;
z-index: 1;
transition: .5s;
padding: 0;
width: unset;
margin-left: 10vw;
}
.menu li {
width: unset;
}
.menu li a {
color: #000;
text-decoration: none;
display: block;
padding: 2vh 1.5vw 1.5vh;
line-height: 1;
transition: .3s;
box-shadow: none;
}
.menu li a:hover {
box-shadow: 0 .5vw 0 -0.35vw #000;
}
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0;
}
}