Ghost_Ruby_Theme/assets/css/site/burger.css

55 lines
1.0 KiB
CSS
Raw Normal View History

.burger {
cursor: pointer;
height: 30px;
margin-left: 20px;
margin-right: -7px;
position: relative;
width: 30px;
}
2020-09-24 05:18:34 +03:00
.burger-bar {
height: 100%;
left: 0;
position: absolute;
top: 0;
transition: transform 0.1806s cubic-bezier(0.04, 0.04, 0.12, 0.96);
width: 100%;
}
2020-09-24 05:18:34 +03:00
.burger-bar::before {
background-color: var(--dark-gray-color);
content: "";
height: 2px;
left: 7px;
position: absolute;
transition: transform 0.1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) 0.1008s;
width: 16px;
}
2020-09-24 05:18:34 +03:00
.burger-bar:first-child::before {
top: 14px;
transform: translateY(-3px);
}
2020-09-24 05:18:34 +03:00
.burger-bar:last-child::before {
bottom: 14px;
transform: translateY(3px);
}
2020-09-24 05:18:34 +03:00
.burger-close .burger-bar {
transition: transform 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
2020-09-24 05:18:34 +03:00
.burger-close .burger-bar:first-child {
transform: rotate(45deg);
}
2020-09-24 05:18:34 +03:00
.burger-close .burger-bar:last-child {
transform: rotate(-45deg);
}
2020-09-24 05:18:34 +03:00
.burger-close .burger-bar::before {
transform: none;
transition: transform 0.1806s cubic-bezier(0.04, 0.04, 0.12, 0.96);
}