-
Notifications
You must be signed in to change notification settings - Fork 275
/
base.less
120 lines (99 loc) · 2.12 KB
/
base.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
@font-size: 0.750em; // 12px
@font-size-small: 0.833em; // 10px
@font-weight-bold: 600;
@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);
}
a {
// Reset defaults
color: inherit;
font-weight: @font-weight-bold;
text-decoration: none;
&:focus {
outline-color: @icinga-blue;
}
&:hover {
text-decoration: underline;
}
}
blockquote {
border-left: 6px solid @text-color-light;
color: @text-color-light;
font-family: @font-family-fixed;
margin: @vertical-padding 0 @vertical-padding / 2;
padding: @vertical-padding @horizontal-padding;
}
body {
background-color: @body-bg-color;
color: @text-color;
font-family: @font-family;
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.2;
}
h1, h2, h3, h4, h5, h6 {
border-bottom: 1px solid @gray-lighter;
font-size: 1em;
font-weight: @font-weight-bold;
margin: @vertical-padding 0;
}
h1 {
border-color: @gray-light;
font-size: 1.286em;
}
h2 {
font-size: 1.143em;
}
h3 {
font-size: 1.143em;
}
h5 {
font-size: @font-size-small;
}
h6 {
font-size: @font-size-small;
font-weight: normal;
}
p {
// Remove default margin
margin: 0;
}
pre {
background-color: @gray-lightest;
font-family: @font-family-fixed;
font-size: @font-size-small;
line-height: 1.5;
margin: @vertical-padding 0 @vertical-padding / 2;
padding: @vertical-padding @horizontal-padding;
white-space: pre-wrap;
}
table {
border-collapse: separate;
border-spacing: 0 1px;
width: 100%;
}
td {
padding: @vertical-padding / 2 @horizontal-padding / 2;
}
[class^="icon-"], [class*=" icon-"] {
// Smooth icons; ifont claims to have it, but it does not work in :before
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
&:before {
margin-left: 0;
}
}
@media print {
.dont-print {
display: none;
}
}