Skip to content

Commit 19521ba

Browse files
ma91nma91nclaude
authored
note の中のキャプションのタブを地にそろえる (#182)
note の中はコードブロックの枠を地と同じ色にして消しているのに、タブが #ddd の枠を持っていて食い違っていた。タブの地と枠もその note の コードブロックの地にそろえ、タブとブロックを1つの面にする。 Co-authored-by: ma91n <ubuntu@K007468.future.co.jp> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 8c3cfac commit 19521ba

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎_static/custom.css‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,34 @@ samp,
315315
white-space: nowrap;
316316
}
317317

318+
319+
/* note の中のキャプション付きコード。note の中ではコードブロックの枠を地と
320+
同じ色にして消しているので、タブだけが枠を持つと食い違う。タブの地と枠も
321+
その note のコードブロックの地にそろえて、タブとブロックを1つの面にする */
322+
.rst-content .admonition.note .code-block-caption,
323+
.rst-content .admonition.seealso .code-block-caption {
324+
border-color: #f7f7f9;
325+
background: #f7f7f9;
326+
}
327+
.rst-content .admonition.tip .code-block-caption,
328+
.rst-content .admonition.hint .code-block-caption {
329+
border-color: #f2fbf0;
330+
background: #f2fbf0;
331+
}
332+
.rst-content .admonition.warning .code-block-caption,
333+
.rst-content .admonition.caution .code-block-caption,
334+
.rst-content .admonition.attention .code-block-caption,
335+
.rst-content .admonition.important .code-block-caption,
336+
.rst-content .admonition-todo .code-block-caption {
337+
border-color: #fefcf0;
338+
background: #fefcf0;
339+
}
340+
.rst-content .admonition.danger .code-block-caption,
341+
.rst-content .admonition.error .code-block-caption {
342+
border-color: #ffeded;
343+
background: #ffeded;
344+
}
345+
318346
/* タブが載る角だけ丸みを落として、タブとブロックを地続きにする */
319347
.rst-content .literal-block-wrapper div[class^=highlight] {
320348
border-top-left-radius: 0;

0 commit comments

Comments
 (0)