blob: bf019ab7336b4480afc8efe7fced0c4dc0ff05e8 [file] [log] [blame]
Michael Davis4250f302017-09-06 11:03:52 -05001$title-minWidth: 210px;
2$col-width: calc(72% * (1 / 4) - 10px);
3$narrow-width: 17%;
4
5//Multiserver dropdown
6.multi-server__recent {
7 position: fixed;
8 z-index: 110;
9 background: $white;
10 left: 130px;
11 top: -30%;
12 max-height: 0;
13 overflow: hidden;
14 padding: 1em;
15 font-size: .95em;
16 font-weight: 600;
17 @include fastTransition-all;
18 @include mediaQuery(medium) {
19 min-width: 450px;
20 }
21 &.active {
22 top: 130px;
23 max-height: 100%;
24 overflow: scroll;
25 @include fastTransition-all;
26 }
27}
28.multi-server__add-server,
29.multi-server__view-all {
30 display: block;
31 padding: .6em .6em .6em 0;
32 width: 100%;
33 text-align: left;
Michael Davis4b77b192017-08-25 14:22:44 -050034}
35
Michael Davis4250f302017-09-06 11:03:52 -050036.multi-server__add-server {
37 margin-bottom: 2em;
38 .icon__plus {
39 height: 18px;
40 margin-top: -2px;
41 }
42}
Michael Davis4b77b192017-08-25 14:22:44 -050043
Michael Davis4250f302017-09-06 11:03:52 -050044a.multi-server__view-all {
45 color: $black;
46}
47
48.multi-server__recent-header {
49 background: $lightgrey;
50 color: $darkgrey;
51 padding: 1em 0 .7em 1em;
52 margin-left: -1em;
53 margin-right: -1em;
54 margin-top: 1em;
55}
56
57.multi-server__recent-server {
58 padding: .8em 1em;
59 border-bottom: 1px solid $medgrey;
60 margin-left: -1em;
61 margin-right: -1em;
62 &:last-child {
63 border: 0px;
64 }
65 &:hover {
66 cursor: pointer;
67 background: $lightblue;
68 @include fastTransition-all;
69 }
70 .column {
71 padding-left: 0;
72 padding-top: .5em;
73 }
74 .icon {
75 margin-left: 0;
76 }
77 @include mediaQuery(medium) {
78 border-bottom: 0;
79 }
80}
81
82.multi-server__recent-name {
83 line-height: 1.2;
84 text-align: left;
85}
86
87.multi-server__recent-ip {
88 @include fontCourierBold;
89}
90
91.multi-server__recent-power,
92.multi-server__recent-ip{
93 text-align: left;
94}
95
96//Multiserver page
Michael Davis4b77b192017-08-25 14:22:44 -050097.header__actions-bar {
98 padding-left: 1.5em;
99 font-weight: 700;
100 .multi-server__col {
101 padding: 0;
102 &:hover {
103 cursor: pointer;
104 }
105 }
106 .multi-server__title {
107 padding: 0;
108 width: 30%;
109 }
110}
111
112.multi-server__heading-current {
113 margin: 0;
114 @include mediaQuery(medium) {
115 margin-left: 10px;
116 margin-right: 10px;
117 }
118}
119
120.multi-server__label {
Michael Davis4b77b192017-08-25 14:22:44 -0500121 font-weight: 300;
122 @include fontFamily;
123 @include mediaQuery(medium) {
124 display: none;
125 }
126}
127
128.multi-server__col {
129 width: 100%;
Michael Davis4250f302017-09-06 11:03:52 -0500130 text-align: left;
Michael Davis4b77b192017-08-25 14:22:44 -0500131 margin-bottom: 0;
132 display: none;
133 padding: .5em .8em .5em .8em;
Michael Davis4250f302017-09-06 11:03:52 -0500134 overflow: hidden;
Michael Davis4b77b192017-08-25 14:22:44 -0500135 @include mediaQuery(medium) {
136 display: inline-block;
Michael Davis4250f302017-09-06 11:03:52 -0500137 width: $col-width;
Michael Davis4b77b192017-08-25 14:22:44 -0500138 padding: .5em .8em .5em 0;
139 text-align: left;
Michael Davis4250f302017-09-06 11:03:52 -0500140 vertical-align: top;
141 overflow-wrap: break-word;
142 }
143}
144
145.multi-server__data {
146 text-align: left;
147 float: right;
148 width:40%;
149 overflow-wrap: break-word;
150 @media (min-width: 700px){
151 width:30%;
152 }
153 @include mediaQuery(medium) {
154 float: none;
155 width: auto
Michael Davis4b77b192017-08-25 14:22:44 -0500156 }
157}
158
159.narrow-col {
Michael Davis4250f302017-09-06 11:03:52 -0500160 @include mediaQuery(medium) {
161 width: $narrow-width;
162 }
Michael Davis4b77b192017-08-25 14:22:44 -0500163}
164
165.multi-server__col-row {
166 position: relative;
167 display: block;
168 margin: 0;
Michael Davis4b77b192017-08-25 14:22:44 -0500169 text-decoration: none;
170 border: 1px solid $medgrey;
171 background: lighten($lightgrey,1%);
172 margin-top: 1em;
173 &:hover {
174 cursor: pointer;
175 background: $lightblue;
176 @include fastTransition-all;
177 }
178 @include mediaQuery(medium) {
179 padding: .3em 1em .3em 1.5em;
180 margin-top: 0;
181 border-top: 0;
182 background: transparent;
183 }
184 .multi-server__title {
185 font-weight: 700;
186 background: darken($lightgrey, 5%);
187 min-width: 100%;
188 padding: .5em .8em;
189 @include mediaQuery(medium) {
190 min-width: 30%;
191 max-width: 30%;
192 background: 0 0;
193 vertical-align: top;
194 margin-bottom: 0;
195 padding: .5em .8em .5em 0;
Michael Davis4250f302017-09-06 11:03:52 -0500196 overflow-wrap: break-word;
Michael Davis4b77b192017-08-25 14:22:44 -0500197 }
198 .icon__normal {
199 width: 0;
200 }
201 }
202 .content-label {
203 font-size: 1em;
204 margin-left: .8em;
205 color: $darkgrey;
206 }
207 .multi-server__col {
208 display: block;
209 @include mediaQuery(medium) {
210 display: inline-block;
211 }
212 }
213 .multi-server__current {
214 background: darken($thresh-normal, 3%);
215 margin: 0;
216 @include mediaQuery(medium) {
217 background: $thresh-normal;
218 padding: .7em .3em;
219 margin-left: 10px;
220 min-width: 109px;
221 }
222 @include mediaQuery(large) {
223 background: $thresh-normal;
224 padding: .7em;
225 margin-left: .3em;
226 margin-right: .3em;
227 min-width: 150px;
228 }
229 .multi-server__label {
230 font-weight: 700;
231 @include mediaQuery(medium) {
232 font-weight:300;
233 }
234 }
235 }
236 .multi-server__critical {
237 background: $thresh-critical;
238 color: $white;
239 .content-label {
240 color: $white;
241 }
242 }
243 .multi-server__warn {
244 background: $thresh-warning;
245 color: $black;
246 .content-label {
247 color: $black;
248 }
249 }
250}
251
252.multi-server__add-form {
253 .control-check {
254 padding-left: 25px;
Michael Davis4250f302017-09-06 11:03:52 -0500255 margin-left: 1em;
Michael Davis4b77b192017-08-25 14:22:44 -0500256 }
Michael Davis4250f302017-09-06 11:03:52 -0500257}
Michael Davis58fcd7f2017-09-08 11:26:35 -0500258
259//Multiserver modals
260.modal__multi-login {
261 .multi-server__col-row {
262 background: $lightgrey;
263 border-top: 1px solid $medgrey;
264 margin-bottom: 2em;
265 padding-bottom: .5em;
266 padding-left: 0;
267 padding-right: 0;
268 padding-top: 0;
269 @include mediaQuery(large) {
270 padding-top: .5em;
271 }
272 .multi-server__title {
273 width: 100%;
274 min-width: 100%;
275 max-width: 100%;
276 padding: .5em .8em .5em .8em;
277 background: darken($lightgrey, 5%);
278 @include mediaQuery(large) {
279 min-width: 40%;
280 max-width: 40%;
281 background: transparent;
282 }
283 }
284 .multi-server__data {
285 width: 100%;
286 float: none;
287
288 }
289 }
290 .multi-server__col {
291 padding: .5em .8em .5em .8em;
292 width: 100%;
293 @include mediaQuery(large) {
294 width: calc(100% * (1 / 3) - 10px);
295 &.narrow-col {
296 width: 20%;
297 }
298 }
299 }
300}