Files
nairobi/app/assets/stylesheets/admin/menu.scss
Javi Martín d501915954 Extract admin menu to a component
This way adding new methods will be easier.
2020-11-26 12:15:07 +01:00

96 lines
1.7 KiB
SCSS

.admin-sidebar {
background: $sidebar;
background: linear-gradient(to bottom, #245b80 0%, #488fb5 100%);
border-right: 1px solid $border;
ul {
list-style-type: none;
margin-bottom: 0;
margin-left: 0;
padding: 0;
[class^="icon-"] {
color: #fff;
display: inline-block;
font-size: rem-calc(20);
line-height: $line-height;
text-align: center;
vertical-align: middle;
width: $line-height * 1.5;
}
}
li {
margin: 0;
outline: 0;
ul {
margin-left: $line-height / 1.5;
border-left: 1px solid $sidebar-hover;
padding-left: $line-height / 2;
}
&.is-active a {
background: $sidebar-hover;
border-left: 2px solid $sidebar-active;
font-weight: bold;
}
&[aria-expanded="true"] {
> a::after {
transform: rotate(180deg);
}
}
}
li a {
color: #fff;
display: block;
line-height: $line-height * 2;
padding-left: $line-height / 4;
vertical-align: top;
&:hover {
background: $sidebar-hover;
color: #fff;
text-decoration: none;
}
}
.is-accordion-submenu-parent {
> a::after {
border: 0;
content: "\f078";
font-family: "Font Awesome 5 Free";
font-weight: bold;
height: auto;
position: absolute;
right: 24px;
transition: 0.25s;
}
}
.submenu {
border-bottom: 0;
margin-left: $line-height;
li:first-child {
padding-top: $line-height / 2;
}
li:last-child {
padding-bottom: $line-height / 2;
}
a {
font-weight: normal;
}
.is-active {
border-bottom: 0;
}
}
}