2016-07-29 23:57:21 +02:00
|
|
|
$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;
|
2016-07-29 23:57:21 +02:00
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2016-07-30 00:44:32 +02:00
|
|
|
.link:hover {
|
|
|
|
color: $foreground;
|
|
|
|
background-color: $hoverBackground !important;
|
|
|
|
}
|
|
|
|
|
2016-07-29 23:57:21 +02:00
|
|
|
.link:focus {
|
|
|
|
color: $foreground;
|
2016-07-30 00:44:32 +02:00
|
|
|
background-color: transparent !important;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.active {
|
|
|
|
composes: link;
|
2016-07-30 00:44:32 +02:00
|
|
|
background-color: $activeBackground !important;
|
|
|
|
}
|
2016-07-30 19:50:04 +02:00
|
|
|
|
2016-07-30 00:44:32 +02:00
|
|
|
.active:focus {
|
|
|
|
background-color: $activeBackground !important;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin: 0;
|
2016-07-31 12:18:46 +02:00
|
|
|
margin-bottom: $titleMarginBottom;
|
|
|
|
font-size: $titleFontSize;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.imgTitle {
|
2016-07-31 12:18:46 +02:00
|
|
|
height: $font-size-h1;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar navigation */
|
|
|
|
.icon-navbar {
|
|
|
|
background-color: #555;
|
2016-07-30 16:01:42 +02:00
|
|
|
font-size: 1.2em;
|
2016-07-29 23:57:21 +02:00
|
|
|
border: none;
|
|
|
|
|
2016-07-30 16:01:42 +02:00
|
|
|
.container-fluid {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
2016-07-29 23:57:21 +02:00
|
|
|
.nav {
|
|
|
|
display: inline-block;
|
|
|
|
float: none;
|
|
|
|
vertical-align: top;
|
|
|
|
text-align: center;
|
2016-07-30 16:01:42 +02:00
|
|
|
|
|
|
|
li {
|
|
|
|
float: left;
|
|
|
|
}
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Main content
|
|
|
|
*/
|
|
|
|
.main-panel {
|
2016-07-31 12:18:46 +02:00
|
|
|
padding: $mainPadding;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
2016-07-30 16:01:42 +02:00
|
|
|
.nav-list {
|
2016-07-29 23:57:21 +02:00
|
|
|
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-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-07-30 16:01:42 +02:00
|
|
|
@media (max-width: 991px) {
|
|
|
|
.sidebar {
|
|
|
|
position: static;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
2016-07-30 16:01:42 +02:00
|
|
|
}
|