-
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
---
// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-only
import DocsLayout from "../../layouts/DocsLayout.astro";
import Document from "../../components/Document.astro";
import Preview from "../../components/Preview.astro";
import ThemeMatrixPreview from "../../components/ThemeMatrixPreview.astro";
---
<DocsLayout title="Globals">
<Document>
<p>
UA 間の差異を限りなく少なくするため、 Yamori の CSS は<strong>
全てのスタイルをリセット
</strong>
します。 リセットでは
<strong>
Yamori によって作成されていない全ての HTML 要素
</strong> に対して <code>
all: unset; box-sizing: border-box
</code> が与えられます。
</p>
<Preview title="<button>BUTTON</button>">
<button type="button">BUTTON</button>
</Preview>
<p>
これにより、全ての HTML 要素は CustomElement のホストと同様に <code>
display: inline
</code> が初期値となります。 基本的にインラインではない要素に対しては毎回
<code>
display
</code>
プロパティを与える必要があります。
</p>
<h2>Body Styles</h2>
<p>
スタイリングのベースラインとして <code><body></code>
には継承される一部の CSS プロパティと背景色が与えられています。
</p>
<ThemeMatrixPreview>
<p>Paragraph – 段落</p>
</ThemeMatrixPreview>
</Document>
</DocsLayout>