-
Notifications
You must be signed in to change notification settings - Fork 275
/
base.less
150 lines (122 loc) · 2.66 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */
// Gray colors
@gray: #7F7F7F;
@gray-light: #C9C9C9;
@gray-lighter: #EEEEEE;
@gray-lightest: #F7F7F7;
// Icinga colors
@icinga-blue: #0095BF;
@icinga-blue-dark: #AA95BF;
@color-ok: #44bb77;
@color-warning: #ffaa44;
@color-warning-handled: #ffcc66;
@color-critical: #ff5566;
@color-critical-handled: #ff99aa;
@color-unknown: #aa44ff;
@color-unknown-handled: #cc77ff;
@color-unreachable: #aa44ff;
@color-unreachable-handled: #cc77ff;
@color-pending: #77aaff;
// Background color for <body>
@body-bg-color: #fff;
// Text colors
@text-color: #535353;
@text-color-inverted: @body-bg-color;
@text-color-light: @gray;
// Text color on <a>
@link-color: @text-color;
// Font families
@font-family: Calibri, Helvetica, sans-serif;
@font-family-fixed: "Liberation Mono", "Lucida Console", Courier, monospace;
@font-family-wide: Tahoma, Verdana, sans-serif;
// Font sizes
@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;
text-decoration: none;
&:focus {
outline-color: @icinga-blue;
}
&:hover {
text-decoration: underline;
}
}
// Default margin for block text
blockquote, p, pre {
margin: 0 0 1em 0;
}
blockquote {
border-left: 5px solid @gray-lighter;
padding: 0.667em 0.333em;
}
h1, h2, h3, h4, h5, h6 {
font-weight: @font-weight-bold;
margin: 0.556em 0 0.333em;
}
h1 {
border-bottom: 1px solid @gray-lighter;
font-size: 1.333em;
}
h2 {
font-size: 1.333em;
}
h3 {
font-size: 1.167em;
}
h4 {
font-size: 1em;
}
h5 {
font-size: @font-size-small;
}
h6 {
font-size: @font-size-small;
font-weight: normal;
}
pre {
background-color: @gray-lightest;
font-family: @font-family-fixed;
font-size: @font-size-small;
padding: @vertical-padding @horizontal-padding;
white-space: pre-wrap;
}
td, th {
padding: 0.333em; // 4px
}
[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;
}
a > i::before {
margin-left: 0;
}
#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;
}
@media print {
.dont-print {
display: none;
}
}