aboutsummaryrefslogtreecommitdiff
path: root/public/style.css
blob: e197769c6a2f7c08c7758d92ae2ca8388d06e987 (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
* {
    font-weight: 300;
    font-family: "Abel", sans-serif;

    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;

    --entries-b: #ccc;
    --entries-f: #111;
    --headers-b: #333;
    --headers-f: #fff;

    --mark: #ccc;
    --block: #ccc;
    --mensa: #777;
}

em {
    font-style: normal;
    text-decoration: underline;
}

mark {
  background-color: var(--mark);
}

table {
    width: 100%;
}

table td,
table tr {
    background: var(--headers-f);
    height: 4px;
}

table th,
table td:not(:empty) {
    background-color: var(--entries-b);
    color: var(--entries-f);
    padding: 0.5em 1em;
    position: relative
}

table th {
    background-color: var(--headers-b);
    color: var(--headers-f);
}

table th.tag {
    width: 20%;
}

table td {
    font-size: 12px;
}

table td.block {
    background-image: repeating-linear-gradient(314deg, var(--block), var(--block) 10px, transparent 10px, transparent 20px);
    background-size: 99.9999999% 99.9999999%; /* because 100% gives wrong scaling for some reason */
    border: 2px solid var(--block);
}
table td.mensa {
    background-image: repeating-linear-gradient(45deg, var(--mensa), var(--mensa) 10px, transparent 10px, transparent 20px);
    background-size: 99.9999999% 99.9999999%; /* because 100% gives wrong scaling for some reason */
    border: 2px solid var(--mensa);
}

div {
    position: absolute;
    display: flex;

    top: 0.4em;
    left: 0.4em;
    width: calc(100% - 0.8em);
    justify-content: space-between;
}