summaryrefslogtreecommitdiffstats
path: root/modules/doc/public/css/module.less
blob: da322a23f1027a8d21e5ab21dbdddbc7a8909e95 (plain)
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) 2014 Icinga Development Team | GPLv2+ */

// Mixins

.gradient(@a: @gray-lighter; @b: @gray-lightest) {
  background: @a;
  background: -webkit-gradient(linear, left top, left bottom, from(@a), to(@b));
  background: -webkit-linear-gradient(top, @a, @b);
  background: -moz-linear-gradient(top, @a, @b);
  background: -ms-linear-gradient(top, @a, @b);
  background: -o-linear-gradient(top, @a, @b);
  background: linear-gradient(to bottom, @a, @b);
}

// General styles

code {
  color: @icinga-blue;
  font-family: @font-family-fixed;
}

pre > code {
  color: inherit;
}

.chapter a {
  border-bottom: 1px dotted @gray-light;
  font-weight: @font-weight-bold;

  &:hover {
    border-bottom: 1px solid @text-color;
    text-decoration: none;
  }
}

.content {
  font-size: 1.167em;
}

.search-highlight {
  .rounded-corners();

  background: @icinga-blue;
  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 {
        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) {
  background: @body-bg-color;
}

td, th {
  padding: 0.5em;
}

td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  border-bottom: 2px solid @icinga-blue;
  font-weight: @font-weight-bold;
  text-align: left;
  text-transform: uppercase;
}

.icon {
  width: 33%;
  font-size: 1.5em;
  height: 2em;
  float: left;
}

.icon-code {
  font-size: 0.6em;
}