icingaweb2-module-director/public/css/module.less

719 lines
12 KiB
Plaintext

/* normalize 2.0 bs */
.content a {
font-weight: normal;
text-decoration: dotted underline;
}
h1 {
margin-bottom: 0.5em;
}
table.common-table a {
text-decoration: none;
}
span.disabled {
cursor: no-drop;
color: @gray-light;
}
pre.disabled {
color: @gray-light;
}
pre {
background: none;
}
pre.logfile {
font-size: 0.875em;
padding: 0;
}
table.avp th {
font-size: inherit;
}
.content form {
margin-bottom: 2em;
}
form input[type=submit] {
.button();
border-width: 1px;
margin-top: 0.5em;
}
form input[type=submit]:first-of-type {
border-width: 2px;
}
form p.description {
display: none;
padding-bottom: 1em;
color: #888;
padding-left: 32%;
font-style: italic;
}
/*
input, select, select option, textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
*/
form ul.form-errors {
margin-bottom: 0.5em;
ul.errors li {
background: @color-critical;
font-weight: bold;
padding: 0.5em 1em;
color: white;
}
}
fieldset {
margin: 0;
padding: 0;
border: none;
legend {
margin: 0 0 0.5em 0;
font-size: 1.2em;
color: @icinga-blue;
border-bottom: 1px solid @gray-light;
display: block;
width: 100%;
}
}
select::-ms-expand, input::-ms-expand, textarea::-ms-expand { /* for IE 11 */
display: none;
}
select {
border: 1px solid #ddd;
cursor: pointer;
background: none;
}
input[type=text], input[type=password], textarea, select {
max-width: 36em;
min-width: 20em;
width: 63%;
padding-left: 0.5em;
border-style: solid;
border-color: transparent;
border-bottom-color: @gray-light;
border-width: 1px 1px 1px 3px;
&.search {
background: transparent url("../img/icons/search.png") no-repeat scroll 0.5em center / 1em 1em;
padding-left: 2em;
}
}
select::-moz-focus-inner { border: 0; }
select, input[type=text], textarea {
&:hover {
border-style: dotted solid dotted solid;
border-color: @gray-light;
}
&:focus, &:focus:hover {
border-style: solid;
border-color: @icinga-blue;
outline: none;
}
}
select[value=""] {
color: blue;
border: 1px solid #666;
}
select option {
color: inherit;
padding-left: 0.5em;
}
select option[value=""] {
color: #aaa;
}
ul.main-actions {
margin: 0;
padding: 0;
li {
list-style-type: none;
text-align: left;
display: inline-block;
padding: 0;
clear: both;
width: 24%;
min-width: 16em;
vertical-align: top;
margin: 0 0.5% 0.5% 0;
a {
i {
height: 1.6em;
font-size: 3em;
display: block;
height: 100%;
float: left;
line-height: 1em;
margin-right: 0.3em;
}
&.state-critical i {
color: @color-critical;
}
&.state-warning i {
color: @color-warning;
}
&.state-ok i {
color: @color-ok;
}
&.state-unknown i {
color: @color-unknown;
}
&.state-pending i {
color: @color-pending;
}
padding: 1em;
font-size: 1.1em;
color: #666;
font-weight: bold;
display: block;
text-decoration: none;
height: 12em;
overflow: hidden;
&:hover {
background-color: #666;
color: white;
text-decoration: none;
}
}
p {
font-weight: normal;
margin-bottom: 0.5em;
}
}
}
#layout.compact-layout ul.main-actions {
li {
width: 32%;
margin: 0 1% 1% 0;
a { height: 11em; }
> a > i {
font-size: 2.4em;
}
}
}
#layout.poor-layout ul.main-actions {
li {
width: 30%;
margin: 0 0.5% 0.5% 0;
a { height: 11em; }
> a > i {
font-size: 2.4em;
}
}
}
#layout.minimal-layout ul.main-actions {
li {
width: 48%;
margin: 0 1% 1% 0;
> a > i {
font-size: 1.8em;
}
}
}
#layout.twocols ul.main-actions {
li {
width: 48%;
margin: 0 1% 1% 0;
> a > i {
font-size: 1.8em;
}
}
}
fieldset {
legend {
padding-left: 1em;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
&:hover {
border-style: dotted;
}
&::before {
// icon: down-dir
font-family: 'ifont';
content: '\e81d';
margin-left: -1em;
padding-top: 0.25em;
float: left;
color: inherit;
}
}
&.collapsed {
legend {
margin: 0;
}
dd, dt {
display: none;
}
legend::before {
// icon: right-dir
content: '\e820';
}
}
}
/* BEGIN Forms */
form dt label {
width: auto;
font-weight: normal;
font-size: inherit;
&.required {
&::after {
content: '*'
}
}
}
form dd {
display: inline;
min-height: 2.5em;
vertical-align: top;
margin: 0;
}
form dt {
display: inline-block;
vertical-align: top;
min-width: 12em;
min-height: 2.5em;
width: 30%;
}
form dd:after {
display: block;
content: '';
}
form textarea {
height: auto;
}
form dd ul.errors {
list-style-type: none;
padding-left: 0.3em;
font-size: 0.857em;
li {
color: @colorCritical;
padding: 0.3em;
}
}
form div.hint {
padding: 1em;
background-color: #f2f4fd;
border: 1px solid lightgrey;
margin: 1em 0;
pre {
font-style: normal;
background-color: white;
font-size: 1.25em;
margin: 0;
padding: 1em;
}
}
/* END of Forms */
table.log-properties {
table-layout: fixed;
width: 100%;
td {
font-family: @font-family-fixed;
word-break: break-all;
}
span {
padding: 0.3em 1em;
}
}
p.error {
color: white;
padding: 1em 2em;
background-color: @colorCriticalHandled;
border: 3px solid @colorCritical;
a {
color: inherit;
font-weight: bold;
}
}
table.tinystats {
font-size: 0.7em;
float: right;
width: 16em;
thead {
th {
width: 7em;
text-align: right;
}
th:first-child {
width: auto;
}
}
tbody {
th, td {
text-align: right;
}
}
}
/* Simple table, test */
table.syncstate {
tr td:first-child {
padding-left: 2em;
&::before {
font-family: 'ifont';
// icon-help:
content: '\e85b';
float: left;
font-weight: bold;
margin-left: -1.5em;
line-height: 1.5em;
}
}
tr.in-sync td:first-child::before {
content: '\e803';
color: @color-ok;
}
tr.pending-changes td:first-child::before {
content: '\e864';
color: @color-warning;
}
tr.failing td:first-child::before {
content: '\e804';
color: @color-critical;
}
}
table.icinga-objects {
tr td:first-child {
padding-left: 2em;
&::before {
font-family: 'ifont';
// icon-wrench:
content: '\e83d';
float: left;
font-weight: bold;
margin-left: -1.5em;
line-height: 1.5em;
}
}
tr.icinga-object-external td:first-child::before {
color: @gray;
// icon-pin
content: '\e879';
}
tr.icinga-object td:first-child::before {
color: @text-color;
// icon-thumbs-up
// content: '\e867';
// icon-ok
content: '\e803';
}
tr.icinga-template td:first-child::before {
color: @gray-light;
// icon-paste
content: '\e817';
}
tr.icinga-apply td:first-child::before {
color: @text-color;
// resize-full-alt
content: '\e829';
}
}
table.deployment-log {
tr td:nth-child(2), tr th:nth-child(2) {
text-align: right;
padding-right: 1em;
}
tr th:first-child {
padding-left: 2em;
}
tr td:first-child {
padding-left: 2em;
&::before {
font-family: 'ifont';
// icon-help:
content: '\e85b';
float: left;
font-weight: bold;
margin-left: -1.5em;
line-height: 1.5em;
}
}
tr.succeeded td:first-child::before {
// icon-ok
color: @color-ok;
content: '\e803';
}
tr.pending td:first-child::before {
color: @gray;
// icon-spinner
content: '\e874';
.animate(spin 2s infinite linear);
}
tr.failed td:first-child::before {
// icon-ok
color: @color-critical;
content: '\e804';
}
tr.running td, tr.running td a {
font-weight: bold;
}
}
.tree li a {
display: inline-block;
padding-left: 2.4em;
line-height: 2em;
text-decoration: none;
color: #777;
outline: 0;
background-repeat: no-repeat;
background-position: 0.8em 0.4em;
}
.tree a.root { background-image: url('../img/director/globe.png'); }
.tree a.host { background-image: url('../img/director/server.png'); }
.tree a.service { background-image: url('../img/director/service.png'); }
.tree a.command { background-image: url('../img/director/script.png'); }
.diff {
font-family: @font-family-fixed;
white-space: pre-wrap;
del, ins {
text-decoration: none;
}
del {
color: @colorCritical;
background-color: #fdd;
}
ins {
color: @colorOk;
background-color: #dfd;
}
}
div.diff {
/* line-height: 1.8em;
height: 1.8em;*/
margin: 0;
padding: 0;
overflow: hidden;
}
.diff.old ins {
display: none;
}
.diff.new del {
display: none;
}
.tree li a {
display: inline-block;
padding-left: 2.4em;
line-height: 2em;
text-decoration: none;
color: #777;
outline: 0;
background-repeat: no-repeat;
background-position: 0.8em 0.4em;
}
.tree a.root { background-image: url('../img/director/globe.png'); }
.tree a.abstract { background-image: url('../img/director/tree.png'); }
.tree a.object { background-image: url('../img/director/leaf.gif'); }
form.editor {
select, input[type=text] {
background: white;
max-width: auto;
min-width: auto;
width: auto;
}
.tree li a {
padding: 0;
}
}
/** php-diff **/
.Differences {
width: 100%;
table-layout: fixed;
empty-cells: show;
}
.Differences thead {
display: none;
}
.Differences thead th {
text-align: left;
padding-left: 4 / 14 * 16em;
}
.Differences tbody th {
text-align: right;
width: 4em;
padding: 1px 2px;
border-right: 1px solid @gray-light;
background: @gray-lightest;
font-weight: normal;
vertical-align: top;
}
.Differences tbody td {
width: 50%;
.preformatted();
word-break: break-all;
}
@color-diff-ins: #bfb;
@color-diff-del: #faa;
@color-diff-changed-old: #fdd;
@color-diff-changed-new: #efe;
.DifferencesSideBySide {
ins, del {
text-decoration: none;
}
.ChangeInsert {
td.Left {
background: @gray-lighter;
}
td.Right {
background: @color-diff-ins;
}
}
.ChangeDelete {
td.Left {
background: @color-diff-del;
}
td.Right {
background: @gray-ligher;
}
}
.ChangeReplace {
td.Left {
background: @color-diff-changed-old;
del {
background: @color-diff-del;
}
}
td.Right {
background: @color-diff-changed-new;
ins {
background: @color-diff-ins;
}
}
}
}
.Differences .Skipped {
background: @gray-lightest;
}
.DifferencesInline .ChangeReplace .Left,
.DifferencesInline .ChangeDelete .Left {
background: #fdd;
}
.DifferencesInline .ChangeReplace .Right,
.DifferencesInline .ChangeInsert .Right {
background: #dfd;
}
.DifferencesInline .ChangeReplace ins {
background: #9e9;
}
.DifferencesInline .ChangeReplace del {
background: #e99;
}
/** END of php-diff **/