BigW Consortium Gitlab

dark.scss 4.17 KB
Newer Older
1 2
/* https://github.com/MozMorris/tomorrow-pygments */
.code.dark {
3 4 5 6
  // Line numbers
  .line-numbers, .diff-line-num {
    background-color: #1d1f21;
  }
7

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

12
  // Code itself
13 14
  pre.code, .diff-line-num {
    border-color: #666;
15 16
  }

17 18 19 20 21 22 23
  &, pre.code, .line_holder .line_content {
    background-color: #1d1f21;
    color: #c5c8c6;
  }

  // Diff line
  .line_holder {
24 25 26 27 28 29
    td.diff-line-num.hll:not(.empty-cell),
    td.line_content.hll:not(.empty-cell) {
      background-color: #557;
      border-color: darken(#557, 15%);
    }

30
    .diff-line-num.new, .line_content.new {
31
      @include diff_background(rgba(51, 255, 51, 0.1), rgba(51, 255, 51, 0.2), #808080);
32 33 34
    }

    .diff-line-num.old, .line_content.old {
35
      @include diff_background(rgba(255, 51, 51, 0.2), rgba(255, 51, 51, 0.25), #808080);
36 37 38 39 40
    }

    .line_content.match {
      color: rgba(255, 255, 255, 0.3);
      background: rgba(255, 255, 255, 0.1);
41 42 43
    }
  }

44
  // highlight line via anchor
45 46
  pre .hll {
    background-color: #557 !important;
47
  }
48 49 50

  // Search result highlight
  span.highlight_word {
51
    background-color: #ffe792 !important;
52
    color: #000 !important;
53
  }
54 55 56

  .hll { background-color: #373b41 }
  .c { color: #969896 } /* Comment */
57
  .err { color: #c66 } /* Error */
58 59 60 61 62 63 64 65 66
  .k { color: #b294bb } /* Keyword */
  .l { color: #de935f } /* Literal */
  .n { color: #c5c8c6 } /* Name */
  .o { color: #8abeb7 } /* Operator */
  .p { color: #c5c8c6 } /* Punctuation */
  .cm { color: #969896 } /* Comment.Multiline */
  .cp { color: #969896 } /* Comment.Preproc */
  .c1 { color: #969896 } /* Comment.Single */
  .cs { color: #969896 } /* Comment.Special */
67
  .gd { color: #c66 } /* Generic.Deleted */
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
  .ge { font-style: italic } /* Generic.Emph */
  .gh { color: #c5c8c6; font-weight: bold } /* Generic.Heading */
  .gi { color: #b5bd68 } /* Generic.Inserted */
  .gp { color: #969896; font-weight: bold } /* Generic.Prompt */
  .gs { font-weight: bold } /* Generic.Strong */
  .gu { color: #8abeb7; font-weight: bold } /* Generic.Subheading */
  .kc { color: #b294bb } /* Keyword.Constant */
  .kd { color: #b294bb } /* Keyword.Declaration */
  .kn { color: #8abeb7 } /* Keyword.Namespace */
  .kp { color: #b294bb } /* Keyword.Pseudo */
  .kr { color: #b294bb } /* Keyword.Reserved */
  .kt { color: #f0c674 } /* Keyword.Type */
  .ld { color: #b5bd68 } /* Literal.Date */
  .m { color: #de935f } /* Literal.Number */
  .s { color: #b5bd68 } /* Literal.String */
  .na { color: #81a2be } /* Name.Attribute */
  .nb { color: #c5c8c6 } /* Name.Builtin */
  .nc { color: #f0c674 } /* Name.Class */
86
  .no { color: #c66 } /* Name.Constant */
87 88
  .nd { color: #8abeb7 } /* Name.Decorator */
  .ni { color: #c5c8c6 } /* Name.Entity */
89
  .ne { color: #c66 } /* Name.Exception */
90 91 92 93 94 95
  .nf { color: #81a2be } /* Name.Function */
  .nl { color: #c5c8c6 } /* Name.Label */
  .nn { color: #f0c674 } /* Name.Namespace */
  .nx { color: #81a2be } /* Name.Other */
  .py { color: #c5c8c6 } /* Name.Property */
  .nt { color: #8abeb7 } /* Name.Tag */
96
  .nv { color: #c66 } /* Name.Variable */
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
  .ow { color: #8abeb7 } /* Operator.Word */
  .w { color: #c5c8c6 } /* Text.Whitespace */
  .mf { color: #de935f } /* Literal.Number.Float */
  .mh { color: #de935f } /* Literal.Number.Hex */
  .mi { color: #de935f } /* Literal.Number.Integer */
  .mo { color: #de935f } /* Literal.Number.Oct */
  .sb { color: #b5bd68 } /* Literal.String.Backtick */
  .sc { color: #c5c8c6 } /* Literal.String.Char */
  .sd { color: #969896 } /* Literal.String.Doc */
  .s2 { color: #b5bd68 } /* Literal.String.Double */
  .se { color: #de935f } /* Literal.String.Escape */
  .sh { color: #b5bd68 } /* Literal.String.Heredoc */
  .si { color: #de935f } /* Literal.String.Interpol */
  .sx { color: #b5bd68 } /* Literal.String.Other */
  .sr { color: #b5bd68 } /* Literal.String.Regex */
  .s1 { color: #b5bd68 } /* Literal.String.Single */
  .ss { color: #b5bd68 } /* Literal.String.Symbol */
  .bp { color: #c5c8c6 } /* Name.Builtin.Pseudo */
115 116 117
  .vc { color: #c66 } /* Name.Variable.Class */
  .vg { color: #c66 } /* Name.Variable.Global */
  .vi { color: #c66 } /* Name.Variable.Instance */
118
  .il { color: #de935f } /* Literal.Number.Integer.Long */
119
}