side_menu/css/sideMenu.css

300 lines
6.2 KiB
CSS
Raw Normal View History

2020-03-29 13:47:07 +02:00
/**
* @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/>.
*/
2020-03-28 17:40:53 +01:00
#side-menu {
2020-03-28 18:58:30 +01:00
position: fixed;
2020-03-28 17:40:53 +01:00
top: 0;
left: 0;
height: 100vh;
width: 100%;
max-width: 250px;
2020-04-25 13:25:41 +02:00
background: linear-gradient(90deg, var(--side-menu-background-color, #333) 0%, var(--side-menu-background-color-to, #333) 100%);
2020-03-28 17:40:53 +01:00
z-index: 3000;
2020-04-08 17:13:49 +02:00
color: var(--side-menu-text-color, #fff);
2020-03-28 17:40:53 +01:00
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;
}
2020-04-11 11:17:29 +02:00
#side-menu.open {
2020-03-28 17:40:53 +01:00
display: block;
}
2020-04-26 23:30:43 +02:00
#header .side-menu-opener {
margin-left: 5px;
}
2020-10-15 15:46:59 +02:00
.side-menu-settings {
margin-right: 9px;
margin-top: 2px;
float: right;
line-height: 34px;
height: 28px;
display: none;
}
.side-menu-settings a {
color: var(--side-menu-text-color, #fff);
display: block;
padding: 4px 7px;
}
.side-menu-settings:hover a, .side-menu-settings a:active, .side-menu-settings a:focus {
background: var(--side-menu-current-app-background-color, #444);
}
.side-menu-settings img {
vertical-align: bottom;
margin-left: 3px;
}
#side-menu.open .side-menu-settings {
display: block;
}
2020-03-28 17:40:53 +01:00
.side-menu-opener {
2020-04-09 09:55:45 +02:00
background: var(--side-menu-opener, url('../img/side-menu-opener.svg'));
2020-03-28 17:40:53 +01:00
height: 40px;
width: 40px;
border-radius: 0;
border: 0;
}
.side-menu-closer {
background: url('../img/side-menu-opener-closer.svg');
display: none;
}
#side-menu.hide-opener .side-menu-opener, .side-menu-opener.hide, #side-menu.hide {
display: none !important;
}
2020-03-28 17:40:53 +01:00
.side-menu-apps-list {
2020-03-28 18:24:42 +01:00
height: calc(100vh - 150px);
z-index: 2200;
position: fixed;
top: 150px;
width: 100%;
max-width: 250px;
overflow: auto;
2020-03-28 17:40:53 +01:00
}
.side-menu-app-icon {
width: 20px;
vertical-align: top;
2020-03-28 17:40:53 +01:00
margin-right: 10px;
2020-08-13 21:22:10 +02:00
filter: invert(var(--side-menu-icon-invert-filter, 0%));
2020-08-13 22:07:09 +02:00
opacity: var(--side-menu-icon-opacity, 1);
}
.side-menu-app-icon svg {
vertical-align: middle;
margin-top: -3px;
2020-03-28 17:40:53 +01:00
}
.side-menu-app a {
line-height: 30px;
2020-04-08 17:13:49 +02:00
color: var(--side-menu-text-color, #fff);
2020-03-28 17:40:53 +01:00
display: block;
2020-04-22 19:30:04 +02:00
padding: 7px 0 5px 15px;
2020-03-28 18:24:42 +01:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2020-03-28 17:40:53 +01:00
}
.side-menu-app a:hover, .side-menu-app.active, .side-menu-app a:focus {
2020-04-08 17:13:49 +02:00
background: var(--side-menu-current-app-background-color, #444);
2020-03-28 17:40:53 +01:00
}
.side-menu-logo {
text-align: center;
}
.side-menu-logo img {
2020-04-09 10:36:38 +02:00
max-width: 60%;
max-height: 100px;
2020-03-28 17:40:53 +01:00
}
2020-03-28 18:24:42 +01:00
.side-menu-header {
height: 150px;
2020-04-09 10:36:38 +02:00
width: 100%;
2020-03-28 18:24:42 +01:00
z-index: 2300;
max-width: 250px;
position: fixed;
2020-04-08 17:04:04 +02:00
padding-top: 2px;
2020-04-26 23:30:43 +02:00
padding-left: 5px;
2020-03-28 18:24:42 +01:00
top: 0;
}
#side-menu.hide-opener .side-menu-logo {
margin-top: 20px;
}
2020-05-19 15:17:54 +02:00
#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;
}
2020-08-11 10:34:06 +02:00
#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;
2020-08-13 11:21:06 +02:00
max-width: 100vw;
2020-08-11 10:34:06 +02:00
overflow: auto;
}
.side-menu-big .side-menu-app a {
padding: 7px 0 7px 7px;
}
.side-menu-categories-wrapper {
2020-08-13 11:21:06 +02:00
padding-bottom: 70px;
2020-08-11 10:34:06 +02:00
}
.side-menu-categories {
max-height: calc(100vh - 50px);
overflow: auto;
position: relative;
top: 50px;
display: flex;
flex-wrap: wrap;
justify-content: center;
2020-08-13 11:21:06 +02:00
padding: 0 10% 0 10%;
2020-08-11 10:34:06 +02:00
}
.side-menu-category {
padding: 10px 20px;
flex: 1 1 auto;
2020-08-11 10:34:06 +02:00
}
.side-menu-category-title {
padding-left: 10px;
color: var(--side-menu-text-color, #fff);
}
2020-10-11 17:06:34 +02:00
.side-menu-loader {
text-align: center;
}
.side-menu-loader svg {
width: 38px;
margin: auto;
stroke: var(--side-menu-text-color, #fff);
}
2020-08-11 10:34:06 +02:00
.side-menu-big .side-menu-app-icon {
vertical-align: middle;
margin-top: -2px;
}
.side-menu-always-displayed #header,
.side-menu-always-displayed body {
width: calc(100% - 50px) !important;
}
.side-menu-always-displayed body {
position: absolute;
left: 50px;
}
.side-menu-always-displayed #side-menu {
display: block;
}
.side-menu-always-displayed .side-menu-apps-list {
2020-09-03 12:42:33 +02:00
height: calc(100vh - 49px);
top: 49px;
}
.side-menu-always-displayed #side-menu,
.side-menu-always-displayed .side-menu-header,
.side-menu-always-displayed .side-menu-apps-list {
width: 50px;
}
.side-menu-always-displayed #side-menu .side-menu-app-text,
.side-menu-always-displayed #header .side-menu-opener,
.side-menu-always-displayed .side-menu-logo {
display: none;
}
2020-09-11 13:23:52 +02:00
.side-menu-always-displayed #side-menu .side-menu-header {
height: 49px;
}
.side-menu-always-displayed #side-menu.open,
.side-menu-always-displayed #side-menu.open .side-menu-apps-list,
2020-09-14 14:40:14 +02:00
.side-menu-always-displayed #side-menu.open .side-menu-header {
width: 100%;
}
2020-09-14 14:40:14 +02:00
.side-menu-always-displayed #side-menu.open .side-menu-app-text {
display: inline;
}
.side-menu-always-displayed .app-navigation--close {
transform: translateX(calc(-100% + 50px)) !important;
}
2020-08-11 10:34:06 +02:00
@media screen and (max-width: 1024px) {
#side-menu.side-menu-big {
max-width: 290px;
}
2020-08-11 10:34:06 +02:00
.side-menu-categories {
display: block;
2020-08-13 11:21:06 +02:00
padding: 0;
2020-08-11 10:34:06 +02:00
}
.side-menu-category {
padding: 10px 0;
2020-08-11 10:34:06 +02:00
}
2020-08-13 11:21:06 +02:00
#side-menu.side-menu-big {
height: 100vh;
}
2020-08-11 10:34:06 +02:00
}
@media screen and (min-width: 1024px) {
.side-menu-closer {
display: block;
float: right;
margin-right: 9px;
}
.side-menu-big .side-menu-header {
max-width: 100%;
}
}