ampache_react/app/styles/layouts/Sidebar.scss
Phyks (Lucas Verney) 2d9747482b Move to CSS modules
Also includes misc fixes

* Use CSS modules for all the CSS.
* Fix a bug in the filterbar which was not filtering anything.
* Fix a l10n issue in songs view.
* Update hook to clean build repo before running, preventing to push
dev built code.
* Update webpack build code.
2016-07-30 00:19:05 +02:00

101 lines
1.7 KiB
SCSS

$background: #333;
$hoverBackground: #222;
$activeBackground: $hoverBackground;
$foreground: white;
$lightgrey: #eee;
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 1000;
display: block;
padding: 20px;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
background-color: $background;
color: white;
border-right: 1px solid $lightgrey;
}
/* Sidebar elements */
.link {
color: $foreground;
text-decoration: none;
}
.link:hover,
.link:focus {
color: $foreground;
background-color: $hoverBackground !important; /* TODO: important */
}
.active {
composes: link;
background-color: $activeBackground;
}
.title {
margin: 0;
margin-bottom: 20px;
}
.imgTitle {
height: 46px;
}
/* Sidebar navigation */
.icon-navbar {
background-color: #555;
font-size: 1.25em;
border: none;
.nav {
display: inline-block;
float: none;
vertical-align: top;
text-align: center;
}
}
/*
* Main content
*/
.main-panel {
padding: 20px;
}
/*
* Media queries
* TODO: Sidebar responsiveness
*/
/*@media (max-width: 991px) {
.sidebar,
.sidebar .navbar .container-fluid {
padding-left: 5px;
padding-right: 5px;
}
.sidebar .nav-list {
text-align: right;
}
.sidebar .nav-sidebar > li > a {
padding-left: 20px;
padding-right: 20px;
}
.sidebar .nav-list > li > a {
padding-left: 20px;
padding-right: 20px;
}
}
@media (min-width: 768px) {
.main-panel {
padding-right: 40px;
padding-left: 40px;
}
}*/