-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
231 lines (192 loc) · 4.48 KB
/
style.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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/*
Copyright (C) 2024 Nintendo Homebrew
Copyright (C) 2024 emiyl
SPDX-License-Identifier: MIT
*/
/* hacks-guide change start: Disable container titles */
.custom-block {
/* original: 16px 16px 8px */
padding: 8px 16px 8px;
}
.custom-block-title {
display: none;
}
/* hacks-guide change end: Disable container titles */
/* hacks-guide change start: Adjust summary margins on detail containers */
.custom-block.details summary {
/* original: 16px 16px 8px */
margin: 8px 0 8px;
}
/* hacks-guide change end: Adjust summary margins on detail containers */
/* hacks-guide change start: set display:inline on images */
img {
display: inline;
}
/* hacks-guide change end: set display:inline on images */
/* hacks-guide change start: add version selector */
select {
font-weight: bold;
font-size: 100%;
cursor: pointer;
border: 2px solid var(--vp-c-border);
background-color: var(--vp-c-bg-soft);
padding: .25em;
margin-bottom: 1em;
border-radius: 4px;
appearance: auto;
}
input {
font-weight: bold;
font-size: 100%;
cursor: pointer;
border: 2px solid var(--vp-c-border);
padding: .25em;
margin-bottom: 1em;
border-radius: 4px;
appearance: auto;
}
input:hover {
background-color: var(--vp-c-bg-soft);
}
.selectversion {
text-align: center;
border: 1px solid var(--vp-c-divider);
}
img.tableimage {
height: 40%;
width: 40%;
}
table.modeltable {
display: table;
text-align: center;
width: 100%;
}
input[type="radio"] {
width: 50px;
height: 25px;
transition: none;
}
/* hacks-guide change end: add version selector */
/* hacks-guide change start: add tabs */
.tab-container {
display: flex;
flex-wrap: wrap;
section {
display: contents;
> input {
display: none;
}
.tab-link {
border: 1px solid var(--vp-c-border);
border-bottom-width: 0;
padding: 0.5rem 1rem;
transition: 150ms ease;
cursor: pointer;
}
@media screen and (min-width: 576px) {
html:not([dir=rtl]) & {
&:not(:first-of-type) .tab-link {
border-left-width: 0px;
}
&:first-of-type .tab-link {
border-top-left-radius: 0.25rem;
}
&:last-of-type .tab-link {
border-top-right-radius: 0.25rem;
}
}
html[dir=rtl] & {
&:not(:first-of-type) .tab-link {
border-right-width: 0px;
}
&:first-of-type .tab-link {
border-top-right-radius: 0.25rem;
}
&:last-of-type .tab-link {
border-top-left-radius: 0.25rem;
}
}
}
}
.tab {
display: none;
padding: .5rem 1.5rem;
order: 999;
width: 100%;
border: 1px solid var(--vp-c-border);
h1,h2,h3,h4,h5,h6 {
padding-top: 1.1em;
margin-top: 0;
}
.header-anchor {
display: none;
}
@media screen and (min-width: 576px) {
border-radius: 0 0.25rem 0.25rem 0.25rem;
html[dir=rtl] & {
border-radius: 0.25rem 0 0.25rem 0.25rem;
}
}
/*@media screen and (max-width: 575px) {
border-radius: 0;
border-bottom-width: 0;
order: 0;
}*/
}
@media screen and (max-width: 575px) {
.tab-last {
border-bottom-width: 1px;
border-radius: 0 0 0.25rem 0.25rem;
}
}
input:checked + .tab-link {
border-radius: 0;
}
input:checked + .tab-link + .tab {
display: block;
}
input:checked + .tab-link:not(:hover):not(:active):not(:focus) {
background-color: var(--vp-c-border);
border-color: var(--vp-c-border);
}
.tab-link:hover, .tab-link:active, .tab-link:focus {
background-color: var(--vp-c-border-dark);
border-color: var(--vp-c-border-dark);
}
}
/* hacks-guide change end: add tabs */
/* hacks-guide change start: tone down light mode bg */
:root {
--vp-c-bg: #f6f6f6;
--vp-c-bg-alt: #ececec;
--vp-c-bg-elv: #f6f6f6;
--vp-c-bg-soft: #ececec;
}
.dark {
--vp-c-bg: #1b1b1f;
--vp-c-bg-alt: #161618;
--vp-c-bg-elv: #202127;
--vp-c-bg-soft: #202127;
}
/* hacks-guide change end: tone down light mode bg */
/* hacks-guide change start: disable transition on homepage navbar */
.VPNavBar.home {
transition: unset
}
/* hacks-guide change end: disable transition on homepage navbar */
/* hacks-guide change start: add Vita buttons */
kbd {
&.l {
border-radius: 15px 6px 6px 6px;
padding: 0 3px 0 7px;
}
&.r {
border-radius: 6px 15px 6px 6px;
padding: 0 7px 0 3px;
}
&.face {
padding: 0 6px;
border-radius: 15px;
}
}
/* hacks-guide change end: add Vita buttons */