121 lines
1.8 KiB
CSS
121 lines
1.8 KiB
CSS
:root {
|
|
--sidebar-width: 250px;
|
|
--mobile-sidebar-width: 50px;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
}
|
|
|
|
body, #app {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
background-color: #222;
|
|
background-size: 100% 100%;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-image: url('../images/background_mountains.jpg');
|
|
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
margin: 10px 10px;
|
|
border: 0;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.huge {
|
|
font-size: 40px;
|
|
}
|
|
|
|
#sidebar {
|
|
float: left;
|
|
width: var(--sidebar-width);
|
|
height: 100%;
|
|
border-right: 1px solid #111;
|
|
}
|
|
|
|
#sidebar ul {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#sidebar ul li {
|
|
text-decoration: none;
|
|
width: 100%;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
#sidebar ul li i {
|
|
padding-right: 10px;
|
|
}
|
|
|
|
#sidebar ul a {
|
|
padding: 10px 16px;
|
|
text-decoration: none;
|
|
width: 100%;
|
|
display: block;
|
|
color: #ddd;
|
|
font-size: 18px;
|
|
transition: padding 0.2s;
|
|
}
|
|
|
|
#sidebar ul li a:hover {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
cursor: pointer;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
.router-link-exact-active {
|
|
color: #2e6da4 !important;
|
|
}
|
|
|
|
|
|
|
|
|
|
#sidebar #logo {
|
|
width: 100%;
|
|
padding: 5px 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#sidebar p {
|
|
color: #bbb;
|
|
padding: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
#content {
|
|
padding: 16px;
|
|
float: left;
|
|
width: calc(100% - var(--sidebar-width));
|
|
min-height: 100%;
|
|
background-color: white;
|
|
}
|
|
|
|
.component-content {
|
|
padding: 4px 20px;
|
|
}
|
|
|
|
@media(max-width:768px) {
|
|
#sidebar {
|
|
width: var(--mobile-sidebar-width);
|
|
}
|
|
|
|
#content {
|
|
padding: 16px;
|
|
float: left;
|
|
width: calc(100% - var(--mobile-sidebar-width));
|
|
}
|
|
|
|
#sidebar #logo {
|
|
display: none;
|
|
}
|
|
|
|
#sidebar .hideable {
|
|
display: none;
|
|
}
|
|
}
|