cyp/app/css/menu.less

57 lines
790 B
Text
Raw Normal View History

2020-03-09 21:26:39 +08:00
cyp-menu, cyp-commands {
2019-04-03 01:19:46 +08:00
.flex-row;
2020-03-09 21:26:39 +08:00
height: 100%;
2019-03-21 17:32:58 +08:00
2020-03-09 05:11:46 +08:00
button {
height: 100%;
2019-04-15 14:47:40 +08:00
.flex-column;
align-items: center;
2020-03-09 21:26:39 +08:00
justify-content: center;
2019-03-21 17:32:58 +08:00
2020-03-09 21:26:39 +08:00
@media (max-width: 480px) {
flex-direction: row;
span:not([id]) { display: none; }
2019-04-15 14:47:40 +08:00
}
2020-03-09 21:26:39 +08:00
}
}
2019-03-22 22:35:04 +08:00
2020-03-09 21:26:39 +08:00
cyp-menu button {
flex: 1 0 0;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
2019-04-15 14:47:40 +08:00
2020-03-09 21:26:39 +08:00
.icon {
margin-right: var(--icon-spacing);
}
2019-04-16 04:32:40 +08:00
2020-03-09 21:26:39 +08:00
&.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;
2019-04-15 14:47:40 +08:00
}
2019-03-21 17:32:58 +08:00
}
}