summaryrefslogtreecommitdiff
path: root/stylesheets/quatuor.css
blob: f33c9e91239e8b65e9e5ae40063a99cb263c7304 (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
83
84
85
86
87
88
89
90
#bio .emph1 {
    font-weight: bold;
    color: #42662a;
}

#bio .emph2 {
    font-weight: bold;
    color: var(--gold);
}

#bio .emph3 {
    font-weight: bold;
    color: #404040;
}


#photos p.name {
    font-weight: bold;
}

#photos p.instrument {
    color: #805900;
}

@media (min-width: 40em) {
    main {
        font-size: 1.2rem;
        max-width: 55em;
        justify-self: center;
    }

    main #photos {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
        width: 100%;
    }

    #photos > a.member {
        display: block;
        height: 100%;
        text-decoration: none;
    }

    #photos img.portrait {
        /* Center portraits horizontally within a.member.  Alternative: set
         * a.member to display: flex, flex-direction: column. */
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-height: 60vh;
        filter: grayscale(0.5);
        transition: filter 1s, transform 1s;
    }

    #photos img.portrait:hover {
        filter: none;
        transform: scale(1.05);
    }

    #photos p {
        margin: 0;
    }
}

@media (max-width: 40em) {
    #photos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(20%, 50%));
        justify-content: space-evenly;
        width: 100%;
    }

    #photos > a.member {
        display: block;
        text-decoration: none;
    }

    #photos img.portrait {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-height: 60vh;
    }

    #photos p {
        margin: 0;
        text-align: center;
    }
}