Skip to content

Commit

Permalink
docs: update css for source highlights
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Apr 5, 2020
1 parent afb5f0f commit dd044ce
Showing 1 changed file with 60 additions and 8 deletions.
68 changes: 60 additions & 8 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,33 @@ em.property {
}


/* tables */

.rst-content table.docutils thead {
color: #ddd;
}

.rst-content table.docutils td {
border: 0px;
}

.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
background-color: #5a5a5a;
}


/* inlined code highlights */

.xref,
.py-meth,
.rst-content a code {
color: #aaddff !important;
font-weight: normal !important;
}

.rst-content code {
color: #eee !important;
font-weight: bold !important;
font-weight: normal !important;
}

code.literal {
Expand All @@ -68,25 +84,61 @@ pre {
border-color: #333 !important;
}

.highlight .go {
/*output*/
.highlight .go,
.highlight .nb,
.highlight .kn {
/* text */
color: #ddd;
font-weight: normal;
}

.highlight .o,
.highlight .p {
/* comparators, parentheses */
color: #bbb;
}

.highlight .c1 {
/* comments */
color: #888;
}

.highlight .bp {
/* self */
color: #fc3;
}

.highlight .mf,
.highlight .mi,
.highlight .kc {
/* numbers, booleans */
color: #c90;
}

.highlight .gt,
.highlight .nf {
/*tracebacks*/
color: #4772D1;
.highlight .nf,
.highlight .fm {
/* functions */
color: #7cf;
}

.highlight .nd {
color: #aaa;
/* decorators */
color: #f66;
}

.highlight .k,
.highlight .ow {
/* statements */
color: #A7F;
font-weight: normal;
}

.highlight .s2,
.highlight .s1,
.highlight .nt {
color: #6090b0;
/* strings */
color: #5d6;
}


Expand Down

0 comments on commit dd044ce

Please sign in to comment.