mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #20910 -- Replaced snippet directive with code-block.
This commit is contained in:
committed by
Tim Graham
parent
f8ff529ee3
commit
c49ea6f591
5
docs/_theme/djangodocs-epub/static/epub.css
vendored
5
docs/_theme/djangodocs-epub/static/epub.css
vendored
@@ -29,15 +29,14 @@ pre {
|
||||
}
|
||||
|
||||
/* Header for some code blocks. */
|
||||
.snippet-filename {
|
||||
.code-block-caption {
|
||||
background-color: #393939;
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
font: bold 90% monospace;
|
||||
}
|
||||
.snippet-filename + .highlight > pre,
|
||||
.snippet-filename + pre {
|
||||
.literal-block-wrapper pre {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
|
||||
5
docs/_theme/djangodocs/static/djangodocs.css
vendored
5
docs/_theme/djangodocs/static/djangodocs.css
vendored
@@ -101,9 +101,8 @@ pre { font-size:small; background:#E0FFB8; border:1px solid #94da3a; border-widt
|
||||
dt .literal, table .literal { background:none; }
|
||||
#bd a.reference { text-decoration: none; }
|
||||
#bd a.reference tt.literal { border-bottom: 1px #234f32 dotted; }
|
||||
div.snippet-filename { color: white; background-color: #234F32; margin: 0; padding: 2px 5px; width: 100%; font-family: monospace; font-size: small; line-height: 1.3em; }
|
||||
div.snippet-filename + div.highlight > pre { margin-top: 0; }
|
||||
div.snippet-filename + pre { margin-top: 0; }
|
||||
div.code-block-caption { color: white; background-color: #234F32; margin: 0; padding: 2px 5px; width: 100%; font-family: monospace; font-size: small; line-height: 1.3em; }
|
||||
div.literal-block-wrapper pre { margin-top: 0; }
|
||||
|
||||
/* Restore colors of pygments hyperlinked code */
|
||||
#bd .highlight .k a:link, #bd .highlight .k a:visited { color: #000000; text-decoration: none; border-bottom: 1px dotted #000000; }
|
||||
|
||||
Reference in New Issue
Block a user