mirror of
https://github.com/Karaka-Management/cssOMS.git
synced 2026-01-11 11:18:39 +00:00
114 lines
1.7 KiB
SCSS
114 lines
1.7 KiB
SCSS
@import "color";
|
|
|
|
#nav-side {
|
|
width: 175px;
|
|
position: fixed;
|
|
top: 75px;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 0;
|
|
overflow-y: auto;
|
|
font-size: 0.8em;
|
|
|
|
background: #2F2F2F;
|
|
|
|
input {
|
|
display: none;
|
|
}
|
|
|
|
input + ul {
|
|
.max {
|
|
display: none;
|
|
}
|
|
|
|
.min {
|
|
display: inherit;
|
|
}
|
|
|
|
> li:nth-child(n+2) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
input:checked + ul {
|
|
.max {
|
|
display: inherit;
|
|
}
|
|
|
|
.min {
|
|
display: none;
|
|
}
|
|
|
|
> li:nth-child(n+2) {
|
|
display: inherit;
|
|
}
|
|
}
|
|
|
|
> li {
|
|
li {
|
|
border-top: 1px solid #3f3f3f;
|
|
border-bottom: 1px solid #1a1a1a;
|
|
color: #fff;
|
|
|
|
&:first-child {
|
|
padding: 5px 0 5px 5px;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
padding: 5px 0 5px 5px;
|
|
|
|
&:hover {
|
|
background: #3F3F3F;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
li:last-child li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.max, .min {
|
|
float: right;
|
|
}
|
|
|
|
i {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
main {
|
|
height: 100%;
|
|
width: 100%;
|
|
position: relative;
|
|
top: 0;
|
|
bottom: 100%;
|
|
left: 0;
|
|
z-index: 1;
|
|
|
|
padding-right: 5px;
|
|
|
|
background: $background-color;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-trigger {
|
|
position: absolute;
|
|
clip: rect(0, 0, 0, 0);
|
|
}
|
|
|
|
label[for="nav-trigger"] {
|
|
font-size: 2.0em;
|
|
height: 30px;
|
|
width: 30px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-trigger:checked ~ main {
|
|
width: calc(100% - 175px);
|
|
left: 175px;
|
|
box-shadow: -3px 3px 5px 0 rgba(0, 0, 0, 0.5);
|
|
}
|