🌐 AI搜索 & 代理 主页
Skip to content

Commit dd2fcf7

Browse files
Style codeblock caption
1 parent 2ac4375 commit dd2fcf7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,21 @@ div.body {
247247
}
248248
}
249249

250+
div.code-block-caption {
251+
background-color: #eee;
252+
border: 1px solid #ac9;
253+
border-bottom: none;
254+
border-radius: 3px 3px 0 0;
255+
padding: 0.3em 0.6em;
256+
font-size: 90%;
257+
color: #333;
258+
}
259+
260+
div.literal-block-wrapper pre {
261+
border-top-left-radius: 0 !important;
262+
border-top-right-radius: 0 !important;
263+
}
264+
250265
/* Admonitions */
251266
:root {
252267
--admonition-background: #eee;

python_docs_theme/static/pydoctheme_dark.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ div.body pre {
9797
border-color: #616161;
9898
}
9999

100+
div.code-block-caption {
101+
background-color: #333;
102+
border-color: #616161;
103+
color: white;
104+
}
105+
100106
code {
101107
background-color: #424242;
102108
}

0 commit comments

Comments
 (0)