Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
277 lines (227 loc) · 6.73 KB
/
Copy pathstyle.css
File metadata and controls
277 lines (227 loc) · 6.73 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
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/*
Theme Name: Abira
Theme URI: https://abira.369theme.com
Description: A minimal block starter theme. Abira gives you a clean foundation — white, black, and one accent color — so you can build without clearing away what someone else put there first.
Version: 1.3
Author: miroku
Author URI: https://profiles.wordpress.org/369work/
Tags: blog, one-column, block-patterns, full-site-editing, accessibility-ready, block-styles, editor-style, style-variations, custom-colors, featured-images, translation-ready
Text Domain: abira
Domain Path: /languages
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
This theme, like WordPress, is licensed under the GPL.
*/
/* ============================================================
CSS Reset
Modern, minimal reset as a foundation.
============================================================ */
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
}
html {
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
min-height: 100svh;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow-x: hidden;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
p {
text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
text-wrap: balance;
}
button {
cursor: pointer;
-webkit-user-select: none;
user-select: none;
touch-action: manipulation;
}
/* ============================================================
Layout: Sticky Footer
============================================================ */
/*
* コンテンツ幅は theme.json の settings.layout で変更してください。
*
* 推奨値の目安:
* contentSize — 通常コンテンツの最大幅
* 現在: 800px | タブレット向け: 680px | ワイドモニター向け: 1000px
* wideSize — ワイド整列ブロックの最大幅
* 現在: 1200px | 大画面向け: 1440px
*
* 大画面で幅をさらに広げたい場合は、style.css にメディアクエリを追加して
* --wp--style--global--content-size を上書きする方法もあります。
*/
.wp-site-blocks {
display: flex;
flex-direction: column;
min-height: 100svh;
}
.site-header,
.site-footer {
padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m);
}
.site-main {
flex: 1;
padding: 0;
}
@media (max-width: 781px) {
.site-header .wp-block-navigation__responsive-container.is-menu-open {
padding: var(--wp--preset--spacing--m);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
padding-inline: var(--wp--preset--spacing--s);
}
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
white-space: nowrap;
}
/* ============================================================
Post list
============================================================ */
.main-content {
padding-top: var(--wp--preset--spacing--xl);
padding-bottom: var(--wp--preset--spacing--xl);
}
.post-item {
border-bottom: 1px solid var(--wp--preset--color--subtle);
padding-bottom: var(--wp--preset--spacing--l);
margin-bottom: var(--wp--preset--spacing--l);
}
.post-meta {
font-size: var(--wp--preset--font-size--small);
color: var(--wp--preset--color--muted);
}
/* ============================================================
Category badge
============================================================ */
.wp-block-post-terms a {
display: inline-block;
background-color: var(--wp--preset--color--accent);
color: var(--wp--preset--color--base);
font-size: var(--wp--preset--font-size--small);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 0.2em 0.6em;
border-radius: 3px;
text-decoration: none;
}
.wp-block-post-terms a:hover {
background-color: var(--wp--preset--color--contrast);
color: var(--wp--preset--color--base);
}
/* ============================================================
Card (archive)
アイキャッチ画像のプレースホルダー処理は
assets/css/block-styles.css の .post-card__media に統一。
============================================================ */
.post-card {
border: 1px solid var(--wp--preset--color--subtle);
border-radius: 6px;
overflow: hidden;
height: 100%; /* グリッドの各セルいっぱいに広げて高さを揃える */
}
.post-card__body {
padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--m) var(--wp--preset--spacing--m);
}
/* ============================================================
High contrast
OS / ブラウザ側で「コントラストを上げる」設定にしている
利用者には、境界線と控えめな文字色を強める。
配色プリセット自体は上書きしない。subtle は境界線だけでなく
フッターやアイキャッチ枠の背景色にも使っているため、
トークンを差し替えると背景まで黒くなってしまう。
============================================================ */
@media (prefers-contrast: more) {
/* 境界線を見えるようにする(対白 1.09:1 → 18.88:1) */
.post-item {
border-bottom-color: var(--wp--preset--color--contrast);
}
.post-card {
border-color: var(--wp--preset--color--contrast);
}
/* 控えめな文字色を濃くする(対白 4.95:1 → 18.88:1) */
.post-meta {
color: var(--wp--preset--color--contrast);
}
/* WordPress の配色クラス(.has-muted-color)は !important 付きで
出力されるため、こちらも !important でないと上書きできない。 */
.site-footer .has-muted-color {
color: var(--wp--preset--color--contrast) !important;
}
/* フォーカスリングを太く・濃くする */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
outline: 3px solid var(--wp--preset--color--contrast);
outline-offset: 2px;
}
}
/* ============================================================
Reduced motion
「動きを減らす」設定のユーザーには、アニメーションと
スムーズスクロールを無効化する。
============================================================ */
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}