Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_highlight.scss « components « sass « assets - github.com/WingLim/hugo-tania.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6352ca5313caf535a195232cd4ec040d722b4a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
$code-font-size: 0.9rem !default;
$code-color: #f8f8f2 !default;
$code-background: #373b41 !default;
$gray: #cacaca !default;
$code-font-family: Consolas, Monaco, Menlo, "DejaVu Sans Mono",
 "Bitstream Vera Sans Mono", "Courier New", monospace !default;

code, pre {
    font-size: $code-font-size;
    font-family: var(--code-font-family);
    background: $code-background;
}

:not(pre) > code {
    color: var(--dark-font-color);
    background: var(--light-background);
}
  
code {
    padding: 3px 5px;
    border-radius: 4px;
    color: $code-color;
}
  
pre > code {
    display: block;
}

.highlight > .chroma {
    margin: 0 0 2rem;
    
    border-radius: 5px;
    overflow-x: auto;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.125);
    position: relative;
    background: $code-background;

    code {
      padding: 40px 10px 10px;
    }

    code[data-lang]::before {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        padding: 2px 10px;
        width: 100%;
        height: 30px;
        font-size: $code-font-size;
        line-height: 1.9;
        font-weight: bold;
        color: #b1b1b1;
        background: darken($code-background, 3%);
        content: attr(data-lang);
      }
  
    table {
      position: relative;
      border: none;

      code {
        padding: 0;
      }
    }
  
    
  
    .lntd {
      &:first-child {
        width: 10px;
  
        pre {
          margin: 0;
          padding: 40px 7px 10px;
        }
      }
  
      &:last-child {
        vertical-align: top;
  
        pre {
          margin: 0;
          padding: 40px 10px 10px;
        }
      }
    }
  
    table, tr, td {
      margin: 0;
      padding: 0;
      width: 100%;
      border-collapse: collapse;
      border: none;
    }

    /* LineHighlight */  .hl { display: block; width: 100%;background-color: black }
    /* LineNumbersTable */  .lnt { color: #7f7f7f }
    /* LineNumbers */  .ln { padding: 0 0.4em 0 0.4em;color: #7f7f7f }

    .err { color: #960050 } /* Error */
    .c { color: #999999 } /* Comment */
    .err { color: #f2777a } /* Error */
    .k { color: #cc99cc } /* Keyword */
    .l { color: #f99157 } /* Literal */
    .n { color: #cccccc } /* Name */
    .o { color: #66cccc } /* Operator */
    .p { color: #cccccc } /* Punctuation */
    .cm { color: #999999 } /* Comment.Multiline */
    .cp { color: #999999 } /* Comment.Preproc */
    .c1 { color: #999999 } /* Comment.Single */
    .cs { color: #999999 } /* Comment.Special */
    .gd { color: #f2777a } /* Generic.Deleted */
    .ge { font-style: italic } /* Generic.Emph */
    .gh { color: #cccccc; font-weight: bold } /* Generic.Heading */
    .gi { color: #99cc99 } /* Generic.Inserted */
    .gp { color: #999999; font-weight: bold } /* Generic.Prompt */
    .gs { font-weight: bold } /* Generic.Strong */
    .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
    .kc { color: #cc99cc } /* Keyword.Constant */
    .kd { color: #cc99cc } /* Keyword.Declaration */
    .kn { color: #66cccc } /* Keyword.Namespace */
    .kp { color: #cc99cc } /* Keyword.Pseudo */
    .kr { color: #cc99cc } /* Keyword.Reserved */
    .kt { color: #ffcc66 } /* Keyword.Type */
    .ld { color: #99cc99 } /* Literal.Date */
    .m { color: #f99157 } /* Literal.Number */
    .s { color: #99cc99 } /* Literal.String */
    .na { color: #6699cc } /* Name.Attribute */
    .nb { color: #cccccc } /* Name.Builtin */
    .nc { color: #ffcc66 } /* Name.Class */
    .no { color: #f2777a } /* Name.Constant */
    .nd { color: #66cccc } /* Name.Decorator */
    .ni { color: #cccccc } /* Name.Entity */
    .ne { color: #f2777a } /* Name.Exception */
    .nf { color: #6699cc } /* Name.Function */
    .nl { color: #cccccc } /* Name.Label */
    .nn { color: #ffcc66 } /* Name.Namespace */
    .nx { color: #6699cc } /* Name.Other */
    .py { color: #cccccc } /* Name.Property */
    .nt { color: #66cccc } /* Name.Tag */
    .nv { color: #f2777a } /* Name.Variable */
    .ow { color: #66cccc } /* Operator.Word */
    .w { color: #cccccc } /* Text.Whitespace */
    .mf { color: #f99157 } /* Literal.Number.Float */
    .mh { color: #f99157 } /* Literal.Number.Hex */
    .mi { color: #f99157 } /* Literal.Number.Integer */
    .mo { color: #f99157 } /* Literal.Number.Oct */
    .sb { color: #99cc99 } /* Literal.String.Backtick */
    .sc { color: #cccccc } /* Literal.String.Char */
    .sd { color: #999999 } /* Literal.String.Doc */
    .s2 { color: #99cc99 } /* Literal.String.Double */
    .se { color: #f99157 } /* Literal.String.Escape */
    .sh { color: #99cc99 } /* Literal.String.Heredoc */
    .si { color: #f99157 } /* Literal.String.Interpol */
    .sx { color: #99cc99 } /* Literal.String.Other */
    .sr { color: #99cc99 } /* Literal.String.Regex */
    .s1 { color: #99cc99 } /* Literal.String.Single */
    .ss { color: #99cc99 } /* Literal.String.Symbol */
    .bp { color: #cccccc } /* Name.Builtin.Pseudo */
    .vc { color: #f2777a } /* Name.Variable.Class */
    .vg { color: #f2777a } /* Name.Variable.Global */
    .vi { color: #f2777a } /* Name.Variable.Instance */
    .il { color: #f99157 } /* Literal.Number.Integer.Long */
}