summaryrefslogtreecommitdiff
path: root/commun.css
blob: d03cf959c949746cb97d99a7eb574114afda1642 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
body {
    height: 100vh;
    display: grid;
    grid-template-columns: 11fr 1fr;
    grid-template-rows: auto 1fr auto;
    margin: 0;
}

header.banner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 3fr 8fr 1fr;
    align-items: center;
    background-color: #dfd;
}

header.banner .brand {
    grid-column: 1;
    padding-left: 2vw;
    padding-right: 2vw;
}

header.banner .brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

header.banner .brand img {
    transition: filter 1s;
}
header.banner .brand h1 {
    transition: color 1s;
}
header.banner .brand:hover img {
    filter: brightness(100%) sepia(100%);
}
header.banner .brand:hover h1 {
    color: #d82;
}

.brand h1 {
    margin: 0;
}

.brand img {
    height: 3em;
    filter: brightness(0%);
}

nav {
    grid-column: 2;
    padding-right: 2vw;
}

nav ol {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    padding-left: 0;
    text-align: center;
    list-style-type: none;
}

nav ol li {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 0.1em;
}

nav ol li.current {
    background: white;
}

nav ol li a {
    text-decoration: none;
}

.lang {
    grid-column: 3;
    background-color: black;
    border-radius: 50% 50% 50% 0;
    color: white;
    padding: 0.5em;
    margin: auto;
}

main {
    grid-row: 2;
    grid-column: 1;
    padding-left: 4%;
    background-color: #fdd;
}

footer.social {
    grid-row: 2;
    grid-column: 2;

    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;

    background-color: #ddf;
}

.social img {
    width: 2em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.contact {
    /* Ideally should be just: */
    /* writing-mode: sideways-lr; */
    /* but of course We Can't Have Nice Things. */
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    margin: 0;
    margin-inline-start: 0.5em;
}

.contact a {
    text-decoration: none;
}

footer.legal {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    margin: auto;
    font-size: 75%;

    background-color: #ffd
}