summaryrefslogtreecommitdiff
path: root/stylesheets/programmes.css
blob: 98a1a4f01b10cab047a3cabb3739ad53c207ca35 (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
#program-list {
    max-height: 60vh;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: darkblue #8ad;
}

#program-list::-webkit-scrollbar {
    width: 0.25em;
    height: 0.25em;
}

#program-list::-webkit-scrollbar-track {
    background: #8ad;
}

#program-list::-webkit-scrollbar-thumb {
    background: darkblue;
}

.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--cell-width), 1fr));
    grid-auto-rows: var(--cell-height);
    grid-gap: 0.8em;
}

.program {
    background-color: #099;
}

.program a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.program .summary {
    font-weight: bold;
}

details summary .duration {
    font-family: monospace;
}

@media (min-width: 40em) {
    main {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    main > div {
        padding: 1em;
    }

    .programs {
        --cell-width: 10em;
        --cell-height: 10em;
    }

    .program a {
        transition: color 0.5s;
    }
    .program:hover a {
        color: white;
    }

    .details.active > *:first-child {
        margin-top: 0;
    }
}

@media (max-width: 40em) {
    .programs {
        --cell-width: 8em;
        --cell-height: 4em;
    }
}