196 lines
4 KiB
CSS
196 lines
4 KiB
CSS
/**
|
|
* @license GNU AGPL version 3 or any later version
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#side-menu {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100vh;
|
|
width: 100%;
|
|
max-width: 250px;
|
|
background: linear-gradient(90deg, var(--side-menu-background-color, #333) 0%, var(--side-menu-background-color-to, #333) 100%);
|
|
z-index: 3000;
|
|
color: var(--side-menu-text-color, #fff);
|
|
box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
|
|
display: none;
|
|
}
|
|
|
|
#side-menu.open {
|
|
display: block;
|
|
}
|
|
|
|
#header .side-menu-opener {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.side-menu-opener {
|
|
background: var(--side-menu-opener, url('../img/side-menu-opener.svg'));
|
|
height: 40px;
|
|
width: 40px;
|
|
border-radius: 0;
|
|
border: 0;
|
|
}
|
|
|
|
#side-menu.hide-opener .side-menu-opener, .side-menu-opener.hide {
|
|
display: none;
|
|
}
|
|
|
|
.side-menu-apps-list {
|
|
height: calc(100vh - 150px);
|
|
z-index: 2200;
|
|
position: fixed;
|
|
top: 150px;
|
|
width: 100%;
|
|
max-width: 250px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.side-menu-app-icon {
|
|
width: 20px;
|
|
vertical-align: top;
|
|
margin-right: 10px;
|
|
filter: invert(var(--side-menu-icon-invert-filter, 0%));
|
|
opacity: var(--side-menu-icon-opacity, 1);
|
|
}
|
|
|
|
.side-menu-app-icon svg {
|
|
vertical-align: middle;
|
|
margin-top: -3px;
|
|
}
|
|
|
|
.side-menu-app a {
|
|
line-height: 30px;
|
|
color: var(--side-menu-text-color, #fff);
|
|
display: block;
|
|
padding: 7px 0 5px 15px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.side-menu-app a:hover, .side-menu-app.active, .side-menu-app a:focus {
|
|
background: var(--side-menu-current-app-background-color, #444);
|
|
}
|
|
|
|
.side-menu-logo {
|
|
text-align: center;
|
|
}
|
|
|
|
.side-menu-logo img {
|
|
max-width: 60%;
|
|
max-height: 100px;
|
|
}
|
|
|
|
.side-menu-header {
|
|
height: 150px;
|
|
width: 100%;
|
|
z-index: 2300;
|
|
max-width: 250px;
|
|
position: fixed;
|
|
padding-top: 2px;
|
|
padding-left: 5px;
|
|
top: 0;
|
|
}
|
|
|
|
#side-menu.hide-opener .side-menu-logo {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
#side-menu-loader {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 3001;
|
|
}
|
|
|
|
#side-menu-loader-bar {
|
|
height: 4px;
|
|
background: var(--side-menu-loader-color, #0e75ac);
|
|
width: 0;
|
|
transition-property: width;
|
|
}
|
|
|
|
#side-menu.side-menu-big {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.side-menu-big .side-menu-header {
|
|
height: auto;
|
|
}
|
|
|
|
.side-menu-big .side-menu-apps-list {
|
|
height: auto;
|
|
position: static;
|
|
max-width: 100vw;
|
|
overflow: auto;
|
|
}
|
|
|
|
.side-menu-big .side-menu-app a {
|
|
padding: 7px 0 7px 7px;
|
|
}
|
|
|
|
.side-menu-categories-wrapper {
|
|
padding-bottom: 70px;
|
|
}
|
|
|
|
.side-menu-categories {
|
|
max-height: calc(100vh - 50px);
|
|
overflow: auto;
|
|
position: relative;
|
|
top: 50px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
padding: 0 10% 0 10%;
|
|
}
|
|
|
|
.side-menu-category {
|
|
padding: 10px 20px;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.side-menu-category-title {
|
|
padding-left: 10px;
|
|
color: var(--side-menu-text-color, #fff);
|
|
}
|
|
|
|
.side-menu-big .side-menu-app-icon {
|
|
vertical-align: middle;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
@media screen and (max-width: 1024px) {
|
|
#side-menu.side-menu-big {
|
|
max-width: 290px;
|
|
}
|
|
|
|
.side-menu-categories {
|
|
display: block;
|
|
padding: 0;
|
|
}
|
|
|
|
.side-menu-category {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
#side-menu.side-menu-big {
|
|
height: 100vh;
|
|
}
|
|
}
|