269 lines
4.0 KiB
Plaintext
269 lines
4.0 KiB
Plaintext
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
|
|
|
|
// Width for the name column--th--of name-value-table
|
|
@name-value-table-name-width: 14em;
|
|
|
|
.action-link(@color: @icinga-blue) {
|
|
color: @color;
|
|
}
|
|
|
|
.error-message {
|
|
font-weight: @font-weight-bold;
|
|
}
|
|
|
|
.large-icon {
|
|
font-size: 200%;
|
|
}
|
|
|
|
.content-centered {
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.icon-col {
|
|
width: 1em;
|
|
}
|
|
|
|
.icon-strikethrough {
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.preformatted {
|
|
font-family: @font-family-fixed;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.pull-left {
|
|
float: left;
|
|
}
|
|
|
|
.pull-right {
|
|
float: right;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.user-avatar {
|
|
height: 16px;
|
|
width: 16px;
|
|
}
|
|
|
|
.v-center {
|
|
> * {
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
|
|
a:hover > .icon-cancel {
|
|
color: @color-critical;
|
|
}
|
|
|
|
// Link styles
|
|
|
|
.button-link(@background-color: @body-bg-color, @color: @icinga-blue) {
|
|
.action-link(@color);
|
|
.button(@background-color, @color);
|
|
display: inline-block;
|
|
height: 35px;
|
|
line-height: 20px;
|
|
min-width: 175px;
|
|
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
* {
|
|
line-height: inherit;
|
|
}
|
|
|
|
i {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
// List styles
|
|
|
|
.comment-list {
|
|
margin: 0;
|
|
|
|
.comment-header {
|
|
border-bottom: 1px solid @gray-lighter;
|
|
|
|
&:hover {
|
|
background-color: @gray-lightest;
|
|
|
|
> .comment-meta > .meta-icons > .remove-action {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
> .comment-meta > .meta-icons > .remove-action {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment-header {
|
|
.clearfix();
|
|
}
|
|
|
|
.comment-meta {
|
|
color: @text-color-light;
|
|
font-size: @font-size-small;
|
|
|
|
> .meta-icons {
|
|
float: right;
|
|
margin-top: 0.2em;
|
|
}
|
|
}
|
|
|
|
.comment-text {
|
|
// Reset margin
|
|
margin: 0;
|
|
}
|
|
|
|
.name-value-list {
|
|
dd {
|
|
// Reset default margin
|
|
margin: 0;
|
|
}
|
|
|
|
dt {
|
|
color: @text-color-light;
|
|
font-size: @font-size-small;
|
|
}
|
|
}
|
|
|
|
// Table styles
|
|
|
|
.common-table {
|
|
width: 100%;
|
|
|
|
td, th {
|
|
padding-top: 1em;
|
|
}
|
|
|
|
td {
|
|
padding-bottom: 1em;
|
|
}
|
|
|
|
th {
|
|
text-align: left;
|
|
padding-bottom: 0.5em;
|
|
}
|
|
|
|
thead {
|
|
border-bottom: 1px solid @gray-light;
|
|
}
|
|
|
|
tbody tr {
|
|
border-bottom: 1px solid @gray-lightest;
|
|
border-left: 5px solid transparent;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
|
|
tr[href] {
|
|
.transition(background 0.2s ease);
|
|
|
|
&.active {
|
|
background-color: @tr-active-color;
|
|
border-left-color: @icinga-blue;
|
|
transition: none;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: @tr-hover-color;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
caption {
|
|
border-top: 1px solid @gray-light;
|
|
caption-side: bottom;
|
|
text-align: right;
|
|
font-style: italic;
|
|
}
|
|
}
|
|
|
|
.name-value-table th {
|
|
color: @text-color-light;
|
|
// Reset default font-weight
|
|
font-weight: normal;
|
|
padding-left: 0;
|
|
text-align: left;
|
|
vertical-align: top;
|
|
width: @name-value-table-name-width;
|
|
}
|
|
|
|
// TODO(el): Fix
|
|
.controls {
|
|
.limiter-control {
|
|
float: right;
|
|
padding: @vertical-padding / 2 0;
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.pagination-control {
|
|
padding: @vertical-padding / 2 0;
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
.sort-control {
|
|
float: right;
|
|
padding: @vertical-padding / 2 0;
|
|
margin-bottom: 0.25em;
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.sort-direction-control {
|
|
margin-bottom: 0.5em;
|
|
margin-left: 0.5em;
|
|
width: 1em;
|
|
}
|
|
|
|
.filter {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
.selection-info {
|
|
margin-left: 0.5em;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
letter-spacing: -1em; // Remove gap between content and ghost
|
|
}
|
|
|
|
.centered-ghost > * {
|
|
letter-spacing: normal;
|
|
}
|
|
|
|
.centered-ghost:after {
|
|
content: '';
|
|
display: inline-block;
|
|
height: 100%;
|
|
vertical-align: middle;
|
|
}
|