79 lines
1.2 KiB
CSS
79 lines
1.2 KiB
CSS
.menu {
|
|
background-color: var(--color-dark-blue);
|
|
border-radius: 50%;
|
|
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25);
|
|
cursor: pointer;
|
|
display: block;
|
|
height: 48px;
|
|
left: 2px;
|
|
position: fixed;
|
|
top: 2px;
|
|
transform: translateX(-100px);
|
|
transition:
|
|
filter var(--transition-md) ease-out,
|
|
opacity var(--transition-md) ease-out,
|
|
transform var(--transition-md) ease-out;
|
|
width: 48px;
|
|
will-change: opacity, transition;
|
|
z-index: 5;
|
|
}
|
|
|
|
.logged-in .menu {
|
|
top: 48px;
|
|
}
|
|
|
|
@media (--viewport-wordpress-admin-bar) {
|
|
.logged-in .menu {
|
|
top: 34px;
|
|
}
|
|
}
|
|
|
|
.menu__line {
|
|
background-color: #fff;
|
|
border-radius: 2px;
|
|
height: 2px;
|
|
left: 12px;
|
|
position: absolute;
|
|
right: 12px;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.menu__line:nth-of-type(1) {
|
|
top: 33.34%;
|
|
}
|
|
|
|
.menu__line:nth-of-type(2) {
|
|
top: 50%;
|
|
}
|
|
|
|
.menu__line:nth-of-type(3) {
|
|
top: 66.67%;
|
|
}
|
|
|
|
.menu__text {
|
|
left: -10000px;
|
|
position: absolute;
|
|
top: -10000px;
|
|
}
|
|
|
|
.menu.is-visible {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.menu.is-minimized {
|
|
opacity: 0.5;
|
|
transform: translateX(-12px) translateY(-12px);
|
|
}
|
|
|
|
/**
|
|
* Hover and focus states
|
|
*/
|
|
|
|
.menu:focus,
|
|
.menu:hover {
|
|
outline: none;
|
|
opacity: 1;
|
|
filter: saturate(1.5) contrast(1.5);
|
|
transform: scale(1.1);
|
|
}
|