ampache_react/app/styles/layouts/Sidebar.scss

164 lines
2.6 KiB
SCSS
Raw Normal View History

$background: #333;
$hoverBackground: #222;
$activeBackground: $hoverBackground;
$foreground: white;
$lightgrey: #eee;
2016-07-31 12:18:46 +02:00
$titleFontSize: $font-size-h1 - 10px;
$titleMarginBottom: 20px;
$mainPadding: 20px;
$condensedNavPadding: 5px;
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 1000;
display: block;
padding: $mainPadding;
overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
background-color: $background;
color: white;
}
.collapse {
display: block;
}
/* Sidebar elements */
.link {
color: $foreground;
text-decoration: none;
}
2016-07-30 00:44:32 +02:00
.link:hover {
color: $foreground;
background-color: $hoverBackground !important;
text-decoration: none;
2016-07-30 00:44:32 +02:00
}
.link:focus {
color: $foreground;
2016-07-30 00:44:32 +02:00
background-color: transparent !important;
text-decoration: none;
}
.active {
composes: link;
2016-07-30 00:44:32 +02:00
background-color: $activeBackground !important;
}
2016-07-30 00:44:32 +02:00
.active:focus {
background-color: $activeBackground !important;
}
.title {
margin: 0;
2016-07-31 12:18:46 +02:00
margin-bottom: $titleMarginBottom;
font-size: $titleFontSize;
}
.imgTitle {
2016-07-31 12:18:46 +02:00
height: $font-size-h1;
}
/* Sidebar navigation */
button.toggle {
background-color: $foreground;
}
.icon-bar {
background-color: $background;
}
.icon-navbar {
background-color: #555;
2016-07-30 16:01:42 +02:00
font-size: 1.2em;
border: none;
2016-07-30 16:01:42 +02:00
.container-fluid {
padding-left: 0;
padding-right: 0;
}
.nav {
display: inline-block;
float: none;
vertical-align: top;
text-align: center;
2016-07-30 16:01:42 +02:00
li {
float: left;
}
}
}
/*
* Main content
*/
.main-panel {
2016-07-31 12:18:46 +02:00
padding: $mainPadding;
z-index: -10;
}
/*
* Media queries
*/
2016-07-30 16:01:42 +02:00
@media (min-width: 992px) and (max-width: 1199px) {
.icon-navbar {
.nav {
li {
float: none;
}
}
}
2016-07-30 16:01:42 +02:00
.nav-list {
text-align: right;
}
2016-07-30 16:01:42 +02:00
.nav {
li {
a {
2016-07-31 12:18:46 +02:00
padding-left: $condensedNavPadding;
padding-right: $condensedNavPadding;
2016-07-30 16:01:42 +02:00
}
}
}
}
2016-07-30 16:01:42 +02:00
@media (max-width: 991px) {
.sidebar {
position: static;
}
.title {
float: left;
margin-bottom: 0;
}
button.toggle {
display: block;
margin-top: 0;
margin-bottom: 0;
}
.collapse {
clear: both;
}
}
:global {
@media (max-width: 991px) {
.collapse {
display: none;
padding-top: $titleMarginBottom;
}
.collapsing {
padding-top: $titleMarginBottom;
}
}
2016-07-30 16:01:42 +02:00
}