120 lines
2.7 KiB
Plaintext
120 lines
2.7 KiB
Plaintext
/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
|
|
|
// Mixins
|
|
|
|
.gradient(@a: ~"var(--gray-lighter, @{gray-lighter})"; @b: ~"var(--gray-lightest, @{gray-lightest})") {
|
|
background: extract-variable-default(@a);
|
|
background: @a;
|
|
background: -webkit-gradient(linear, left top, left bottom, from(extract-variable-default(@a, true)), to(extract-variable-default(@b, true)));
|
|
background: -webkit-gradient(linear, left top, left bottom, from(@a), to(@b));
|
|
background: -webkit-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
|
|
background: -webkit-linear-gradient(top, @a, @b);
|
|
background: -moz-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
|
|
background: -moz-linear-gradient(top, @a, @b);
|
|
background: -ms-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
|
|
background: -ms-linear-gradient(top, @a, @b);
|
|
background: -o-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
|
|
background: -o-linear-gradient(top, @a, @b);
|
|
background: linear-gradient(to bottom, extract-variable-default(@a, true), extract-variable-default(@b, true));
|
|
background: linear-gradient(to bottom, @a, @b);
|
|
}
|
|
|
|
// General styles
|
|
|
|
code {
|
|
.var(color, icinga-blue);
|
|
font-family: @font-family-fixed;
|
|
}
|
|
|
|
pre > code {
|
|
color: inherit;
|
|
}
|
|
|
|
.chapter a {
|
|
border-bottom: 1px dotted;
|
|
.var(border-bottom-color, gray-light);
|
|
font-weight: @font-weight-bold;
|
|
|
|
&:hover {
|
|
border-bottom: 1px solid;
|
|
.var(border-bottom-color, text-color);
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
font-size: 1.167em;
|
|
}
|
|
|
|
.search-highlight {
|
|
.rounded-corners();
|
|
|
|
.var(background, icinga-blue);
|
|
.var(color, text-color-on-icinga-blue);
|
|
padding: 0 0.3em 0 0.3em;
|
|
}
|
|
|
|
.toc {
|
|
counter-reset: li;
|
|
list-style-type: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
li {
|
|
counter-increment: li;
|
|
margin-top: 0.25em;
|
|
|
|
> .toc {
|
|
margin-left: 2em;
|
|
}
|
|
|
|
a {
|
|
&:before {
|
|
.var(color, icinga-blue);
|
|
content: counters(li,".") " ";
|
|
display: inline-block;
|
|
font-size: small;
|
|
font-weight: @font-weight-bold;
|
|
min-width: 1.5em;
|
|
padding: 0.25em;
|
|
text-align: center;
|
|
}
|
|
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Table styles
|
|
|
|
table {
|
|
margin-bottom: 1em;
|
|
width: 100%;
|
|
}
|
|
|
|
tbody > tr:nth-child(odd) {
|
|
.gradient()
|
|
}
|
|
|
|
tbody > tr:nth-child(even) {
|
|
.var(background, body-bg-color);
|
|
}
|
|
|
|
td, th {
|
|
padding: 0.5em;
|
|
}
|
|
|
|
td {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th {
|
|
border-bottom: 2px solid;
|
|
.var(border-bottom-color, icinga-blue);
|
|
font-weight: @font-weight-bold;
|
|
text-align: left;
|
|
text-transform: uppercase;
|
|
}
|