aboutsummaryrefslogtreecommitdiffstats
path: root/docs_theme/css/prettify.css
diff options
context:
space:
mode:
authorTom Christie2014-12-10 14:22:00 +0000
committerTom Christie2014-12-10 14:22:00 +0000
commit01bb85e80a382977125fe3897c0bd6e217ca3fdc (patch)
tree5692f454027e0d9ee2e548907d11dd12fd29d721 /docs_theme/css/prettify.css
parent6f434a67e78311e0a2d3d646b59d6bd64f65a776 (diff)
parent5fe5a9364466ad6696729c0a43ec88c568d113e9 (diff)
downloaddjango-rest-framework-01bb85e80a382977125fe3897c0bd6e217ca3fdc.tar.bz2
Merge pull request #2246 from d0ugal/mkdocs-theme
Syntax highlighting
Diffstat (limited to 'docs_theme/css/prettify.css')
-rw-r--r--docs_theme/css/prettify.css30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs_theme/css/prettify.css b/docs_theme/css/prettify.css
new file mode 100644
index 00000000..d437aff6
--- /dev/null
+++ b/docs_theme/css/prettify.css
@@ -0,0 +1,30 @@
+.com { color: #93a1a1; }
+.lit { color: #195f91; }
+.pun, .opn, .clo { color: #93a1a1; }
+.fun { color: #dc322f; }
+.str, .atv { color: #D14; }
+.kwd, .prettyprint .tag { color: #1e347b; }
+.typ, .atn, .dec, .var { color: teal; }
+.pln { color: #48484c; }
+
+.prettyprint {
+ padding: 8px;
+ background-color: #f7f7f9;
+ border: 1px solid #e1e1e8;
+}
+.prettyprint.linenums {
+ -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
+ -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
+ box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0;
+}
+
+/* Specify class=linenums on a pre to get line numbering */
+ol.linenums {
+ margin: 0 0 0 33px; /* IE indents via margin-left */
+}
+ol.linenums li {
+ padding-left: 12px;
+ color: #bebec5;
+ line-height: 20px;
+ text-shadow: 0 1px 0 #fff;
+} \ No newline at end of file