cyp/app/css/elements/menu.less

59 lines
872 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-10 17:07:30 +08:00
@media (max-width: @breakpoint-menu) {
2020-03-09 21:26:39 +08:00
flex-direction: row;
span:not([id]) { display: none; }
2019-04-15 14:47:40 +08:00
}
2020-03-11 17:55:18 +08:00
.icon + * { margin-top: 2px; }
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;
2020-03-10 22:25:43 +08:00
border-top: var(--border-width) solid transparent;
border-bottom: var(--border-width) 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);
2020-03-11 17:55:18 +08:00
background-color: var(--primary-tint);
2020-03-09 21:26:39 +08:00
}
}
cyp-commands {
position: absolute;
left: 0;
top: 0;
width: 100%;
transition: top 300ms;
background-color: var(--bg);
&[hidden] {
display: flex;
top: 100%;
}
button {
2020-03-10 21:08:18 +08:00
flex: 0 1 @breakpoint-menu/6;
2020-03-09 21:26:39 +08:00
&.last {
order: 1;
margin-left: auto;
2019-04-15 14:47:40 +08:00
}
2019-03-21 17:32:58 +08:00
}
}