mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-30 04:48:33 +02:00
47 lines
1.0 KiB
CSS
47 lines
1.0 KiB
CSS
|
.burger {
|
||
|
cursor: pointer;
|
||
|
height: 30px;
|
||
|
margin-left: 20px;
|
||
|
margin-right: -7px;
|
||
|
position: relative;
|
||
|
width: 30px;
|
||
|
}
|
||
|
.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%;
|
||
|
}
|
||
|
.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;
|
||
|
}
|
||
|
.burger-bar:first-child:before {
|
||
|
top: 14px;
|
||
|
transform: translateY(-3px);
|
||
|
}
|
||
|
.burger-bar:last-child:before {
|
||
|
bottom: 14px;
|
||
|
transform: translateY(3px);
|
||
|
}
|
||
|
.burger-close .burger-bar {
|
||
|
transition: transform 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
|
||
|
}
|
||
|
.burger-close .burger-bar:first-child {
|
||
|
transform: rotate(45deg);
|
||
|
}
|
||
|
.burger-close .burger-bar:last-child {
|
||
|
transform: rotate(-45deg);
|
||
|
}
|
||
|
.burger-close .burger-bar:before {
|
||
|
transform: none;
|
||
|
transition: transform 0.1806s cubic-bezier(0.04, 0.04, 0.12, 0.96);
|
||
|
}
|