2015-02-04 10:46:36 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
2014-02-18 19:39:54 +01:00
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
/** Default layout **/
|
|
|
|
html {
|
|
|
|
font-family: 'default-layout';
|
|
|
|
}
|
|
|
|
|
2014-02-18 19:39:54 +01:00
|
|
|
#layout {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#header {
|
2014-02-25 11:24:17 +01:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#sidebar {
|
2014-11-06 13:25:52 +01:00
|
|
|
width: 12em;
|
2014-02-25 11:24:17 +01:00
|
|
|
position: fixed;
|
2014-02-18 19:39:54 +01:00
|
|
|
left: 0;
|
2015-09-22 17:33:02 +02:00
|
|
|
top: 4.6em;
|
2014-02-18 19:39:54 +01:00
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main {
|
|
|
|
position: fixed;
|
2014-11-06 13:25:52 +01:00
|
|
|
left: 12em;
|
2014-02-25 11:24:17 +01:00
|
|
|
top: 3.6em;
|
2014-02-18 19:39:54 +01:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
2014-04-17 18:20:03 +02:00
|
|
|
.iframe {
|
|
|
|
#header, #sidebar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#main {
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-20 10:14:55 +02:00
|
|
|
#fileupload-frame-target {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:40:44 +01:00
|
|
|
#responsive-debug {
|
|
|
|
font-size: 0.9em;
|
|
|
|
font-family: Courier new, monospace;
|
|
|
|
padding: 0.5em;
|
|
|
|
width: 25em;
|
|
|
|
color: white;
|
|
|
|
height: 10em;
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0.5em;
|
|
|
|
right: 2em;
|
|
|
|
overflow: hidden;
|
|
|
|
z-index: 1000;
|
|
|
|
background: #333;
|
|
|
|
border-radius: 0.5em;
|
|
|
|
opacity: 0.9;
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
#layout.minimal-layout #responsive-debug {
|
|
|
|
font-size: 0.6em;
|
|
|
|
}
|
|
|
|
#layout.poor-layout #responsive-debug {
|
|
|
|
font-size: 0.7em;
|
|
|
|
}
|
|
|
|
#layout.compact-layout #responsive-debug {
|
|
|
|
font-size: 0.8em;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
#layout.wide-layout #responsive-debug {
|
|
|
|
font-size: 1em;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
/** Fullscreen layout **/
|
|
|
|
#layout.fullscreen-layout {
|
2015-06-17 14:14:07 +02:00
|
|
|
#header, #sidebar {
|
2014-03-04 11:43:43 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-06-18 13:40:46 +02:00
|
|
|
.container .controls {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2015-06-17 14:14:07 +02:00
|
|
|
.controls > ul.tabs {
|
|
|
|
margin-top: 0;
|
|
|
|
height: 1.5em;
|
2015-06-18 13:11:36 +02:00
|
|
|
font-size: 0.75em;
|
2015-06-17 14:14:07 +02:00
|
|
|
padding: 0.2em 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls > ul.tabs > li > a {
|
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
#main {
|
|
|
|
left: 0;
|
2015-06-17 14:14:07 +02:00
|
|
|
top: 0 !important;
|
2014-03-04 11:43:43 +01:00
|
|
|
}
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* tmp */
|
|
|
|
#main > .container {
|
2014-11-14 21:45:39 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
2014-02-18 19:39:54 +01:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols #main > .container {
|
2014-11-14 21:45:39 +01:00
|
|
|
width: 50%;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
2014-03-04 11:43:43 +01:00
|
|
|
|
2014-02-18 19:39:54 +01:00
|
|
|
|
|
|
|
/* #layout.twocols #main > .container > .controls {*/
|
2014-03-04 11:43:43 +01:00
|
|
|
/*#layout.twocols #main .container > .controls {
|
2014-02-18 19:39:54 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container > div {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2014-03-04 11:43:43 +01:00
|
|
|
*/
|
2014-02-18 19:39:54 +01:00
|
|
|
.container .controls {
|
|
|
|
top: 0;
|
2015-04-17 10:04:24 +02:00
|
|
|
padding: 1em 1em 0;
|
2014-03-17 17:20:02 +01:00
|
|
|
z-index: 100;
|
2015-10-01 23:01:55 +02:00
|
|
|
|
|
|
|
h1 {
|
|
|
|
margin: 0;
|
|
|
|
margin-top: @horizontal-padding;
|
|
|
|
}
|
2015-06-03 15:02:53 +02:00
|
|
|
}
|
2015-06-03 14:57:51 +02:00
|
|
|
|
|
|
|
.container .controls.separated {
|
|
|
|
box-shadow: 0 3px 4px -4px rgba(0, 0, 0, 0.2);
|
2015-10-01 23:01:55 +02:00
|
|
|
// border-bottom: 1px solid @gray-lightest;
|
|
|
|
padding-bottom: @horizontal-padding / 2
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.container .fake-controls {
|
2015-04-17 10:04:24 +02:00
|
|
|
padding: 1em 1em 0;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#main .dashboard {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard > div.container {
|
|
|
|
vertical-align: top;
|
2014-02-25 11:24:17 +01:00
|
|
|
width: 48.5%;
|
2014-02-18 19:39:54 +01:00
|
|
|
display: inline-block;
|
|
|
|
padding: 0;
|
2014-11-06 13:25:52 +01:00
|
|
|
margin-top: 0em;
|
2014-02-18 19:39:54 +01:00
|
|
|
margin-left: 1%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
2015-11-10 13:14:42 +01:00
|
|
|
padding: 0 1em 1em 1em;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
|
|
|
|
2014-03-08 00:14:26 +01:00
|
|
|
.dashboard .content {
|
|
|
|
padding: 0;
|
2015-03-12 10:04:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard .controls {
|
2015-04-20 13:06:45 +02:00
|
|
|
padding: 0;
|
2014-03-08 00:14:26 +01:00
|
|
|
}
|
|
|
|
|
2014-02-25 11:24:17 +01:00
|
|
|
/* Not growing larger than 3840px at 1em=16px right now */
|
|
|
|
@media screen and (min-width: 240em) {
|
|
|
|
#main {
|
|
|
|
width: 227em;
|
|
|
|
}
|
|
|
|
#header {
|
|
|
|
width: 240em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
/** More than 100em, that's usually 1600px **/
|
2014-02-25 11:24:17 +01:00
|
|
|
@media screen and (min-width: 100em) {
|
2014-03-04 11:43:43 +01:00
|
|
|
html {
|
|
|
|
font-family: 'wide-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Up to 72em, that's usually 1152px on desktops **/
|
|
|
|
@media screen and (max-width:72em) {
|
|
|
|
html {
|
|
|
|
font-family: 'compact-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Up to 752px, poor boy **/
|
|
|
|
@media screen and (max-width: 47em) {
|
|
|
|
html {
|
|
|
|
font-family: 'poor-layout';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Up to 576px for 1em=16px, should fit 320px devices */
|
|
|
|
@media screen and (max-width: 36em) {
|
|
|
|
html {
|
|
|
|
font-family: 'minimal-layout';
|
|
|
|
}
|
|
|
|
}
|
2014-02-25 11:24:17 +01:00
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
/* 100em */
|
|
|
|
#layout.wide-layout {
|
2014-02-25 11:24:17 +01:00
|
|
|
.dashboard > div.container {
|
|
|
|
width: 32%;
|
|
|
|
margin-left: 1%;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
/* 72em */
|
|
|
|
#layout.compact-layout {
|
2015-11-06 01:53:27 +01:00
|
|
|
font-size: 0.875em;
|
2014-02-18 19:39:54 +01:00
|
|
|
}
|
2014-02-25 11:24:17 +01:00
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
#layout.poor-layout {
|
2015-11-06 01:53:27 +01:00
|
|
|
font-size: 0.875em;
|
2014-03-07 11:32:38 +01:00
|
|
|
|
2014-02-25 11:24:17 +01:00
|
|
|
.dashboard > div.container {
|
|
|
|
width: 98%;
|
|
|
|
margin-left: 1%;
|
|
|
|
margin-right: 1%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols {
|
|
|
|
#main > .container {
|
|
|
|
width: 99%;
|
|
|
|
}
|
|
|
|
#col1 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-04 11:43:43 +01:00
|
|
|
#layout.minimal-layout {
|
2014-02-25 11:24:17 +01:00
|
|
|
#sidebar {
|
2015-11-16 14:21:08 +01:00
|
|
|
top: 0;
|
|
|
|
height: 32px;
|
|
|
|
width: 100%;
|
2014-02-25 11:24:17 +01:00
|
|
|
}
|
2014-03-07 11:32:38 +01:00
|
|
|
|
|
|
|
.dashboard > div.container {
|
|
|
|
width: 98%;
|
|
|
|
margin-left: 1%;
|
|
|
|
margin-right: 1%;
|
|
|
|
}
|
|
|
|
|
2014-02-25 11:24:17 +01:00
|
|
|
#main {
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
2014-03-06 10:22:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
#layout.twocols .dashboard > div.container {
|
|
|
|
width: 96%;
|
|
|
|
margin-left: 2%;
|
|
|
|
margin-right: 2%;
|
|
|
|
}
|
|
|
|
|
2014-03-17 16:29:18 +01:00
|
|
|
#layout.twocols.wide-layout #col1 {
|
|
|
|
width: 33.333%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols.wide-layout #col2 {
|
|
|
|
width: 66.667%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.threecols.wide-layout #main > .container {
|
|
|
|
width: 33.333%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout #col2, #layout #col3 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.twocols #col2 {
|
2015-10-01 23:01:55 +02:00
|
|
|
border-left: 1px solid @gray-light;
|
2014-03-17 16:29:18 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#layout.threecols #col3 {
|
2014-11-06 15:49:26 +01:00
|
|
|
border-left: 1px solid #d9d9d9;
|
2014-03-17 16:29:18 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2014-06-20 14:27:17 +02:00
|
|
|
.audible {
|
|
|
|
left: -999em;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2015-06-05 12:38:55 +02:00
|
|
|
.message-error {
|
2014-03-13 15:54:27 +01:00
|
|
|
padding: 0.5em;
|
|
|
|
background-color: @colorCritical;
|
|
|
|
font-weight: bold;
|
|
|
|
color: white;
|
|
|
|
}
|
2014-10-01 09:24:52 +02:00
|
|
|
|
|
|
|
.hbox {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hbox-item {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2015-04-09 13:53:05 +02:00
|
|
|
margin-top: 0.5em;
|
2014-10-01 09:24:52 +02:00
|
|
|
margin-bottom: 0.25em;
|
|
|
|
margin-left: 1em;
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hbox-spacer {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
width: 2em;
|
|
|
|
}
|
2015-02-12 12:45:06 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Class to hide content from users but available for screen reader
|
|
|
|
* @todo(mh): Replace .audible class
|
|
|
|
*/
|
|
|
|
.sr-only {
|
|
|
|
border: 0;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
height: 1px;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
|
|
|
padding: 0;
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
}
|
2015-03-06 14:49:33 +01:00
|
|
|
|
2015-07-27 11:40:36 +02:00
|
|
|
// Hide non-javascript elements if javascript is enabled
|
|
|
|
html.js *.no-js {
|
|
|
|
.sr-only;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide javascript elements if javascript is disabled
|
|
|
|
html.no-js *.js {
|
|
|
|
.sr-only;
|
2015-09-19 21:57:02 +02:00
|
|
|
}
|