Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
111 lines (96 loc) · 1.87 KB
/
Copy pathstyle.css
File metadata and controls
111 lines (96 loc) · 1.87 KB
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
:root {
color-scheme: light;
background: #fff;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
min-height: 100%;
max-width: 100%;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior-x: none;
touch-action: pan-y;
}
body { background: #fff; }
.ocean {
height: 100vh;
height: 100svh;
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
place-items: center;
gap: clamp(16px, 3vh, 32px);
padding: clamp(18px, 4.2vw, 80px);
}
.school-frame {
position: relative;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
container-type: size;
overflow: clip;
}
.school {
position: absolute;
top: 50%;
left: 50%;
display: block;
width: 100%;
max-width: 1500px;
min-height: 0;
max-height: 100%;
height: 100%;
object-fit: contain;
transform: translate(-50%, -50%);
user-select: none;
}
@media (aspect-ratio < 1/1) {
.school {
width: 100cqh;
height: 100cqw;
max-width: none;
max-height: none;
transform: translate(-50%, -50%) rotate(90deg);
}
}
.proverb {
margin: 0;
max-width: 100%;
color: #182d49;
font-family: "Noto Sans", sans-serif;
font-size: 36px;
font-weight: 300;
line-height: 1.6;
text-align: center;
white-space: nowrap;
}
.fonts-loading .proverb { visibility: hidden; }
@media (max-width: 900px) {
.proverb { font-size: 28px; }
}
@media (max-width: 700px) {
.proverb { font-size: 20px; }
}
@media (max-width: 500px) {
.proverb { font-size: 14px; }
}
@media (max-width: 350px) {
.proverb { font-size: 12px; }
}
@media (max-width: 600px) {
.ocean { padding: 20px 12px; }
}
@media print {
@page { size: landscape; margin: 12mm; }
.ocean { height: auto; padding: 0; }
.school-frame { height: auto; container-type: normal; }
.school {
position: static;
width: 100%;
height: auto;
max-width: 100%;
max-height: none;
transform: none;
}
}