icingaweb2/modules/doc/public/css/module.less

120 lines
2.7 KiB
Plaintext
Raw Normal View History

/*! Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
2016-01-07 10:21:41 +01:00
// Mixins
2014-11-20 15:52:47 +01:00
.gradient(@a: ~"var(--gray-lighter, @{gray-lighter})"; @b: ~"var(--gray-lightest, @{gray-lightest})") {
background: extract-variable-default(@a);
2014-11-20 15:52:47 +01:00
background: @a;
background: -webkit-gradient(linear, left top, left bottom, from(extract-variable-default(@a, true)), to(extract-variable-default(@b, true)));
2016-01-05 16:56:03 +01:00
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));
2016-01-05 16:56:03 +01:00
background: -webkit-linear-gradient(top, @a, @b);
background: -moz-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
2016-01-05 16:56:03 +01:00
background: -moz-linear-gradient(top, @a, @b);
background: -ms-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
2016-01-05 16:56:03 +01:00
background: -ms-linear-gradient(top, @a, @b);
background: -o-linear-gradient(top, extract-variable-default(@a, true), extract-variable-default(@b, true));
2016-01-05 16:56:03 +01:00
background: -o-linear-gradient(top, @a, @b);
background: linear-gradient(to bottom, extract-variable-default(@a, true), extract-variable-default(@b, true));
2016-01-05 16:56:03 +01:00
background: linear-gradient(to bottom, @a, @b);
2014-11-20 15:52:47 +01:00
}
2016-01-07 10:21:41 +01:00
// General styles
code {
2021-06-28 16:22:19 +02:00
.var(color, icinga-blue);
2015-10-01 02:58:54 +02:00
font-family: @font-family-fixed;
2014-11-20 15:52:47 +01:00
}
pre > code {
2015-10-01 02:58:54 +02:00
color: inherit;
2014-05-23 14:17:37 +02:00
}
2016-01-07 10:42:53 +01:00
.chapter a {
border-bottom: 1px dotted;
.var(border-bottom-color, gray-light);
2016-04-13 15:28:08 +02:00
font-weight: @font-weight-bold;
2016-01-07 10:42:53 +01:00
&:hover {
border-bottom: 1px solid;
.var(border-bottom-color, text-color);
2016-01-07 10:42:53 +01:00
text-decoration: none;
}
}
2016-01-07 10:21:41 +01:00
.content {
font-size: 1.167em;
}
.search-highlight {
.rounded-corners();
2021-06-28 16:22:19 +02:00
.var(background, icinga-blue);
.var(color, text-color-on-icinga-blue);
padding: 0 0.3em 0 0.3em;
}
2016-01-07 09:55:44 +01:00
.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 {
2021-06-28 16:22:19 +02:00
.var(color, icinga-blue);
2016-03-31 17:38:34 +02:00
content: counters(li,".") " ";
2016-01-07 09:55:44 +01:00
display: inline-block;
font-size: small;
2016-03-31 17:38:34 +02:00
font-weight: @font-weight-bold;
2016-01-07 09:55:44 +01:00
min-width: 1.5em;
padding: 0.25em;
text-align: center;
}
display: block;
}
}
}
2016-01-07 10:21:41 +01:00
// Table styles
table {
margin-bottom: 1em;
width: 100%;
}
tbody > tr:nth-child(odd) {
.gradient()
}
tbody > tr:nth-child(even) {
.var(background, body-bg-color);
2016-01-07 10:21:41 +01:00
}
td, th {
padding: 0.5em;
}
td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
th {
2021-06-28 16:22:19 +02:00
border-bottom: 2px solid;
.var(border-bottom-color, icinga-blue);
2016-01-07 10:21:41 +01:00
font-weight: @font-weight-bold;
text-align: left;
text-transform: uppercase;
}