wikijs-fork/client/scss/components/sidebar.scss

116 lines
1.8 KiB
SCSS
Raw Normal View History

2017-04-02 23:56:47 +00:00
.sidebar {
background-color: mc('blue-grey', '900');
color: mc('blue-grey', '50');
width: 250px;
max-width: 250px;
min-height: calc(100vh - 120px);
2017-04-02 23:56:47 +00:00
aside {
2017-04-04 01:39:00 +00:00
padding: 1px 0 15px 0;
2017-04-02 23:56:47 +00:00
&:last-child {
padding-bottom: 20px;
}
.sidebar-label {
2017-04-04 01:39:00 +00:00
padding: 8px;
color: mc('blue-grey', '300');
2017-04-02 23:56:47 +00:00
font-size: 13px;
letter-spacing: 1px;
text-transform: uppercase;
2017-04-04 01:39:00 +00:00
background-color: mc('blue-grey', '800');
margin: 0 0 15px 0;
text-align: center;
box-shadow: 0 0 5px rgba(0,0,0,0.3);
2017-04-02 23:56:47 +00:00
i {
margin-right: 5px;
}
}
.sidebar-menu {
li {
display: block;
a {
display: flex;
min-height: 30px;
align-items: center;
padding: 5px 20px;
color: mc('blue-grey', '50');
font-size: 14px;
transition: all .4s ease;
line-height: 14px;
i {
margin-right: 7px;
color: mc('blue-grey', '300');
}
&:hover {
color: mc('blue-grey', '400');
text-decoration: none;
}
}
> ul {
border-top: 1px solid lighten(mc('blue-grey', '900'), 3%);
border-bottom: 1px solid lighten(mc('blue-grey', '900'), 2%);
background-color: darken(mc('blue-grey', '900'), 2%);
margin-bottom: 10px;
padding: 10px 0;
li {
padding-left: 10px;
//border-left: 5px solid mc('blue-grey', '800');
a {
min-height: 24px;
color: mc('blue-grey', '100');
}
}
}
}
}
}
2017-04-09 15:48:37 +00:00
&.is-collapsed {
width: 50px;
aside {
.sidebar-menu li a {
padding: 10px 0;
justify-content: center;
i {
margin: 0;
font-size: 20px;
transition: color .6s ease;
}
span {
display: none;
}
&:hover {
i {
color: #FFF;
}
}
}
}
}
2017-04-02 23:56:47 +00:00
}