2016-02-08 15:41:00 +01:00
|
|
|
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
2015-09-23 13:40:55 +02:00
|
|
|
|
2015-11-10 13:23:47 +01:00
|
|
|
// Width for the name column--th--of name-value-table
|
2019-10-31 14:43:37 +01:00
|
|
|
@name-value-table-name-width: 38/3em;
|
2015-11-10 13:23:47 +01:00
|
|
|
|
2015-12-21 09:39:20 +01:00
|
|
|
.action-link {
|
|
|
|
color: @icinga-blue;
|
2015-09-23 14:04:07 +02:00
|
|
|
}
|
|
|
|
|
2015-12-10 13:02:25 +01:00
|
|
|
.error-message {
|
|
|
|
font-weight: @font-weight-bold;
|
|
|
|
}
|
|
|
|
|
2015-10-27 14:10:31 +01:00
|
|
|
.large-icon {
|
|
|
|
font-size: 200%;
|
2015-09-30 16:39:50 +02:00
|
|
|
}
|
|
|
|
|
2015-09-30 23:58:38 +02:00
|
|
|
.content-centered {
|
|
|
|
margin: 0 auto;
|
2015-11-03 13:03:53 +01:00
|
|
|
text-align: center;
|
2015-09-30 23:58:38 +02:00
|
|
|
}
|
|
|
|
|
2015-09-30 16:39:50 +02:00
|
|
|
.icon-col {
|
2016-04-05 14:14:03 +02:00
|
|
|
text-align: center;
|
2015-11-10 09:29:48 +01:00
|
|
|
width: 1em;
|
2015-09-30 16:39:50 +02:00
|
|
|
}
|
|
|
|
|
2015-11-09 11:45:04 +01:00
|
|
|
.preformatted {
|
|
|
|
font-family: @font-family-fixed;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
2019-07-23 14:45:32 +02:00
|
|
|
.markdown {
|
|
|
|
> * {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> *:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-23 13:40:55 +02:00
|
|
|
.pull-right {
|
|
|
|
float: right;
|
|
|
|
}
|
2015-09-23 14:05:53 +02:00
|
|
|
|
2015-09-24 11:57:24 +02:00
|
|
|
.text-right {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2015-09-30 16:39:50 +02:00
|
|
|
.user-avatar {
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
|
2015-10-01 22:58:40 +02:00
|
|
|
.v-center {
|
|
|
|
> * {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2015-09-30 18:32:29 +02:00
|
|
|
}
|
|
|
|
|
2015-11-20 11:22:27 +01:00
|
|
|
.section {
|
|
|
|
margin-bottom: 2em;
|
|
|
|
}
|
|
|
|
|
2015-10-27 14:10:31 +01:00
|
|
|
a:hover > .icon-cancel {
|
2015-09-30 16:39:50 +02:00
|
|
|
color: @color-critical;
|
|
|
|
}
|
|
|
|
|
2016-11-17 10:58:21 +01:00
|
|
|
.icon-stateful {
|
|
|
|
.fg-stateful();
|
|
|
|
}
|
|
|
|
|
2015-11-09 11:45:04 +01:00
|
|
|
// Link styles
|
|
|
|
|
2015-12-21 09:39:20 +01:00
|
|
|
.button-link {
|
|
|
|
.action-link();
|
2016-04-05 13:21:37 +02:00
|
|
|
.rounded-corners(3px);
|
|
|
|
|
2019-08-22 14:37:26 +02:00
|
|
|
background: @low-sat-blue;
|
2016-04-05 13:21:37 +02:00
|
|
|
display: inline-block;
|
|
|
|
padding: 0.25em 0.5em;
|
|
|
|
|
|
|
|
&:hover {
|
2019-08-22 14:37:26 +02:00
|
|
|
background: @low-sat-blue-dark;
|
2016-04-05 13:21:37 +02:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2015-09-30 16:39:50 +02:00
|
|
|
}
|
|
|
|
|
2015-11-09 11:45:04 +01:00
|
|
|
// List styles
|
|
|
|
|
2015-10-27 16:05:43 +01:00
|
|
|
.comment-list {
|
2015-11-10 09:29:48 +01:00
|
|
|
margin: 0;
|
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
> dt {
|
2015-09-25 11:40:55 +02:00
|
|
|
border-bottom: 1px solid @gray-lighter;
|
2015-11-20 15:13:01 +01:00
|
|
|
margin-bottom: 0.25em;
|
2015-10-01 16:31:25 +02:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: @gray-lightest;
|
2015-10-27 16:05:43 +01:00
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
> .remove-action {
|
2015-11-10 09:29:48 +01:00
|
|
|
visibility: visible;
|
2015-10-01 16:31:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
> .remove-action {
|
2015-11-10 09:29:48 +01:00
|
|
|
visibility: hidden;
|
2015-10-27 16:05:43 +01:00
|
|
|
}
|
2015-09-25 11:40:55 +02:00
|
|
|
}
|
2015-09-25 12:40:33 +02:00
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
> dd {
|
|
|
|
margin: 0 0 1em 0;
|
|
|
|
}
|
2015-10-27 16:05:43 +01:00
|
|
|
}
|
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
.comment-time {
|
2015-10-27 16:05:43 +01:00
|
|
|
color: @text-color-light;
|
|
|
|
font-size: @font-size-small;
|
|
|
|
}
|
|
|
|
|
2015-11-09 11:45:04 +01:00
|
|
|
.name-value-list {
|
2015-11-20 15:13:01 +01:00
|
|
|
> dd {
|
2015-10-01 00:56:38 +02:00
|
|
|
// Reset default margin
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
> dt {
|
2015-11-03 12:21:18 +01:00
|
|
|
color: @text-color-light;
|
|
|
|
font-size: @font-size-small;
|
2015-10-01 00:56:38 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-11-09 11:45:04 +01:00
|
|
|
// Table styles
|
|
|
|
|
|
|
|
.common-table {
|
2015-11-04 16:05:46 +01:00
|
|
|
width: 100%;
|
2015-10-28 14:14:07 +01:00
|
|
|
|
2015-11-04 16:05:46 +01:00
|
|
|
td, th {
|
2015-11-10 09:30:11 +01:00
|
|
|
padding-top: 1em;
|
2015-10-01 00:56:38 +02:00
|
|
|
}
|
2015-09-25 12:40:33 +02:00
|
|
|
|
2015-11-16 10:28:51 +01:00
|
|
|
td {
|
|
|
|
padding-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
2015-11-04 16:05:46 +01:00
|
|
|
th {
|
2015-09-28 17:06:01 +02:00
|
|
|
text-align: left;
|
2015-11-16 10:28:51 +01:00
|
|
|
padding-bottom: 0.5em;
|
2015-09-28 17:06:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
thead {
|
2015-11-04 15:12:35 +01:00
|
|
|
border-bottom: 1px solid @gray-light;
|
2015-09-25 12:40:33 +02:00
|
|
|
}
|
|
|
|
|
2015-11-04 16:05:46 +01:00
|
|
|
tbody tr {
|
2015-09-25 12:40:33 +02:00
|
|
|
border-bottom: 1px solid @gray-lightest;
|
2015-11-04 16:05:46 +01:00
|
|
|
border-left: 5px solid transparent;
|
2015-09-25 12:40:33 +02:00
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
}
|
2015-11-04 16:05:46 +01:00
|
|
|
|
2016-02-23 12:18:52 +01:00
|
|
|
tr[href].active {
|
|
|
|
background-color: @tr-active-color;
|
|
|
|
border-left-color: @icinga-blue;
|
|
|
|
}
|
2015-11-20 15:49:15 +01:00
|
|
|
|
2016-02-23 12:18:52 +01:00
|
|
|
tr[href]:hover {
|
|
|
|
background-color: @tr-hover-color;
|
|
|
|
cursor: pointer;
|
2015-11-04 16:05:46 +01:00
|
|
|
}
|
2015-09-25 12:40:33 +02:00
|
|
|
}
|
2015-10-01 00:56:38 +02:00
|
|
|
|
2015-11-20 15:13:01 +01:00
|
|
|
.name-value-table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name-value-table > tbody > tr > th {
|
2015-11-04 16:05:46 +01:00
|
|
|
color: @text-color-light;
|
|
|
|
// Reset default font-weight
|
|
|
|
font-weight: normal;
|
2015-11-10 09:30:33 +01:00
|
|
|
padding-left: 0;
|
2015-11-04 16:05:46 +01:00
|
|
|
text-align: left;
|
2015-11-09 11:33:37 +01:00
|
|
|
vertical-align: top;
|
2015-11-10 13:23:47 +01:00
|
|
|
width: @name-value-table-name-width;
|
2015-10-01 22:58:40 +02:00
|
|
|
}
|
|
|
|
|
2015-12-10 12:31:25 +01:00
|
|
|
/* Styles for centering content of unknown width and height both horizontally and vertically
|
|
|
|
*
|
|
|
|
* Example markup:
|
|
|
|
* <div class="centered-ghost">
|
|
|
|
* <div class="centered-content">
|
|
|
|
* <p>I'm centered.</p>
|
|
|
|
* </div>
|
|
|
|
* </div>
|
|
|
|
*/
|
|
|
|
|
|
|
|
.centered-content {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.centered-ghost {
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
2016-11-17 10:21:17 +01:00
|
|
|
letter-spacing: -0.417em; // Remove gap between content and ghost
|
2015-12-10 12:31:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.centered-ghost > * {
|
|
|
|
letter-spacing: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.centered-ghost:after {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2018-01-16 16:38:32 +01:00
|
|
|
|
|
|
|
// Responsive iFrames
|
|
|
|
|
|
|
|
.iframe-container {
|
|
|
|
position: relative;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
padding-bottom: 75%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
& > iframe {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
2018-11-20 13:56:41 +01:00
|
|
|
|
|
|
|
// Collapsible Control
|
2019-06-06 13:58:06 +02:00
|
|
|
#collapsible-control-ghost {
|
|
|
|
display: none;
|
2018-11-21 13:59:54 +01:00
|
|
|
}
|
2018-11-20 13:56:41 +01:00
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
.collapsible-control {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
button {
|
|
|
|
.rounded-corners(50%);
|
2018-11-20 13:56:41 +01:00
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
background: @gray-lighter;
|
|
|
|
color: @gray;
|
|
|
|
width: 2em;
|
|
|
|
height: 2em;
|
|
|
|
z-index: 1;
|
|
|
|
position: absolute;
|
|
|
|
border: none;
|
2019-07-01 11:02:55 +02:00
|
|
|
padding: 0;
|
2019-06-06 13:58:06 +02:00
|
|
|
bottom: -1em;
|
|
|
|
right: .25em;
|
|
|
|
-webkit-box-shadow: 0 0 1/3em rgba(0,0,0,.3);
|
|
|
|
-moz-box-shadow: 0 0 1/3em rgba(0,0,0,.3);
|
|
|
|
box-shadow: 0 0 1/3em rgba(0,0,0,.3);
|
|
|
|
|
|
|
|
&:hover:before {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2019-07-01 11:12:18 +02:00
|
|
|
top: -1/6em;
|
|
|
|
right: -1/6em;
|
|
|
|
bottom: -1/6em;
|
|
|
|
left: -1/6em;
|
2019-06-06 13:58:06 +02:00
|
|
|
background: fade(@text-color, 10);
|
|
|
|
.rounded-corners(50%);
|
2018-11-21 13:59:54 +01:00
|
|
|
}
|
2018-11-20 13:56:41 +01:00
|
|
|
}
|
2019-07-01 11:02:55 +02:00
|
|
|
|
|
|
|
button i:before {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2018-11-21 13:59:54 +01:00
|
|
|
}
|
2018-11-20 13:56:41 +01:00
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
.collapsible.can-collapse:not(.collapsed) + .collapsible-control button {
|
|
|
|
> i.expand-icon {
|
|
|
|
display: none;
|
2018-11-20 13:56:41 +01:00
|
|
|
}
|
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
> i.collapse-icon {
|
2019-06-27 15:22:12 +02:00
|
|
|
display: inline;
|
2018-11-20 13:56:41 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
.collapsible.collapsed + .collapsible-control button {
|
|
|
|
> i.expand-icon {
|
2019-06-27 15:22:12 +02:00
|
|
|
display: inline;
|
2018-11-21 13:59:54 +01:00
|
|
|
}
|
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
> i.collapse-icon {
|
|
|
|
display: none;
|
2018-11-21 13:59:54 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
// Collapsibles
|
2018-12-06 11:31:41 +01:00
|
|
|
|
2019-06-06 13:58:06 +02:00
|
|
|
.collapsible.collapsed {
|
|
|
|
overflow: hidden;
|
2019-07-29 15:57:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.collapsible.collapsed:not([data-toggle-element]) {
|
|
|
|
position: relative;
|
2018-12-06 15:03:55 +01:00
|
|
|
|
2019-07-25 11:52:14 +02:00
|
|
|
&:before, &:after {
|
2019-06-06 13:58:06 +02:00
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
height: 2em;
|
|
|
|
background: linear-gradient(rgba(255,255,255,0), white);
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 1;
|
2019-07-25 11:52:14 +02:00
|
|
|
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 2s 1s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: 0;
|
|
|
|
background: linear-gradient(rgba(238,238,238,0), #eee);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-29 15:57:48 +02:00
|
|
|
.impact .collapsible.collapsed:not([data-toggle-element]) {
|
2019-07-25 11:52:14 +02:00
|
|
|
&:before {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
opacity: 1;
|
2019-06-06 13:58:06 +02:00
|
|
|
}
|
2018-12-06 15:03:55 +01:00
|
|
|
}
|