summaryrefslogtreecommitdiff
path: root/programmes.css
blob: ecfcbcd4dc1e75380f987a55a0ffa915dcedf18f (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
main {
    display: grid;
    grid-template-columns: 50% 50%;
}

main > div {
    padding: 2%;
    overflow: auto;
}

#program-list, #program-details {
    background-color: #dbb;
}

.programs {
    display: grid;
    grid-auto-rows: 14em;
    grid-template-columns: repeat(auto-fit, 40%);
    grid-gap: 0.8em;
}

.program {
    position: relative;
    background-color: #fb8;
}

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

.program:hover a {
    color: white;
}

.program .summary {
    font-weight: bold;
    text-align: center;
    transition: 0.5s;
}

.program:hover .summary {
    opacity: 1;
}

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