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

540 lines
8.6 KiB
Plaintext
Raw Normal View History

/* normalize 2.0 bs */
.content {
line-height: normal;
font-size: 1em;
}
2015-10-15 20:12:12 +02:00
h1 {
margin-top: 1em;
border-color: @gray-light;
}
a {
font-weight: normal;
}
pre {
font-size: 0.8em;
}
table.avp th {
font-size: inherit;
}
2015-10-15 17:47:45 +02:00
form input[type=submit] {
.button();
border-width: 1px;
}
form input[type=submit]:first-of-type {
border-width: 2px;
}
form p.description {
2015-10-15 17:47:45 +02:00
display: none;
padding-bottom: 1em;
color: #888;
padding-left: 32%;
font-size: 0.75em;
font-style: italic;
}
/*
2015-07-31 14:52:19 +02:00
input, select, select option, textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
*/
2015-07-31 14:52:19 +02:00
2015-10-15 17:54:04 +02:00
form ul.form-errors {
margin-bottom: 0.5em;
ul.errors li {
background: @color-critical;
font-weight: bold;
padding: 0.5em 1em;
color: white;
}
}
2015-10-15 20:06:05 +02:00
fieldset {
margin: 0;
padding: 0;
border: none;
legend {
2015-10-29 17:20:16 +01:00
margin: 0 0 0.5em 0;
2015-10-15 20:06:05 +02:00
font-size: 1.2em;
color: @icinga-blue;
border-bottom: 1px solid @gray-light;
display: block;
width: 100%;
}
}
2015-07-31 14:52:19 +02:00
select::-ms-expand, input::-ms-expand, textarea::-ms-expand { /* for IE 11 */
display: none;
}
select {
2015-09-14 16:57:51 +02:00
border: 1px solid #ddd;
2015-07-31 14:52:19 +02:00
cursor: pointer;
background: none;
2015-07-31 14:52:19 +02:00
}
input[type=text], textarea, select {
max-width: 36em;
min-width: 20em;
width: 63%;
2015-10-15 17:47:45 +02:00
padding-left: 0.5em;
border-style: solid;
border-color: transparent;
border-bottom-color: @gray-light;
border-width: 1px;
2015-11-02 16:20:50 +01:00
&.search {
background-color: transparent;
padding-left: 2em;
}
}
2015-10-15 17:47:45 +02:00
select::-moz-focus-inner { border: 0; }
select, input[type=text], textarea {
&:hover {
border-style: dotted dotted solid dotted;
border-color: @gray-light;
}
&:focus, &:focus:hover {
border-style: solid;
border-color: @icinga-blue;
outline: none;
}
2015-07-31 14:52:19 +02:00
}
select[value=""] {
color: blue;
2015-07-31 15:35:12 +02:00
border: 1px solid #666;
2015-07-31 14:52:19 +02:00
}
select option {
color: inherit;
padding-left: 0.5em;
}
select option[value=""] {
color: #aaa;
}
ul.main-actions {
margin: 0;
li {
list-style-type: none;
width: 20em;
height: 20em;
text-align: center;
display: block;
padding: 0;
float: left;
a {
i {
width: 100%;
height: 1.3em;
font-size: 8em;
display: inline-block;
line-height: 1em;
}
border: 1px solid #666;
padding: 1em;
margin: 0.5em;
font-size: 1.1em;
color: #666;
font-weight: bold;
display: block;
&:hover {
background-color: #666;
color: white;
text-decoration: none;
}
}
}
}
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 {
2015-10-29 17:20:16 +01:00
legend {
margin: 0;
}
dd, dt {
display: none;
}
legend::before {
// icon: right-dir
content: '\e820';
}
}
}
/* BEGIN Forms */
form dt label {
width: auto;
2015-07-31 14:52:19 +02:00
font-weight: normal;
font-size: inherit;
2015-07-31 14:52:19 +02:00
&.required {
2015-10-15 20:38:36 +02:00
&::after {
content: '*'
}
2015-07-31 14:52:19 +02:00
}
}
2015-07-02 15:32:00 +02:00
form dd {
display: inline;
2015-09-14 16:57:51 +02:00
min-height: 2em;
margin: 0;
}
2015-07-02 15:32:00 +02:00
form dt {
display: inline-block;
2015-07-31 14:52:19 +02:00
min-width: 12em;
2015-09-14 16:57:51 +02:00
min-height: 2em;
2015-07-31 14:52:19 +02:00
width: 30%;
2015-07-02 15:32:00 +02:00
}
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;
}
}
2015-07-30 10:28:25 +02:00
form div.hint {
font-size: 0.857em;
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;
}
}
2015-07-02 15:32:00 +02:00
/* END of Forms */
/*
table.simple {
width: 100%;
table-layout: auto !important;
th {
background: @colorPetrol;
color: white;
text-align: left;
padding: 0.5em 1em;
}
td {
padding: 0.3em 1em;
2015-09-30 08:39:39 +02:00
line-height: 3em;
}
th.actions, td.actions {
width: 6em;
text-align: right;
}
}
*/
table.log-properties {
width: 100%;
th {
width: 12em;
text-align: left;
}
td {
font-family: monospace;
}
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;
}
}
2015-07-27 22:45:51 +02:00
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 */
tr.running {
color: green;
}
table.syncrules {
tr td:first-child {
padding-left: 1.5em;
&::before {
font-family: 'ifont';
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.simple {
width: auto;
min-width: 100%;
border-collapse: separate;
2015-09-30 08:39:39 +02:00
font-size: 1em;
border-spacing: 0 1px;
caption {
caption-side: bottom;
text-align: right;
font-style: italic;
}
a {
color: inherit;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
thead {
th {
text-align: left;
border-bottom: 1px solid #888;
2015-09-30 08:39:39 +02:00
font-weight: bold;
padding: 0.3em 1em;
font-size: 1.2em;
}
}
tbody {
tr {
padding: 0;
margin: 0;
2015-07-31 15:35:12 +02:00
td:first-child {
border-left: 0.5em solid transparent;
}
td:last-child {
border-right: 0.5em solid transparent;
}
background-color: #fafcfe;
}
tr:nth-child(even) {
2015-07-31 15:35:12 +02:00
background-color: #f6f8fa;
}
tr[href]:hover {
2015-07-31 15:35:12 +02:00
background-color: #888;
td {
color: white;
}
}
tr.active td {
border-color: black;
}
th {
text-align: left;
margin: 0;
padding: 0;
2015-09-30 08:39:39 +02:00
padding: 0.4em 1em;
font-weight: bold;
}
td {
2015-09-30 08:39:39 +02:00
padding: 0.4em 1em;
margin: 0;
white-space: nowrap;
}
td.ok {
background-color: @colorOk;
}
td.nok {
background-color: @colorCritical;
}
}
}
/* END of Simple table, test */
2015-07-29 17:19:09 +02:00
.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'); }
2015-08-28 16:48:12 +02:00
.tree a.service { background-image: url('../img/director/service.png'); }
.tree a.command { background-image: url('../img/director/script.png'); }
2015-07-29 17:19:09 +02:00
.diff {
font-family: monospace;
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;
}
2015-09-30 08:52:20 +02:00
.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'); }