Repository navigation
Expand file tree
/
Copy pathresponsive.css
More file actions
160 lines (153 loc) · 6.98 KB
/
Copy pathresponsive.css
File metadata and controls
160 lines (153 loc) · 6.98 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/* Shared reading and touch layouts. Desktop compositions keep their existing grids. */
.page-tutorial .main { min-width: 0; }
.page-profile .tool-mark {
object-fit: contain;
image-rendering: auto;
background: transparent;
border: 0;
box-shadow: none;
}
@media (max-width: 1040px) {
html { scroll-padding-top: calc(var(--site-header-height, 64px) + 12px); }
html body { min-width: 0; }
html :is(.site-nav, .miku-nav).is-open {
max-height: calc(100dvh - var(--site-header-height, 64px));
overflow-y: auto;
overscroll-behavior: contain;
}
:is(.section-shell, .miku-shell, .archive-scene__inner) > * { min-width: 0; }
:is(.directory-row, .directory-card, .profile-block, .skill-column, .track-entry__name) {
min-width: 0;
overflow-wrap: anywhere;
}
.page-profile .profile-terminal { flex-wrap: wrap; gap: .45rem .7rem; }
.page-profile .profile-terminal-output { white-space: normal; overflow-wrap: anywhere; }
.page-profile .profile-offscreen :is(.ambient-slot--guitar, .ambient-object--guitar) {
grid-column: 2;
grid-row: 1 / span 2;
height: 360px;
}
html :is(.site-footer, .miku-footer) { grid-template-columns: minmax(0, 1fr) auto; }
html :is(.site-footer, .miku-footer) > span:nth-child(2) {
display: block;
grid-column: 1 / -1;
grid-row: 2;
font-size: .68rem;
line-height: 1.7;
overflow-wrap: anywhere;
}
html :is(.site-footer, .miku-footer) > a { grid-column: 2; grid-row: 1; }
}
@media (max-width: 700px) {
:is(.section-shell, .miku-shell, .archive-scene__inner) { max-width: calc(100% - 2rem); }
:is(.hero-lead, .profile-block p, .skill-column p, .directory-row small) { overflow-wrap: anywhere; }
html .work-band .section-heading h2 { white-space: normal; }
.page-profile .skill-column h3 { font-size: 1.18rem; line-height: 1.5; overflow-wrap: anywhere; }
.page-profile .profile-offscreen :is(.ambient-slot--guitar, .ambient-object--guitar) {
grid-column: 1;
grid-row: 2;
height: 340px;
}
.page-other .directory-hero { display: block; min-height: 0; }
.page-other .directory-hero .section-shell { padding-block: 3.5rem 1rem; }
.page-other .directory-hero > :is(.ambient-slot--nunchaku, .ambient-object--nunchaku) {
position: relative;
inset: auto;
width: min(calc(100% - 2rem), 420px);
height: 280px;
margin: 0 auto 2rem;
opacity: 1;
}
html .site-footer {
grid-template-columns: minmax(0, 1fr) auto;
gap: .75rem 1rem;
padding-inline: 1rem;
}
html .site-footer > span:nth-child(2) {
display: block;
grid-column: 1 / -1;
grid-row: 2;
font-size: .68rem;
line-height: 1.7;
overflow-wrap: anywhere;
}
html .miku-footer {
grid-template-columns: minmax(0, 1fr) auto;
gap: .75rem 1rem;
padding-inline: 1rem;
}
html .miku-footer > span:nth-child(2) {
display: block;
grid-column: 1 / -1;
grid-row: 2;
font-size: .68rem;
line-height: 1.7;
}
.miku-hero .hero-meta { flex-wrap: wrap; gap: .45rem 1rem; }
.miku-hero .hero-meta span:nth-child(2) { display: block; }
.miku-vector { object-fit: contain; object-position: center; }
.listening-head { flex-wrap: wrap; gap: 1rem; }
.page-articles { height: auto; overflow-y: auto; }
.page-articles .articles-console { height: auto; min-height: 100svh; overflow: visible; }
.page-articles .articles-rig { max-height: none; }
.page-articles .article-monitor__head { height: clamp(360px, 58svh, 440px); }
.page-articles .article-screen__topline { flex-wrap: wrap; gap: .35rem; padding-block: .4rem; }
.page-articles .article-scene {
overflow-y: auto;
justify-content: flex-start;
overscroll-behavior: contain;
touch-action: pan-y;
padding: 16px 18px;
}
.page-articles .article-scene :is(h2, p, .article-scene__read) { flex-shrink: 0; max-width: 100%; }
.page-articles .article-scene h2 { font-size: clamp(1.45rem, 6vw, 2rem); margin-block: .7rem; }
.page-articles .article-scene__read { min-height: 40px; margin-top: .75rem; }
.page-articles .article-screen__bottomline { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .5rem; }
.page-articles .article-screen__steps { order: 1; width: 100%; justify-content: center; }
.page-articles .article-screen__steps button { width: 32px; height: 16px; }
.page-articles .article-screen__actions button { width: 40px; height: 40px; }
.history-home :is(.hero, .section, .profile-card, .card, .hero-copy) { min-width: 0; }
.history-home .hero { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; }
.history-home .avatar-container { width: min(260px, 100%); height: auto; aspect-ratio: 1; }
.history-home :is(.meta, .stats) { min-width: 0; max-width: 100%; }
.history-home .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-home :is(a, p, h1, h2, .brand) { overflow-wrap: anywhere; }
.history-about :is(.container, .section-card, .hero, .hero-content, .skill-card) { min-width: 0; }
.history-about :is(a, p, h1, h2, .typed-wrap) { overflow-wrap: anywhere; }
.history-about .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
.page-tutorial :is(.main, .content) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.page-tutorial .content { padding-inline: 1rem; }
.page-tutorial :is(p, li, blockquote, td, th, .info, .warn, .tip, .content) { overflow-wrap: anywhere; }
.page-tutorial table { display: block; width: 100%; max-width: 100%; overflow-x: auto; }
.page-tutorial pre { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.page-tutorial code { overflow-wrap: anywhere; white-space: normal; }
.page-tutorial pre code { overflow-wrap: normal; white-space: pre; }
.page-tutorial .diagram { max-width: 100%; padding: 1rem; overflow-x: auto; }
.page-tutorial .diagram svg { min-width: 640px; max-width: none; }
.page-tutorial .sidebar { max-height: 100dvh; overscroll-behavior: contain; }
}
@media (max-height: 520px) and (max-width: 1040px) {
.page-articles { height: auto; overflow-y: auto; }
.page-articles .articles-console { height: auto; min-height: 100svh; overflow: visible; }
.page-articles .articles-rig { max-height: none; }
.page-articles .article-monitor__head { height: 360px; aspect-ratio: auto; }
.page-articles .article-scene { justify-content: flex-start; overflow-y: auto; padding: 18px; }
.page-articles .article-scene :is(h2, p, .article-scene__read) { flex-shrink: 0; max-width: 100%; }
.page-articles .article-scene h2 { font-size: 2rem; }
}
@media (max-width: 520px) {
html :is(.site-header, .miku-header) { padding-inline: 12px; }
html :is(.wordmark, .miku-wordmark) { min-width: 0; gap: 6px; }
html :is(.wordmark-mark, .miku-wordmark > b) { width: 32px; height: 32px; }
html .wordmark > span:last-child, html .miku-wordmark > span {
display: block;
max-width: 4.2rem;
white-space: normal;
font-size: 10px;
line-height: 1.4;
}
html :is(.header-tools, .miku-tools) { gap: 4px; }
.auto-browse-menu { max-height: calc(100dvh - 88px); overflow-y: auto; }
}