-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.css
80 lines (76 loc) · 1.54 KB
/
page.css
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
html {
--easing-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
--easing-decelerate: cubic-bezier(0.0, 0.0, 0.2, 1);
--easing-accelerate: cubic-bezier(0.4, 0.0, 1, 1);
font-family: system-ui, 'Roboto', sans-serif;
font-weight: 400;
color: var(--color-text);
--h-diff: -1;
}
html[data-theme=light] {
--color-bg: #CCC;
--color-text: #111;
}
html,
html[data-theme=dark] {
--color-bg: #111;
--color-text: #EEE;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
}
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
justify-content: center;
align-items: center;
--takeoff-height: 120%;
background-color: var(--color-bg);
}
main {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 14fr 72fr 14fr;
--width: min(calc(1440/612 * 90vh), 75vw);
}
.la-switch {
grid-column: 1 / 4;
grid-row: 1 / 2;
transform: translateZ(0);
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2));
}
html[data-theme=dark] .la-switch {
filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .05));
}
.nintendo-switch {
--width: inherit;
justify-self: center;
}
.warning {
display: none;
}
* {
/* Empêche le bleu moche quand on clique sur un truc sous chrome Android */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@media screen and (max-width: 800px) {
.warning {
display: block;
max-width: min(70ch, 90vw);
grid-column: 1 / -1;
margin: 16px;
text-wrap: balance;
text-wrap: pretty;
}
}
@media screen and (max-width: 1439px) {
main {
--width: 90vw;
}
}