cyp/app/css/menu.less
2020-03-09 14:26:39 +01:00

56 lines
790 B
Text

cyp-menu, cyp-commands {
.flex-row;
height: 100%;
button {
height: 100%;
.flex-column;
align-items: center;
justify-content: center;
@media (max-width: 480px) {
flex-direction: row;
span:not([id]) { display: none; }
}
}
}
cyp-menu button {
flex: 1 0 0;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
.icon {
margin-right: var(--icon-spacing);
}
&.active {
border-top-color: var(--primary);
color: var(--primary);
background-color: rgb(var(--primary-raw), 0.1);
}
}
cyp-commands {
position: absolute;
left: 0;
top: 0;
width: 100%;
transition: top 300ms;
background-color: var(--bg);
&[hidden] {
display: flex;
top: 100%;
}
button {
flex: 0 0 80px;
&.last {
order: 1;
margin-left: auto;
}
}
}