2016-08-10 21:36:11 +02:00
|
|
|
/**
|
|
|
|
* Styles for Sidebar layout component.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Variables */
|
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;
|
2016-08-01 12:01:11 +02:00
|
|
|
padding: $mainPadding;
|
2016-07-29 23:57:21 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
|
|
|
|
background-color: $background;
|
|
|
|
color: white;
|
2016-08-01 12:01:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.collapse {
|
|
|
|
display: block;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar elements */
|
|
|
|
.link {
|
|
|
|
color: $foreground;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2016-09-18 22:50:59 +02:00
|
|
|
.link:focus {
|
2016-07-30 00:44:32 +02:00
|
|
|
color: $foreground;
|
2016-09-18 22:50:59 +02:00
|
|
|
background-color: transparent !important;
|
2016-08-03 15:44:29 +02:00
|
|
|
text-decoration: none;
|
2016-07-30 00:44:32 +02:00
|
|
|
}
|
|
|
|
|
2016-09-18 22:50:59 +02:00
|
|
|
/** Note: Keep hover after focus pseudo-class so that hover overloads focus. */
|
|
|
|
.link:hover {
|
2016-07-29 23:57:21 +02:00
|
|
|
color: $foreground;
|
2016-09-18 22:50:59 +02:00
|
|
|
background-color: $hoverBackground !important;
|
2016-08-03 15:44:29 +02:00
|
|
|
text-decoration: none;
|
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 */
|
2016-08-01 12:01:11 +02:00
|
|
|
button.toggle {
|
|
|
|
background-color: $foreground;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-bar {
|
|
|
|
background-color: $background;
|
|
|
|
}
|
|
|
|
|
2016-07-29 23:57:21 +02:00
|
|
|
.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) {
|
2016-08-11 01:05:33 +02:00
|
|
|
.main-panel {
|
|
|
|
z-index: -10;
|
|
|
|
}
|
|
|
|
|
2016-07-30 16:01:42 +02:00
|
|
|
.sidebar {
|
|
|
|
position: static;
|
2016-07-29 23:57:21 +02:00
|
|
|
}
|
2016-08-01 12:01:11 +02:00
|
|
|
|
|
|
|
.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
|
|
|
}
|