summaryrefslogtreecommitdiffstats
path: root/public/css/icinga/layout-structure.less
blob: b1ca8e65a59a66becc18c5cf6c8df73dbdec15e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */

html {
  height: 100%;
  font-family: 'default-layout';
}

body {
  height: 100%;
  overflow: hidden;
}

#layout {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#content-wrapper {
  flex: 1 1 auto;
  display: flex;
  height: 0;

}

#sidebar {
  width: 16em;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

#layout:not(.minimal-layout) #sidebar:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1em;
  background: linear-gradient(to left, rgba(0,0,0,.1), rgba(0,0,0,0));
  z-index: 0;
  pointer-events: none;
}

#main {
  flex: 1;
  display: flex;
  z-index: 1;
}

.iframe {
  #header, #sidebar {
    display: none;
  }
}

#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;
}

#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;
}

#layout.wide-layout #responsive-debug {
  font-size: 1em;
}

/** Fullscreen layout **/
#layout.fullscreen-layout {
  #sidebar {
    display: none;
  }

  .container .controls {
    padding: 0;
  }

  .controls > ul.tabs {
    margin-top: 0;
    height: 1.5em;
    font-size: 0.75em;
    padding: 0.2em 0 0;
  }

  .controls > ul.tabs > li > a {
    line-height: 1.5em;
  }
}

.controls-separated,
.container .controls.separated {
    box-shadow: 0 3px 4px -4px rgba(0, 0, 0, 0.2);
//  border-bottom: 1px solid @gray-lightest;
    padding-bottom: @horizontal-padding / 2
}

.hbox {
  display: inline-block;
}

.hbox-item {
  display: inline-block;
  vertical-align: top;
  margin-top: 0.5em;
  margin-bottom: 0.25em;
  margin-left: 1em;
  margin-right: 1em;
}

.hbox-spacer {
  display: inline-block;
  vertical-align: top;
  width: 2em;
}

/*
 * Class to hide content from users but available for screen reader
 * Based on: https://cloudfour.com/thinks/see-no-evil-hidden-content-and-accessibility/
 */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
  -webkit-clip-path: polygon(0px 0px, 0px 0px, 0px 0px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: fixed; // absolute causes view port glitches in chrome (#4310)
  width: 1px;
  white-space: nowrap;
}

// 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;
}