aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/outline-offset
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-16 23:48:25 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-25 23:28:52 +0900
commit0ed7c371f7ff103e19b2474e8a55c02d77e3c74d (patch)
tree342191e866e8f097469a2aaad127ce9f0b4e0356 /files/ja/web/css/outline-offset
parentd54b0e0f0a7aa80f4bb20fbdab8ee03a381c4ea2 (diff)
downloadtranslated-content-0ed7c371f7ff103e19b2474e8a55c02d77e3c74d.tar.gz
translated-content-0ed7c371f7ff103e19b2474e8a55c02d77e3c74d.tar.bz2
translated-content-0ed7c371f7ff103e19b2474e8a55c02d77e3c74d.zip
CSS 基本ユーザーインターフェイスの文書を更新
- 2021/10/15 時点の英語版に同期
Diffstat (limited to 'files/ja/web/css/outline-offset')
-rw-r--r--files/ja/web/css/outline-offset/index.md94
1 files changed, 49 insertions, 45 deletions
diff --git a/files/ja/web/css/outline-offset/index.md b/files/ja/web/css/outline-offset/index.md
index 5995f59e76..e59e22199b 100644
--- a/files/ja/web/css/outline-offset/index.md
+++ b/files/ja/web/css/outline-offset/index.md
@@ -3,83 +3,87 @@ title: outline-offset
slug: Web/CSS/outline-offset
tags:
- CSS
- - CSS Outline
- - CSS Property
- - CSS プロパティ
- CSS 輪郭線
+ - CSS プロパティ
- Reference
- - 'recipe:css-property'
+ - recipe:css-property
+browser-compat: css.properties.outline-offset
translation_of: Web/CSS/outline-offset
---
-<div>{{CSSRef}}</div>
-
-<p>CSS の <strong><code>outline-offset</code></strong> プロパティは、要素の辺や境界線と<a href="/ja/docs/Web/CSS/outline">輪郭線</a>との空間の量を設定します。</p>
-
-<div>{{EmbedInteractiveExample("pages/css/outline-offset.html")}}</div>
+{{CSSRef}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+CSS の **`outline-offset`** プロパティは、要素の辺や境界線と[輪郭線](/ja/docs/Web/CSS/outline)との空間の量を設定します。
-<p><ruby>輪郭線<rp> (</rp><rt>outline</rt><rp>) </rp></ruby>は要素の周囲、<ruby>境界線<rp> (</rp><rt>border</rt><rp>) </rp></ruby>の外側に描かれる線です。要素とその輪郭線との空間は透明です。つまり、親要素の背景と同じになります。</p>
+{{EmbedInteractiveExample("pages/css/outline-offset.html")}}
-<h2 id="Syntax" name="Syntax">構文</h2>
+## 構文
-<pre class="brush:css no-line-numbers notranslate">/* &lt;length&gt; 値 */
+```css
+/* <length> 値 */
outline-offset: 3px;
outline-offset: 0.2em;
/* グローバル値 */
outline-offset: inherit;
outline-offset: initial;
+outline-offset: revert;
outline-offset: unset;
-</pre>
+```
+
+### 値
+
+- `{{cssxref("&lt;length&gt;")}}`
+ - : 要素とその輪郭線との空間の幅です。負の値を指定すると輪郭線は要素の内側に表示されます。 `0` を指定すると輪郭線は要素との隙間を置かずに表示されます。
+
+## 解説
-<h3 id="Values" name="Values">値</h3>
+輪郭線 (outline) は要素の周囲、境界線 (border) の外側に描かれる線です。要素とその輪郭線の間は透明です。つまり、親要素の背景と同じになります。
-<dl>
- <dt><code>{{cssxref("&lt;length&gt;")}}</code></dt>
- <dd>要素とその輪郭線との空間の幅です。負の値を指定すると輪郭線は要素の内側に表示されます。 <code>0</code> を指定すると輪郭線は要素との隙間を置かずに表示されます。</dd>
-</dl>
+## 公式定義
-<h3 id="Formal_syntax" name="Formal_syntax">形式文法</h3>
+{{cssinfo}}
+
+## 形式文法
{{csssyntax}}
-<h2 id="Example" name="Example">例</h2>
+## 例
+
+<h3 id="Setting_outline_offset_in_pixels">輪郭線のオフセットをピクセル数で設定</h3>
+
+#### HTML
-<pre class="brush: css notranslate">p {
+```html
+<p>Gallia est omnis divisa in partes tres.</p>
+```
+
+#### CSS
+
+```css
+p {
outline: 1px dashed red;
outline-offset: 10px;
background: yellow;
border: 1px solid blue;
margin: 15px;
}
-</pre>
+```
+
+#### 結果
-<pre class="brush: html notranslate">&lt;p&gt;Gallia est omnis divisa in partes tres.&lt;/p&gt;</pre>
+{{EmbedLiveSample('Setting_outline_offset_in_pixels')}}
-<p>{{EmbedLiveSample('Example')}}</p>
+## 仕様書
-<h2 id="Specifications" name="Specifications">仕様書</h2>
+{{Specifications}}
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{ SpecName('CSS3 Basic UI', '#outline-offset', 'outline-offset') }}</td>
- <td>{{ Spec2('CSS3 Basic UI') }}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
+## ブラウザーの互換性
-<p>{{cssinfo}}</p>
+{{Compat}}
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+## 関連情報
-<p>{{Compat("css.properties.outline-offset")}}</p>
+- {{cssxref("outline")}}
+- {{cssxref("outline-color")}}
+- {{cssxref("outline-style")}}
+- {{cssxref("outline-width")}}