aboutsummaryrefslogtreecommitdiff
path: root/css/_table.scss
blob: 4321a8b09447e1ac44baf73ab92e3bd3157d6882 (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
.table {
    $header-height: 3rem;
    $list-item-height: 2.5rem;
    $pd: 0.7em;
    position: relative;

    .table-header {
        $br: $pd;
        background-color: var(--body-bg-alt);
        width: 100%;
        height: $header-height;
        position: absolute;
        top: 0;
        left: 0;
        border-bottom: 1px solid var(--link-fg);
        font-weight: bold;
        font-size: 1.2em;
        border-radius: $br $br 0 0;
    }

    .table-row {
        display: grid;
        padding: 0 $pd;
        align-items: center;
        height: 100%;
        width: 100%;
    }

    .table-items {
        min-height: 40rem;
        max-height: 75vh;
        width: 100%;

        border: 1px solid var(--body-bg-alt);
        overflow-y: scroll;

        position: absolute;
        top: $header-height;
        left: 0;

        .table-row {
            height: $list-item-height;
            font-size: 1.2em;
        }

        .table-row:nth-child(even) {
            background-color: var(--body-bg-alt);
        }
    }
}