Skip to content

Commit 068fda4

Browse files
スタイル編集
whatwg 仕様の IDL ブロック用のスタイルを w3c 仕様と共通化 (一部は bcce5af
1 parent 0ad1eae commit 068fda4

3 files changed

Lines changed: 2 additions & 19 deletions

File tree

common-css.css

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* 全般 */
2-
31
:root {
42
--heading-color: light-dark( oklch(0.45 0.126 248), oklch(0.85 0.093 248) );
53
}
@@ -72,12 +70,6 @@ tr {
7270
border-top: thin solid silver;
7371
}
7472

75-
/* IDL */
76-
pre.idl {
77-
padding: .5em 1em;
78-
margin: 1.2em 0;
79-
}
80-
8173
.valdef > dt {
8274
font-family: monospace0, monospace;
8375
}

common-w3c.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* 全般
2-
色に対するコメントは原文の色指定(色相, 彩度を揃えるため近似値)
3-
*/
4-
51
:root {
62
--heading-color: light-dark( oklch(0.45 0.12 248), oklch(0.88 0.12 248) );
73
}
@@ -62,13 +58,6 @@ div.example:before {
6258
border-style: none solid;
6359
}
6460

65-
/* pre */
66-
67-
pre.idl {
68-
padding: .5em 1em;
69-
margin: 1.2em 0;
70-
}
71-
7261
dl.idl-def > dt {
7362
font-family: monospace0, monospace;
7463
}

common.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ pre.presentation {
445445

446446
/* IDL */
447447
pre.idl {
448+
padding: .5em 1em;
449+
margin: 1.2em 0;
448450
color: var(--idl-color, CanvasText);
449451
background: var(--idl-bg-color, Canvas);
450452
border-left: 0.5em solid var(--idl-border-color, var(--N-color));

0 commit comments

Comments
 (0)