Browse Source

Create rainbow_dash CSS style for Pygments

master
Heuzef 1 year ago
parent
commit
70e095201b
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      pelicanconf.py
  2. +1
    -0
      theme/static/css/pygments/rainbow_dash.min.css

+ 2
- 2
pelicanconf.py View File

@@ -83,8 +83,8 @@ DIRECT_TEMPLATES = ['index', 'tags', 'categories', 'sitemap']
SITEMAP_SAVE_AS = 'sitemap.xml'
# BOOTSTRAP_CSS: URL of Bootstrap CSS file. Use this to enable Boostwatch themes.
# FONTAWESOME_CSS: URL of Font Awesome CSS file. Use this if you wish to use CDN provided version instead of the bundled one.
PYGMENTS_STYLE = 'manni'
PYGMENTS_STYLE = 'rainbow_dash'
HIDE_AUTHORS = True
RFG_FAVICONS = True
RFG_FAVICONS = True
# THEME_CSS_OVERRIDES: Sequence of stylesheet URLs to override CSS provided by theme. Both relative and absolute URLs are supported.
# THEME_JS_OVERRIDES: Sequence of JavaScript URLs to enable with this theme. Alchemy uses no JS by default. Both relative and absolute URLs are supported.

+ 1
- 0
theme/static/css/pygments/rainbow_dash.min.css View File

@@ -0,0 +1 @@
.demo-highlight .hll { background-color: #ffffcc }.demo-highlight .c { color: #0080ff; font-style: italic } /* Comment */.demo-highlight .err { color: #ffffff; background-color: #cc0000 } /* Error */.demo-highlight .k { color: #2c5dcd; font-weight: bold } /* Keyword */.demo-highlight .o { color: #2c5dcd } /* Operator */.demo-highlight .ch { color: #0080ff; font-style: italic } /* Comment.Hashbang */.demo-highlight .cm { color: #0080ff; font-style: italic } /* Comment.Multiline */.demo-highlight .cp { color: #0080ff } /* Comment.Preproc */.demo-highlight .cpf { color: #0080ff; font-style: italic } /* Comment.PreprocFile */.demo-highlight .c1 { color: #0080ff; font-style: italic } /* Comment.Single */.demo-highlight .cs { color: #0080ff; font-weight: bold; font-style: italic } /* Comment.Special */.demo-highlight .gd { background-color: #ffcccc; border: 1px solid #c5060b } /* Generic.Deleted */.demo-highlight .ge { font-style: italic } /* Generic.Emph */.demo-highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */.demo-highlight .gr { color: #ff0000 } /* Generic.Error */.demo-highlight .gh { color: #2c5dcd; font-weight: bold } /* Generic.Heading */.demo-highlight .gi { background-color: #ccffcc; border: 1px solid #00cc00 } /* Generic.Inserted */.demo-highlight .go { color: #aaaaaa } /* Generic.Output */.demo-highlight .gp { color: #2c5dcd; font-weight: bold } /* Generic.Prompt */.demo-highlight .gs { font-weight: bold } /* Generic.Strong */.demo-highlight .gu { color: #2c5dcd; font-weight: bold } /* Generic.Subheading */.demo-highlight .gt { color: #c5060b } /* Generic.Traceback */.demo-highlight .kc { color: #2c5dcd; font-weight: bold } /* Keyword.Constant */.demo-highlight .kd { color: #2c5dcd; font-weight: bold } /* Keyword.Declaration */.demo-highlight .kn { color: #2c5dcd; font-weight: bold } /* Keyword.Namespace */.demo-highlight .kp { color: #2c5dcd } /* Keyword.Pseudo */.demo-highlight .kr { color: #2c5dcd; font-weight: bold } /* Keyword.Reserved */.demo-highlight .kt { color: #5918bb; font-weight: bold } /* Keyword.Type */.demo-highlight .m { color: #5918bb; font-weight: bold } /* Literal.Number */.demo-highlight .s { color: #00cc66 } /* Literal.String */.demo-highlight .na { color: #2c5dcd; font-style: italic } /* Name.Attribute */.demo-highlight .nb { color: #5918bb; font-weight: bold } /* Name.Builtin */.demo-highlight .nc { text-decoration: underline } /* Name.Class */.demo-highlight .no { color: #318495 } /* Name.Constant */.demo-highlight .nd { color: #ff8000; font-weight: bold } /* Name.Decorator */.demo-highlight .ni { color: #5918bb; font-weight: bold } /* Name.Entity */.demo-highlight .ne { color: #5918bb; font-weight: bold } /* Name.Exception */.demo-highlight .nf { color: #ff8000; font-weight: bold } /* Name.Function */.demo-highlight .nt { color: #2c5dcd; font-weight: bold } /* Name.Tag */.demo-highlight .ow { color: #2c5dcd; font-weight: bold } /* Operator.Word */.demo-highlight .w { color: #cbcbcb } /* Text.Whitespace */.demo-highlight .mb { color: #5918bb; font-weight: bold } /* Literal.Number.Bin */.demo-highlight .mf { color: #5918bb; font-weight: bold } /* Literal.Number.Float */.demo-highlight .mh { color: #5918bb; font-weight: bold } /* Literal.Number.Hex */.demo-highlight .mi { color: #5918bb; font-weight: bold } /* Literal.Number.Integer */.demo-highlight .mo { color: #5918bb; font-weight: bold } /* Literal.Number.Oct */.demo-highlight .sa { color: #00cc66 } /* Literal.String.Affix */.demo-highlight .sb { color: #00cc66 } /* Literal.String.Backtick */.demo-highlight .sc { color: #00cc66 } /* Literal.String.Char */.demo-highlight .dl { color: #00cc66 } /* Literal.String.Delimiter */.demo-highlight .sd { color: #00cc66; font-style: italic } /* Literal.String.Doc */.demo-highlight .s2 { color: #00cc66 } /* Literal.String.Double */.demo-highlight .se { color: #c5060b; font-weight: bold } /* Literal.String.Escape */.demo-highlight .sh { color: #00cc66 } /* Literal.String.Heredoc */.demo-highlight .si { color: #00cc66 } /* Literal.String.Interpol */.demo-highlight .sx { color: #318495 } /* Literal.String.Other */.demo-highlight .sr { color: #00cc66 } /* Literal.String.Regex */.demo-highlight .s1 { color: #00cc66 } /* Literal.String.Single */.demo-highlight .ss { color: #c5060b; font-weight: bold } /* Literal.String.Symbol */.demo-highlight .bp { color: #5918bb; font-weight: bold } /* Name.Builtin.Pseudo */.demo-highlight .fm { color: #ff8000; font-weight: bold } /* Name.Function.Magic */.demo-highlight .il { color: #5918bb; font-weight: bold } /* Literal.Number.Integer.Long */

Loading…
Cancel
Save