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.

128 lines
2.3 KiB

*, *:before, *:after
{ box-sizing: border-box; }
html { font-size: 18px; }
/*----------------------------------------------*/
label #menu {
position: absolute;
right: -100px;
top: -100px;
width: 200px;
height: 200px;
background: rgb(82, 67, 67);
border-radius: 50% 50% 50% 50%;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
box-shadow: 0 0 0 0 rgb(141, 106, 106);
cursor: pointer;
}
label #hamburger {
position: absolute;
top: 135px;
left: 50px;
width: 30px;
height: 2px;
background: #000000;
display: block;
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
}
label #hamburger:after, label #hamburger:before {
-webkit-transition: .5s ease-in-out;
transition: .5s ease-in-out;
position: absolute;
content: "";
display: block;
width: 100%;
height: 100%;
background: #000000;
}
label #hamburger:before { top: -10px; }
label #hamburger:after { bottom: -10px; }
label input { display: none; }
label input:checked + #menu {
box-shadow: 0 0 0 100vw rgb(69, 56, 56);
border-radius: 0;
}
label input:checked + #menu #hamburger {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
label input:checked + #menu #hamburger:after {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
bottom: 0;
}
label input:checked + #menu #hamburger:before {
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
top: 0;
}
label input:checked + #menu + ul { opacity: 1; }
label ul {
z-index: 200;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
opacity: 0;
-webkit-transition: .25s 0s ease-in-out;
transition: .25s 0s ease-in-out;
}
label a {
margin-bottom: 1em;
display: block;
color: #d1dad5;
text-decoration: none;
font-size: 20px;
}
/*-------------------------------------------*/
#menu
{
height: 50px;
width: 50px;
border-radius: 10px;
border-color: #6b8f7b39;
border-style: solid;
border-width: 5px;
}
/*----------------------------------------------*/
ul li:hover
{background: rgb(142, 186, 197);}
/*----------------------------------------------*/
body
{
font-size: 1.2em;
line-height: 1.6;
overflow-x: hidden;
}