summaryrefslogtreecommitdiff
path: root/artistes.css
blob: e1e0d5d2d3dfbf491e5a63f25f0393240d326b74 (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
.main {
    display: flex;
    background: #f00;
}

.main-social {
    overflow: auto;
    flex-grow: 1;
    background: #f44;
}

.main div {
    padding: 2%;
}

.main #photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;

    position: sticky;
    top: 0;

    height: 80vh;

    background: #eee;
}

.main #bio {
    flex: 2;
    background: #bbb;
    padding-left: 8%;
    padding-right: 8%;
}

#photos img {
    position: relative;
    width: 8em;
    min-width: 7vw;
    max-width: 12vw;
    height: 38vh;
    object-fit: cover;
    object-position: center;
    border-color: #ddd;
    border-width: 1vh;
    border-style: solid;
    border-radius: 2vw;
    filter: grayscale(1);
    transition: filter 1s;
}

#photos img:hover {
    filter: none;
}

#photos img:nth-of-type(2) {
    top: 2.8vw;
    left: -2.8vw;
}

#photos img:nth-of-type(3) {
    top: -1.8vw;
    left: 2.8vw;
}

#photos img:nth-of-type(4) {
    top: 1.0vw;
}