File size: 1,793 Bytes
3a2f8cb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
*{
box-sizing: border-box;
}
html, body {
overflow-x: hidden;
height: 100%;
}
body {
font-family: 'Varela Round', sans-serif;
background: #fff;
padding: 0;
margin: 0;
}
h1{
text-align: center;
padding-top: 30px;
}
.header {
background-color: #eb4d4b;
width: 100%;
height: 60px;
position: fixed;
z-index: 10;
}
.main {
height: 100%;
margin-top: 60px;
padding: 10px 50px;
}
#sidebarMenu {
height: 100%;
position: fixed;
left: 0;
top: 0;
width: 250px;
margin-top: 60px;
transform: translateX(-250px);
transition: transform 250ms ease-in-out;
background: #2e86de;
}
.menu{
list-style: none;
margin:0;
padding:0;
}
.menu li{
border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.menu li a{
color: #fff;
display: block;
padding: 20px;
text-transform: uppercase;
font-weight: bold;
text-decoration: none;
}
#openSidebarMenu:checked ~ #sidebarMenu {
transform: translateX(0);
}
input#openSidebarMenu{
display: none;
}
.sidebarIconToggle {
height: 22px;
width: 22px;
position: absolute;
z-index: 99;
top: 22px;
left: 15px;
transition: all 0.3s;
cursor: pointer;
}
.spinner {
height: 3px;
background-color: #fff;
transition: all 0.3s;
}
.spinner.middle ,
.spinner.bottom{
margin-top: 3px;
}
#openSidebarMenu:checked ~ .sidebarIconToggle > .spinner.middle {
opacity: 0;
}
#openSidebarMenu:checked ~ .sidebarIconToggle > .spinner.top {
transform: rotate(135deg);
margin-top: 8px;
}
#openSidebarMenu:checked ~ .sidebarIconToggle > .spinner.bottom {
transform: rotate(-135deg);
margin-top: -9px;
} |