summaryrefslogtreecommitdiff
path: root/stylesheets/membre.css
blob: dc2c7e39ba13b348a297c02a5304ba87b0357acf (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
main {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: auto 1fr;
}

main > .bio-title {
    grid-column: 1;
    grid-row: 1;
}

main > .bio-title > * {
    margin: 0;
}

h1.name {
    text-transform: uppercase;
    font-size: xx-large;
    color: var(--emph1-color);
}

h2.instrument {
    font-weight: normal;
    font-size: x-large;
    color: var(--emph2-color);
}

.bio {
    grid-column: 1;
    grid-row: 2;
    margin-right: 0.5em;
}

.bio dt, .bio dd {
    display: inline;
}

.bio dt {
    font-weight: 600;
    color: var(--emph2-color);
}

.bio dd {
    margin-left: 0;
}

.bio dl {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

main > img {
    display: block;
    grid-column: 2;
    grid-row: 1 / -1;

    width: 100%;
    background-size: cover;
}

@media (min-width: 80em)
{
    /* CSS 2 appendix D: the vertical margin for h1 should be .67em, with
     * font-size 2em. */
    main {
        --main-top-margin: 1.33em;
    }

    main > .bio-title {
        margin: var(--main-top-margin) 0;
    }

    main > img {
        margin-top: var(--main-top-margin);
        position: sticky;
        top: 2em;
    }
}

@media (max-width: 80em)
{
    main {
        grid-template-columns: 3fr 2fr;
        grid-template-rows: auto auto;
        align-items: center;
        justify-items: center;
    }

    main > .bio-title {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    main > img {
        grid-column: 2;
        grid-row: 1;
    }

    main > .bio {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 40em)
{
    main > .bio-title > h1 {
        font-size: 1.2em;
    }
    main > .bio-title > h2 {
        font-size: 1.2em;
    }
}