icingaweb2/public/css/icinga/widgets.less

344 lines
5.9 KiB
Plaintext
Raw Normal View History

/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
2016-11-29 15:12:33 +01:00
#announcements > ul {
background-color: @body-bg-color;
list-style: none;
margin: 0;
padding: 0;
> li:before {
color: @icinga-blue;
content: "\e811";
font-family: 'ifont';
left: 1em;
2016-12-13 13:53:23 +01:00
margin-top: -1em;
2016-11-29 15:12:33 +01:00
padding: 0.3em;
position: absolute;
text-align: center;
top: 50%;
}
> li {
border-bottom: 1px solid @gray-lighter;
padding: 1em 3em;
position: relative;
}
> li .message {
display: inline-block;
vertical-align: middle;
}
> li:last-child {
border-bottom: none;
}
.acknowledge-announcement-control {
background: none;
border: none;
display: block;
margin-top: -0.6em;
position: absolute;
right: 1em;
top: 50%;
}
}
.dashboard-link {
.clearfix();
display: block;
max-width: 100%;
vertical-align: middle;
padding: 1em;
width: 36em;
&:hover {
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
-webkit-box-shadow: 0 0 0.5em 0 rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 0.5em 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 0.5em 0 rgba(0, 0, 0, 0.2);
background-color: @tr-hover-color;
text-decoration: none;
}
}
.link-meta {
display: table-cell;
vertical-align: middle;
}
.link-label {
font-weight: @font-weight-bold;
}
.link-description {
color: @text-color-light;
}
.link-icon {
display: table-cell;
padding-right: .5em;
vertical-align: middle;
> i {
font-size: 3em;
opacity: 0.7;
}
}
table.historycolorgrid {
font-size: 1.5em;
}
table.historycolorgrid th {
width: 1em;
height: 1em;
margin: 0.5em;
font-size: 0.55em;
font-weight: bold;
}
table.historycolorgrid td {
width: 1em;
height: 1em;
margin: 1em;
}
table.historycolorgrid td:hover {
opacity: 0.5;
}
table.historycolorgrid td.weekday {
font-size: 0.55em;
font-weight: bold;
width: 2.5em;
opacity: 1.0;
}
table.historycolorgrid a, table.historycolorgrid span {
.rounded-corners(0.2em);
margin: 0;
text-decoration: none;
display: block;
width: 1.1em;
height: 1.1em;
}
table.historycolorgrid a:hover {
text-decoration: none;
}
table.multiselect tr[href] td {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
2015-04-17 10:05:48 +02:00
#main div.filter {
form.editor {
input[type=text], select {
width: 12em;
}
ul.tree li.active {
background-color: #eee;
}
div.buttons {
float: right;
}
}
2014-06-20 12:33:37 +02:00
}
ul.tree select { /* ?? */
margin-bottom: 0.3em;
margin-left: 1em;
}
ul.tree {
padding: 0;
margin: 0;
}
ul.tree, ul.tree ul {
padding-left: 1.5em;
}
ul.tree ul {
padding-left: 1.5em;
}
ul.tree li {
margin: 0;
list-style-type: none;
position: relative;
padding: 0;
}
ul.tree li .handle {
2014-08-28 16:15:51 +02:00
background-image: url('../img/tree/tree-minus.gif');
background-repeat: no-repeat;
display: inline-block;
position: absolute;
width: 1em;
height: 2em;
left: -0.6em;
background-position: -3px 3px;
z-index: 1;
cursor: pointer;
}
ul.tree li.collapsed > .handle {
2014-08-28 16:15:51 +02:00
background-image: url('../img/tree/tree-plus.gif');
}
ul.tree li.collapsed > ul {
display: none;
}
ul.tree li::before, ul.tree li::after {
content: '';
2014-08-28 16:15:51 +02:00
position: absolute;
right: auto;
left: -0.2em;
2016-01-25 08:50:37 +01:00
border-color: @gray-light;
border-style: dotted;
border-width: 0;
}
/* This is the left vertical line */
ul.tree li::before {
border-left-width: 1px;
top: 0;
2014-08-28 16:15:51 +02:00
width: 1em;
height: 100%;
bottom: 1em;
}
/* This is the horizontal dash in front of each item */
ul.tree li::after {
border-top-width: 1px;
top: 1em;
width: 1em;
height: 1em;
}
/* Stop left vertical line at "mid-height" after last nodes (at each level) */
ul.tree li:last-child::before {
height: 1em;
}
/* No border for the root element - there must be only ONE root */
ul.tree > li::before, ul.tree > li::after {
display: none;
}
/* No connector before (each) root element */
ul.tree > ul > li::before, ul.tree > ul > li::after {
border: 0;
}
ul.tree li a {
display: inline-block;
2015-11-13 09:44:50 +01:00
padding-left: 1em;
line-height: 2em;
text-decoration: none;
2016-01-25 08:50:37 +01:00
color: @gray;
background-repeat: no-repeat;
background-position: 0.8em 0.4em;
}
ul.tree li a.error {
2016-01-25 08:50:37 +01:00
color: @color-critical-handled;
}
ul.tree li a:hover {
2016-01-25 08:50:37 +01:00
color: @text-color;
text-decoration: underline;
}
ul.tree li a.error:hover {
2016-01-25 08:50:37 +01:00
color: @color-critical;
}
/* Add hover effect to chart data */
.chart-data:hover {
opacity: 0.85;
}
/* charts should grow as much as possible but never beyond the current viewport's size */
.svg-container-responsive {
padding: 1.5em;
height: 80vh;
}
.tipsy .tipsy-inner {
// overwrite tooltip max width, we need them to grow bigger
font-family: @font-family;
font-size: @font-size-small;
max-width: 300px;
text-align: left;
}
.progress-label span {
font-size: 1.5em;
.animate(blink 1.4s infinite both);
&:nth-child(2) {
animation-delay: .2s;
}
&:nth-child(3) {
animation-delay: .4s;
}
}
2017-11-21 14:05:12 +01:00
.flyover:not(.flyover-expanded) .flyover-content {
display: none;
}
.flyover {
position: relative;
.flyover-content {
background-color: @body-bg-color;
border: 1px solid @gray-lighter;
box-shadow: 0 0 .5em 0 rgba(0, 0, 0, 0.2);
position: absolute;
}
&.flyover-arrow-top .flyover-content:before {
background: @body-bg-color;
border-left: 1px solid @gray-lighter;
border-top: 1px solid @gray-lighter;
content: "";
height: 1em;
-ms-transform: rotate(45deg);
transform: rotate(45deg);
width: 1em;
position: absolute;
2017-11-21 18:10:50 +01:00
left: 6px;
2017-11-21 14:05:12 +01:00
top: -7px;
}
2017-11-21 18:10:50 +01:00
&.flyover-right .flyover-content {
left: auto;
right: 0;
}
&.flyover-arrow-top.flyover-right .flyover-content:before {
left: auto;
right: 6px;
}
2017-11-21 14:05:12 +01:00
}