2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2016 Icinga Development Team | GPLv2+ */
|
2016-01-11 11:12:24 +01:00
|
|
|
|
|
|
|
// Not growing larger than 3840px at 1em=16px right now
|
|
|
|
@media screen and (min-width: 240em) {
|
|
|
|
#header {
|
2018-04-04 22:11:04 +02:00
|
|
|
min-width: 240em;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#main {
|
|
|
|
width: 227em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// More than 100em, usually 1600px at 1em=16px
|
|
|
|
@media screen and (min-width: 100em) {
|
|
|
|
html {
|
|
|
|
font-family: 'wide-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Up to 1152px at 1em=16px
|
|
|
|
@media screen and (max-width:72em) {
|
|
|
|
html {
|
|
|
|
font-family: 'compact-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Up to 752px at 1em=16px
|
|
|
|
@media screen and (max-width: 47em) {
|
|
|
|
html {
|
|
|
|
font-family: 'poor-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Up to 576px at 1em=16px, should fit 320px devices
|
|
|
|
@media screen and (max-width: 36em) {
|
|
|
|
html {
|
|
|
|
font-family: 'minimal-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.compact-layout {
|
|
|
|
font-size: 0.875em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.poor-layout {
|
|
|
|
font-size: 0.875em;
|
|
|
|
|
|
|
|
#layout.twocols {
|
|
|
|
#col1 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main > .container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard > div.container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-06 13:22:58 +01:00
|
|
|
#layout:not(.minimal-layout) {
|
|
|
|
#mobile-menu-toggle {
|
|
|
|
display: none;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
2019-12-06 13:22:58 +01:00
|
|
|
}
|
2016-01-11 11:12:24 +01:00
|
|
|
|
2019-12-06 13:22:58 +01:00
|
|
|
#layout.minimal-layout {
|
2016-01-11 11:12:24 +01:00
|
|
|
#sidebar {
|
|
|
|
width: 100%;
|
2020-06-23 09:41:22 +02:00
|
|
|
overflow: auto;
|
2019-12-06 13:22:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#header-logo-container {
|
|
|
|
width: auto;
|
2021-10-20 17:55:06 +02:00
|
|
|
height: 4em;
|
2019-12-06 13:22:58 +01:00
|
|
|
padding: 0;
|
|
|
|
background: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
#header-logo {
|
|
|
|
float: left;
|
2021-10-20 17:55:06 +02:00
|
|
|
width: 9em;
|
|
|
|
height: 3em;
|
|
|
|
margin: .5em 1em;
|
|
|
|
background-position: left center;
|
2019-12-06 13:22:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#mobile-menu-toggle {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar:not(.expanded) #menu {
|
|
|
|
display: none;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
|
2019-05-06 14:56:06 +02:00
|
|
|
#menu {
|
|
|
|
-webkit-box-shadow: none;
|
|
|
|
-moz-box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
2019-07-04 14:56:14 +02:00
|
|
|
#content-wrapper {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2019-12-11 12:57:15 +01:00
|
|
|
#main {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
2019-05-06 14:58:16 +02:00
|
|
|
ul > .selected > a:after,
|
|
|
|
ul > .nav-item.active:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-01-11 11:12:24 +01:00
|
|
|
.dashboard > div.container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
2017-11-15 15:12:10 +01:00
|
|
|
}
|
2016-01-11 11:12:24 +01:00
|
|
|
|
|
|
|
// Dashboard
|
|
|
|
|
2018-01-26 11:28:13 +01:00
|
|
|
.dashboard > .container {
|
|
|
|
padding-right: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout:not(.twocols).default-layout .dashboard > .container:not(:only-child) {
|
2016-01-11 13:25:58 +01:00
|
|
|
padding-right: @gutter;
|
2016-01-11 11:12:24 +01:00
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:28:13 +01:00
|
|
|
#layout:not(.twocols).wide-layout .dashboard > .container:not(:only-child) {
|
2016-01-11 13:25:58 +01:00
|
|
|
padding-right: @gutter;
|
2016-01-11 11:12:24 +01:00
|
|
|
width: 33.33%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Columns
|
|
|
|
|
|
|
|
#layout.twocols #col2 {
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: 1px solid @gray-lighter;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols.wide-layout #col2 {
|
2019-12-06 16:05:24 +01:00
|
|
|
flex-grow: 2;
|
2016-01-11 11:12:24 +01:00
|
|
|
}
|
2017-09-20 11:47:39 +02:00
|
|
|
|
|
|
|
// Safe areas for iPhone X
|
|
|
|
|
|
|
|
#header, #sidebar, #footer {
|
|
|
|
padding-left: constant(safe-area-inset-left);
|
|
|
|
}
|
|
|
|
|
|
|
|
#main, #footer {
|
|
|
|
padding-right: constant(safe-area-inset-right);
|
|
|
|
}
|
2020-02-27 15:28:33 +01:00
|
|
|
|
|
|
|
#layout.twocols #col2 {
|
2022-02-08 12:23:37 +01:00
|
|
|
border-left: 1px solid @gray-lighter;
|
2020-02-27 15:28:33 +01:00
|
|
|
|
|
|
|
&:empty {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|