aboutsummaryrefslogtreecommitdiffstats
path: root/src/less/include/common.less
blob: 4aa433f8505286ee02bf7c9172c13811975100ce (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
@import 'colors';

a {
  text-decoration: none;

  @media (prefers-color-scheme: dark) {
    color: @dark-primary;

    &:visited {
      color: darken(@dark-primary, 10%);
    }
  }

  @media (prefers-color-scheme: light) {
    color: @light-primary;

    &:visited {
      color: darken(@light-primary, 10%);
    }
  }

  &:hover {
    text-decoration: underline;
  }

  img {
    border: none;
  }
}

body {
  border: 0;
  font-family: "PT Sans", "Liberation Sans", "DejaVu Sans", "Tahoma", "Verdana", "Arial", sans-serif;
  font-size: 15pt;
  margin: 0;
  padding: 0;
  line-height: 160%;

  @media (prefers-color-scheme: dark) {
    background-color: @dark-background;
    color: @dark-foreground;
  }

  @media (prefers-color-scheme: light) {
    background-color: @light-background;
    color: @light-foreground;
  }
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.3rem;
  font-weight: bold;
}

h5 {
  font-size: 1.2rem;
  font-weight: bold;
}

h6 {
  font-size: 1.1rem;
  font-weight: bold;
}

pre {
  font-family: "Fantasque Sans Mono", "PT Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier new", monospace;
  font-size: 14pt;
  line-height: 100%;
}