icingaweb2/public/css/icinga/base.less

118 lines
1.9 KiB
Plaintext
Raw Normal View History

/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
2015-11-04 14:07:50 +01:00
@font-size: 0.750em; // 12px
@font-size-small: 0.833em; // 10px
@font-weight-bold: 600;
2015-11-04 14:07:50 +01:00
@vertical-padding: 0.5em; // 6px
@horizontal-padding: 1em; // 12px
// Make padding not affect the final computed width of an element
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
.box-sizing(inherit);
}
2015-09-23 11:13:58 +02:00
a {
// Reset defaults
color: inherit;
2015-09-23 11:13:58 +02:00
text-decoration: none;
&:focus {
outline-color: @icinga-blue;
}
2015-09-23 11:13:58 +02:00
&:hover {
text-decoration: underline;
}
}
blockquote, p, pre {
margin: 0 0 1em 0;
}
.preformatted, pre {
font-family: @font-family-fixed;
white-space: pre-wrap;
}
2015-09-29 10:23:33 +02:00
blockquote {
border-left: 5px solid @gray-lighter;
padding: 0.667em 0.333em;
2015-09-29 10:23:33 +02:00
}
2015-11-04 12:05:02 +01:00
h1, h2, h3, h4, h5, h6 {
border-bottom: 1px solid @gray-lighter;
font-weight: @font-weight-bold;
margin: 0.556em 0 0.333em;
2015-11-04 12:05:02 +01:00
}
2015-09-23 11:04:59 +02:00
h1 {
font-size: 1.5em;
2015-09-23 11:04:59 +02:00
}
h2 {
font-size: 1.333em;
2015-11-04 12:05:02 +01:00
}
h3 {
font-size: 1.167em;
}
h4 {
font-size: 1em;
2015-11-04 12:05:02 +01:00
}
h5 {
2015-11-04 14:07:50 +01:00
font-size: @font-size-small;
2015-11-04 12:05:02 +01:00
}
h6 {
2015-11-04 14:07:50 +01:00
font-size: @font-size-small;
2015-09-23 11:04:59 +02:00
font-weight: normal;
}
2015-09-24 17:23:11 +02:00
pre {
background-color: @gray-lightest;
font-family: @font-family-fixed;
font-size: @font-size-small;
2015-09-24 17:23:11 +02:00
padding: @vertical-padding @horizontal-padding;
white-space: pre-wrap;
2015-09-24 17:23:11 +02:00
}
td, th {
padding: 0.333em; // 4px
}
2015-10-28 13:14:55 +01:00
[class^="icon-"], [class*=" icon-"] {
// Smooth icons; ifont claims to have it, but it does not work in :before
2015-10-28 13:14:55 +01:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
&:before {
margin-left: 0;
}
2015-10-28 13:14:55 +01:00
}
#layout {
background-color: @body-bg-color;
color: @text-color;
font-family: @font-family;
}
#main, #sidebar, #header {
font-size: @font-size;
// Set line-height w/o unit so that the line-height is dynamically calculated as font-size * line-height
line-height: 1.5;
}
2015-09-29 17:03:26 +02:00
@media print {
.dont-print {
display: none;
2015-09-29 17:03:26 +02:00
}
}