BigW Consortium Gitlab

monokai.scss 4.26 KB
Newer Older
1 2
/* https://github.com/richleland/pygments-css/blob/master/monokai.css */
.code.monokai {
3
  // Line numbers
4 5
  .line-numbers,
  .diff-line-num {
6 7
    background-color: #272822;
  }
8

9 10
  .diff-line-num,
  .diff-line-num a {
11
    color: rgba(255, 255, 255, 0.3);
12 13
  }

14
  // Code itself
15 16
  pre.code,
  .diff-line-num {
17
    border-color: #555;
18 19
  }

20 21 22
  &,
  pre.code,
  .line_holder .line_content {
23 24 25 26 27 28
    background-color: #272822;
    color: #f8f8f2;
  }

  // Diff line
  .line_holder {
29 30 31 32
    &.match .line_content {
      @include dark-diff-match-line;
    }

33 34 35 36 37 38
    td.diff-line-num.hll:not(.empty-cell),
    td.line_content.hll:not(.empty-cell) {
      background-color: #49483e;
      border-color: darken(#49483e, 15%);
    }

39 40
    .diff-line-num.new,
    .line_content.new {
41
      @include diff_background(rgba(166, 226, 46, 0.1), rgba(166, 226, 46, 0.15), #808080);
42 43
    }

44 45
    .diff-line-num.old,
    .line_content.old {
46
      @include diff_background(rgba(254, 147, 140, 0.15), rgba(254, 147, 140, 0.2), #808080);
47 48 49
    }

    .line_content.match {
50
      @include dark-diff-match-line;
51 52 53
    }
  }

54
  // highlight line via anchor
55
  pre .hll {
56 57 58
    background-color: #49483e !important;
  }

59 60
  // Search result highlight
  span.highlight_word {
61
    background-color: #ffe792 !important;
62
    color: #000 !important;
63 64
  }

65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
  .hll { background-color: #49483e; }
  .c { color: #75715e; } /* Comment */
  .err { color: #960050; background-color: #1e0010; } /* Error */
  .k { color: #66d9ef; } /* Keyword */
  .l { color: #ae81ff; } /* Literal */
  .n { color: #f8f8f2; } /* Name */
  .o { color: #f92672; } /* Operator */
  .p { color: #f8f8f2; } /* Punctuation */
  .cm { color: #75715e; } /* Comment.Multiline */
  .cp { color: #75715e; } /* Comment.Preproc */
  .c1 { color: #75715e; } /* Comment.Single */
  .cs { color: #75715e; } /* Comment.Special */
  .ge { font-style: italic; } /* Generic.Emph */
  .gs { font-weight: bold; } /* Generic.Strong */
  .kc { color: #66d9ef; } /* Keyword.Constant */
  .kd { color: #66d9ef; } /* Keyword.Declaration */
  .kn { color: #f92672; } /* Keyword.Namespace */
  .kp { color: #66d9ef; } /* Keyword.Pseudo */
  .kr { color: #66d9ef; } /* Keyword.Reserved */
  .kt { color: #66d9ef; } /* Keyword.Type */
  .ld { color: #e6db74; } /* Literal.Date */
  .m { color: #ae81ff; } /* Literal.Number */
  .s { color: #e6db74; } /* Literal.String */
  .na { color: #a6e22e; } /* Name.Attribute */
  .nb { color: #f8f8f2; } /* Name.Builtin */
  .nc { color: #a6e22e; } /* Name.Class */
  .no { color: #66d9ef; } /* Name.Constant */
  .nd { color: #a6e22e; } /* Name.Decorator */
  .ni { color: #f8f8f2; } /* Name.Entity */
  .ne { color: #a6e22e; } /* Name.Exception */
  .nf { color: #a6e22e; } /* Name.Function */
  .nl { color: #f8f8f2; } /* Name.Label */
  .nn { color: #f8f8f2; } /* Name.Namespace */
  .nx { color: #a6e22e; } /* Name.Other */
  .py { color: #f8f8f2; } /* Name.Property */
  .nt { color: #f92672; } /* Name.Tag */
  .nv { color: #f8f8f2; } /* Name.Variable */
  .ow { color: #f92672; } /* Operator.Word */
  .w { color: #f8f8f2; } /* Text.Whitespace */
  .mf { color: #ae81ff; } /* Literal.Number.Float */
  .mh { color: #ae81ff; } /* Literal.Number.Hex */
  .mi { color: #ae81ff; } /* Literal.Number.Integer */
  .mo { color: #ae81ff; } /* Literal.Number.Oct */
  .sb { color: #e6db74; } /* Literal.String.Backtick */
  .sc { color: #e6db74; } /* Literal.String.Char */
  .sd { color: #e6db74; } /* Literal.String.Doc */
  .s2 { color: #e6db74; } /* Literal.String.Double */
  .se { color: #ae81ff; } /* Literal.String.Escape */
  .sh { color: #e6db74; } /* Literal.String.Heredoc */
  .si { color: #e6db74; } /* Literal.String.Interpol */
  .sx { color: #e6db74; } /* Literal.String.Other */
  .sr { color: #e6db74; } /* Literal.String.Regex */
  .s1 { color: #e6db74; } /* Literal.String.Single */
  .ss { color: #e6db74; } /* Literal.String.Symbol */
  .bp { color: #f8f8f2; } /* Name.Builtin.Pseudo */
  .vc { color: #f8f8f2; } /* Name.Variable.Class */
  .vg { color: #f8f8f2; } /* Name.Variable.Global */
  .vi { color: #f8f8f2; } /* Name.Variable.Instance */
  .il { color: #ae81ff; } /* Literal.Number.Integer.Long */
124 125 126
  .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
  .gd { color: #f92672; } /* Generic.Deleted & Diff Deleted */
  .gi { color: #a6e22e; } /* Generic.Inserted & Diff Inserted */
127
}