2016-02-12 23:52:43 +08:00
|
|
|
/*!
|
|
|
|
* Start Bootstrap - Simple Sidebar HTML Template (http://startbootstrap.com)
|
|
|
|
* Code licensed under the Apache License v2.0.
|
|
|
|
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
*/
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
// scss-lint:disable SelectorDepth
|
|
|
|
// scss-lint:disable NestingDepth
|
|
|
|
|
2020-01-24 20:22:04 +08:00
|
|
|
@import "constants";
|
2016-02-12 23:52:43 +08:00
|
|
|
@import "mixins";
|
|
|
|
|
2020-01-24 20:22:04 +08:00
|
|
|
:root {
|
|
|
|
--wrapper-width: 280px;
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
|
|
|
|
#wrapper {
|
2016-02-12 23:52:43 +08:00
|
|
|
display: none;
|
2020-01-24 20:22:04 +08:00
|
|
|
padding-left: var(--wrapper-width);
|
2016-02-12 23:52:43 +08:00
|
|
|
padding-right: 0;
|
2020-01-24 20:22:04 +08:00
|
|
|
transition: .4s $timing-function-sharp;
|
2020-12-08 23:07:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-container {
|
|
|
|
background-color: $color-concrete;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: calc(100vh - var(--navbar-height));
|
|
|
|
left: var(--menu-bar-width);
|
|
|
|
position: fixed;
|
|
|
|
transition: .4s $timing-function-sharp;
|
|
|
|
width: var(--wrapper-width);
|
|
|
|
z-index: 999;
|
|
|
|
|
|
|
|
.show-sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-header {
|
|
|
|
align-items: center;
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
height: 2.5em;
|
|
|
|
padding: 0 1em;
|
|
|
|
|
|
|
|
.sidebar-title {
|
|
|
|
@include font-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.close-sidebar {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 2em;
|
|
|
|
margin-left: auto;
|
|
|
|
text-align: center;
|
|
|
|
width: 2em;
|
2018-06-01 19:18:49 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-body {
|
|
|
|
background: linear-gradient($color-concrete 30%, hsla(0, 0%, 100%, 0)),
|
|
|
|
linear-gradient(rgba(0, 0, 0, .1), transparent 70%);
|
|
|
|
background-attachment: local, scroll;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 100% 1em, 100% .5em;
|
|
|
|
flex-basis: calc(100% - 2.5em);
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: auto;
|
|
|
|
position: relative;
|
2018-06-01 19:18:49 +08:00
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-footer {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
2018-06-01 19:18:49 +08:00
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
&.collapsed {
|
|
|
|
left: calc(var(--menu-bar-width) - var(--wrapper-width));
|
|
|
|
|
|
|
|
.show-sidebar {
|
|
|
|
background: $color-concrete;
|
|
|
|
border-radius: 0 $border-radius-default $border-radius-default 0;
|
|
|
|
cursor: pointer;
|
|
|
|
display: block;
|
|
|
|
line-height: 3em;
|
|
|
|
margin-right: -2em;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
text-align: center;
|
|
|
|
top: .5em;
|
|
|
|
width: 2em;
|
|
|
|
}
|
2018-06-01 19:18:49 +08:00
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-branch {
|
|
|
|
flex-basis: 100%;
|
|
|
|
flex-grow: 1;
|
|
|
|
list-style-type: none;
|
|
|
|
padding-left: 2.5em;
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2021-01-05 16:11:05 +08:00
|
|
|
.delimiter {
|
|
|
|
background: $color-alto;
|
|
|
|
height: 1px;
|
|
|
|
margin: .5em 2.5em .5em 0;
|
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-leaf {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
2021-06-18 22:52:19 +08:00
|
|
|
.fa-map-marker-alt {
|
|
|
|
color: $color-alto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .fa-map-marker-alt,
|
|
|
|
.fa-map-marker-alt.module-hover {
|
|
|
|
color: $color-concrete;
|
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.toggle-branch {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 4em;
|
|
|
|
margin-left: -2em;
|
|
|
|
margin-right: .5em;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
width: 1.5em;
|
|
|
|
|
|
|
|
&:hover ~ .sidebar-link:not(.selected) {
|
|
|
|
background: $color-alto;
|
2021-06-18 22:52:19 +08:00
|
|
|
|
2018-11-29 18:28:36 +08:00
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
&.collapsed ~ .sidebar-branch {
|
|
|
|
display: none;
|
2016-02-12 23:52:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.sidebar-link {
|
|
|
|
color: $color-black;
|
|
|
|
display: inline-block;
|
|
|
|
flex-grow: 1;
|
|
|
|
line-height: 2em;
|
|
|
|
margin-left: -2.5em;
|
|
|
|
max-width: var(--wrapper-width);
|
|
|
|
overflow: hidden;
|
2020-12-10 22:15:36 +08:00
|
|
|
padding: 1em 2.5em;
|
2020-12-08 23:07:26 +08:00
|
|
|
text-decoration: none;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
2020-12-10 22:15:36 +08:00
|
|
|
&:hover,
|
|
|
|
&.module-hover {
|
2020-12-08 23:07:26 +08:00
|
|
|
background: $color-alto;
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
&.selected {
|
|
|
|
background: $color-white;
|
|
|
|
color: $brand-primary;
|
2021-06-18 22:52:19 +08:00
|
|
|
font-weight: bold;
|
2020-12-08 23:07:26 +08:00
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2020-12-08 23:07:26 +08:00
|
|
|
.fa-folder {
|
|
|
|
color: $brand-primary-light;
|
|
|
|
margin-right: .5em;
|
2016-02-12 23:52:43 +08:00
|
|
|
}
|
2020-12-10 22:15:36 +08:00
|
|
|
|
|
|
|
&.back-button::before {
|
|
|
|
@include font-awesome;
|
|
|
|
content: "\f060";
|
|
|
|
left: 1em;
|
|
|
|
line-height: 26px;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.canvas-center-on {
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 4em;
|
|
|
|
margin-left: -2.5em;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
|
|
|
width: 2.5em;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $brand-primary;
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
}
|
2021-01-06 17:13:10 +08:00
|
|
|
|
|
|
|
.repository-link {
|
|
|
|
padding-right: 3em;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.repository-share-status {
|
|
|
|
display: contents !important;
|
|
|
|
position: absolute;
|
|
|
|
right: -3em;
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fas-custom {
|
|
|
|
height: 4em;
|
|
|
|
padding: 1.25em .75em;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
width: 3em;
|
|
|
|
}
|
|
|
|
}
|
2016-02-12 23:52:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-08-08 14:37:22 +08:00
|
|
|
.my-module-group-element::before {
|
2016-08-08 14:40:24 +08:00
|
|
|
border-left: 1px dotted $color-emperor;
|
2016-08-08 14:37:22 +08:00
|
|
|
bottom: 20px;
|
|
|
|
content: "";
|
2020-01-24 20:22:04 +08:00
|
|
|
left: 34px;
|
2016-08-08 14:33:18 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 25px;
|
2016-08-03 22:16:09 +08:00
|
|
|
}
|
|
|
|
|
2016-02-12 23:52:43 +08:00
|
|
|
.sidebar-no-module-group {
|
|
|
|
color: $color-silver-chalice;
|
|
|
|
}
|