chore: split menus

This commit is contained in:
Kazhnuz 2021-07-30 12:09:47 +02:00
parent 96785d88e3
commit 5e7694a233
4 changed files with 73 additions and 73 deletions

View file

@ -10,5 +10,6 @@
@import 'components/navbars'; @import 'components/navbars';
@import 'components/pagination'; @import 'components/pagination';
@import 'components/cards'; @import 'components/cards';
@import 'components/menus';
@import 'components/tables'; @import 'components/tables';
@import 'components/previews'; @import 'components/previews';

View file

@ -95,13 +95,6 @@ $breadcrumb_margin: $button-large/2.5;
text-decoration:none; text-decoration:none;
} }
.menu-label {
@include shape-style($button_small);
@include button-hover();
padding-left: $button_small;
padding-right: $button_small;
}
// NAVBAR SPECIAL BUTTONS // NAVBAR SPECIAL BUTTONS
.btn-navbar { .btn-navbar {

View file

@ -15,7 +15,7 @@ $card-smallpad: $lineheight_half;
} }
} }
.card, .menu { .card {
@include panel($card-bigpad); @include panel($card-bigpad);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -30,71 +30,6 @@ $card-smallpad: $lineheight_half;
margin-right: 0.5em; margin-right: 0.5em;
} }
} }
/* Menu handling */
&-menu {
display:flex;
flex-direction: column;
ul {
margin:0;
padding:0;
}
li {
list-style: none;
padding:0;
margin:0;
}
.menu-element, .menu-element-link, li a, li a:visited {
display:flex;
line-height:$lineheight;
padding-right:$lineheight_half;
padding-left:$lineheight_quarter;
padding-top:$lineheight_quarter;
padding-bottom:$lineheight_quarter;
margin:0;
justify-content: space-between;
word-wrap:none;
white-space: nowrap;
text-overflow: ellipsis;
overflow:hidden;
@include shape-style($lineheight_half);
@include button-hover();
@include prefer-no-borders();
strong {
font-weight: 900;
color:get-color("dark")!important;
}
&.noflex {
& :first-child {
min-width:2rem;
}
justify-content: flex-start;
}
}
a, a:visited {
@include shape-style($lineheight_half);
@include button-hover();
@include button-fullcontrol(transparent, accentuate($color-background-alt), $color-primary);
}
.menu-divider {
position: relative;
left: -$lineheight_quarter;
font-weight: $fontweight_hyper;
padding-top:$lineheight_quarter;
padding-bottom:$lineheight_quarter;
}
}
} }
/* CARD LIST - Make a list part of a card */ /* CARD LIST - Make a list part of a card */

View file

@ -0,0 +1,71 @@
/* Menu handling */
.card-menu {
display:flex;
flex-direction: column;
ul {
margin:0;
padding:0;
}
li {
list-style: none;
padding:0;
margin:0;
}
.menu-element, .menu-element-link, li a, li a:visited {
display:flex;
line-height:$lineheight;
padding-right:$lineheight_half;
padding-left:$lineheight_quarter;
padding-top:$lineheight_quarter;
padding-bottom:$lineheight_quarter;
margin:0;
justify-content: space-between;
word-wrap:none;
white-space: nowrap;
text-overflow: ellipsis;
overflow:hidden;
@include shape-style($lineheight_half);
@include button-hover();
@include prefer-no-borders();
strong {
font-weight: 900;
color:get-color("dark")!important;
}
&.noflex {
& :first-child {
min-width:2rem;
}
justify-content: flex-start;
}
}
a, a:visited {
@include shape-style($lineheight_half);
@include button-hover();
@include button-fullcontrol(transparent, accentuate($color-background-alt), $color-primary);
}
.menu-divider {
position: relative;
left: -$lineheight_quarter;
font-weight: $fontweight_hyper;
padding-top:$lineheight_quarter;
padding-bottom:$lineheight_quarter;
}
}
.menu-label {
@include shape-style($button_small);
@include button-hover();
padding-left: $button_small;
padding-right: $button_small;
}