Update documentation code fragments theme to better match the rest of the page.

This commit is contained in:
Dan Helfman 2020-06-17 16:02:57 -07:00
parent 0ed8f67b9d
commit b320e74ad5
4 changed files with 24 additions and 16 deletions

3
NEWS
View File

@ -1,3 +1,6 @@
1.5.7.dev0
* Update documentation code fragments theme to better match the rest of the page.
1.5.6 1.5.6
* #292: Allow before_backup and similiar hooks to exit with a soft failure without altering the * #292: Allow before_backup and similiar hooks to exit with a soft failure without altering the
monitoring status on Healthchecks or other providers. Support this by waiting to ping monitoring monitoring status on Healthchecks or other providers. Support this by waiting to ping monitoring

View File

@ -181,7 +181,7 @@ pre {
padding: .5em; padding: .5em;
margin: 1em -.5em 2em -.5em; margin: 1em -.5em 2em -.5em;
overflow-x: auto; overflow-x: auto;
background-color: #eee; background-color: #fafafa;
font-size: 0.75em; /* 12px /16 */ font-size: 0.75em; /* 12px /16 */
} }
pre, pre,
@ -194,7 +194,7 @@ code {
-webkit-hyphens: manual; -webkit-hyphens: manual;
-moz-hyphens: manual; -moz-hyphens: manual;
hyphens: manual; hyphens: manual;
background-color: #efefef; background-color: #fafafa;
} }
pre + pre[class*="language-"] { pre + pre[class*="language-"] {
margin-top: 1em; margin-top: 1em;

View File

@ -3,9 +3,12 @@
* Based on dabblet (http://dabblet.com) * Based on dabblet (http://dabblet.com)
* @author Lea Verou * @author Lea Verou
*/ */
/*
* Modified with an approximation of the One Light syntax highlighting theme.
*/
code[class*="language-"], code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"] {
color: #ABB2BF; color: #494b53;
background: none; background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left; text-align: left;
@ -26,13 +29,15 @@ pre[class*="language-"] {
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none; text-shadow: none;
background: #383e49; color: #232324;
background: #dbdbdc;
} }
pre[class*="language-"]::selection, pre[class*="language-"] ::selection, pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection { code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none; text-shadow: none;
background: #9aa2b1; color: #232324;
background: #dbdbdc;
} }
@media print { @media print {
@ -50,7 +55,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"], :not(pre) > code[class*="language-"],
pre[class*="language-"] { pre[class*="language-"] {
background: #282c34; background: #fafafa;
} }
/* Inline code */ /* Inline code */
@ -64,16 +69,16 @@ pre[class*="language-"] {
.token.prolog, .token.prolog,
.token.doctype, .token.doctype,
.token.cdata { .token.cdata {
color: #5C6370; color: #505157;
} }
.token.punctuation { .token.punctuation {
color: #abb2bf; color: #526fff;
} }
.token.selector, .token.selector,
.token.tag { .token.tag {
color: #e06c75; color: none;
} }
.token.property, .token.property,
@ -83,7 +88,7 @@ pre[class*="language-"] {
.token.symbol, .token.symbol,
.token.attr-name, .token.attr-name,
.token.deleted { .token.deleted {
color: #d19a66; color: #986801;
} }
.token.string, .token.string,
@ -91,7 +96,7 @@ pre[class*="language-"] {
.token.attr-value, .token.attr-value,
.token.builtin, .token.builtin,
.token.inserted { .token.inserted {
color: #98c379; color: #50a14f;
} }
.token.operator, .token.operator,
@ -99,22 +104,22 @@ pre[class*="language-"] {
.token.url, .token.url,
.language-css .token.string, .language-css .token.string,
.style .token.string { .style .token.string {
color: #56b6c2; color: #526fff;
} }
.token.atrule, .token.atrule,
.token.keyword { .token.keyword {
color: #e06c75; color: #e45649;
} }
.token.function { .token.function {
color: #61afef; color: #4078f2;
} }
.token.regex, .token.regex,
.token.important, .token.important,
.token.variable { .token.variable {
color: #c678dd; color: #e45649;
} }
.token.important, .token.important,

View File

@ -1,6 +1,6 @@
from setuptools import find_packages, setup from setuptools import find_packages, setup
VERSION = '1.5.6' VERSION = '1.5.7.dev0'
setup( setup(