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

_code.scss « _post « _partial « css « assets - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6be97951b23137d0e3ef5f1c27a280f277138e0a (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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
code,
pre {
  padding: 7px;
  font-size: $code-font-size;
  font-family: $code-font-family;
  background: $code-background-color;

  .dark-theme & {
    background: $code-background-color-dark;
  }
}

code {
  padding: 3px 5px;
  border-radius: 4px;
  color: $code-color;
  background: $code-background-color;

  .dark-theme & {
    color: $code-color-dark;
    background: $code-background-color-dark;
  }
}

p > code {
  background: darken($code-background-color, 3%);

  .dark-theme & {
    color: $code-color-dark;
    background: darken($code-background-color-dark, 3%);
  }
}

// chroma
.highlight > .chroma {
  margin: 1em 0;
  border-radius: 6px;
  overflow-x: auto;
  position: relative;
  background: $code-background-color;

  code {
    padding: 0;
  }

  table {
    position: relative;

    &::after {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      padding: 2px 7px;
      font-size: $code-font-size;
      font-weight: bold;
      color: darken($code-info-color, 10%);
      background: darken($code-background-color, 3%);
      content: 'Code';

      .dark-theme & {
        background: darken($code-background-color-dark, 3%);
      }
    }
  }

  @each $sign, $text in $code-type-list {
    &.#{$sign} table::after {
      content: $text;
    }
  }

  .lntd {
    // Fix code block null line height and
    // Synchronous gutter and code line highly.
    line-height: round($code-font-size * 1.5);

    &:first-child {
      width: 10px;

      pre {
        margin: 0;
        padding: 38px 7px 8px;
      }
    }

    &:last-child {
      vertical-align: top;

      pre {
        margin: 0;
        padding: 38px 10px 8px;
      }
    }
  }

  table, tr, td {
    margin: 0;
    padding: 0;
    width: 100%;
    border-collapse: collapse;
    border-color: $code-background-color;

    .dark-theme & {
      border-color: $code-background-color-dark;
    }
  }

  /* LineNumbersTable */  .lnt { color: $code-info-color; }
  /* LineHighlight */  .hl {
    display: block;
    width: 100%;
    background-color: darken($code-background-color, 5%);

    .dark-theme & {
      background-color: darken($code-background-color-dark, 5%);
    }
  }
}

.highlight {
  /* Parentheses */ .p { color: #A9A9B3 }
  /* Keyword */  .k { color: #859900 }
  /* KeywordConstant */  .kc { color: #859900; font-weight: bold }
  /* KeywordDeclaration */  .kd { color: #859900 }
  /* KeywordNamespace */  .kn { color: #dc322f; font-weight: bold }
  /* KeywordPseudo */  .kp { color: #859900 }
  /* KeywordReserved */  .kr { color: #859900 }
  /* KeywordType */  .kt { color: #859900; font-weight: bold }
  /* Name */  .n { color: #268bd2 }
  /* NameAttribute */  .na { color: #268bd2 }
  /* NameBuiltin */  .nb { color: #cb4b16 }
  /* NameBuiltinPseudo */  .bp { color: #268bd2 }
  /* NameClass */  .nc { color: #cb4b16 }
  /* NameConstant */  .no { color: #268bd2 }
  /* NameDecorator */  .nd { color: #268bd2 }
  /* NameEntity */  .ni { color: #268bd2 }
  /* NameException */  .ne { color: #268bd2 }
  /* NameFunction */  .nf { color: #268bd2 }
  /* NameFunctionMagic */  .fm { color: #268bd2 }
  /* NameLabel */  .nl { color: #268bd2 }
  /* NameNamespace */  .nn { color: #268bd2 }
  /* NameOther */  .nx { color: #268bd2 }
  /* NameProperty */  .py { color: #268bd2 }
  /* NameTag */  .nt { color: #268bd2; font-weight: bold }
  /* NameVariable */  .nv { color: #268bd2 }
  /* NameVariableClass */  .vc { color: #268bd2 }
  /* NameVariableGlobal */  .vg { color: #268bd2 }
  /* NameVariableInstance */  .vi { color: #268bd2 }
  /* NameVariableMagic */  .vm { color: #268bd2 }
  /* Literal */  .l { color: #2aa198 }
  /* LiteralDate */  .ld { color: #2aa198 }
  /* LiteralString */  .s { color: #2aa198 }
  /* LiteralStringAffix */  .sa { color: #2aa198 }
  /* LiteralStringBacktick */  .sb { color: #2aa198 }
  /* LiteralStringChar */  .sc { color: #2aa198 }
  /* LiteralStringDelimiter */  .dl { color: #2aa198 }
  /* LiteralStringDoc */  .sd { color: #2aa198 }
  /* LiteralStringDouble */  .s2 { color: #2aa198 }
  /* LiteralStringEscape */  .se { color: #2aa198 }
  /* LiteralStringHeredoc */  .sh { color: #2aa198 }
  /* LiteralStringInterpol */  .si { color: #2aa198 }
  /* LiteralStringOther */  .sx { color: #2aa198 }
  /* LiteralStringRegex */  .sr { color: #2aa198 }
  /* LiteralStringSingle */  .s1 { color: #2aa198 }
  /* LiteralStringSymbol */  .ss { color: #2aa198 }
  /* LiteralNumber */  .m { color: #2aa198; font-weight: bold }
  /* LiteralNumberBin */  .mb { color: #2aa198; font-weight: bold }
  /* LiteralNumberFloat */  .mf { color: #2aa198; font-weight: bold }
  /* LiteralNumberHex */  .mh { color: #2aa198; font-weight: bold }
  /* LiteralNumberInteger */  .mi { color: #2aa198; font-weight: bold }
  /* LiteralNumberIntegerLong */  .il { color: #2aa198; font-weight: bold }
  /* LiteralNumberOct */  .mo { color: #2aa198; font-weight: bold }
  /* OperatorWord */  .ow { color: #859900 }
  /* Comment */  .c { color: #93a1a1; font-style: italic }
  /* CommentHashbang */  .ch { color: #93a1a1; font-style: italic }
  /* CommentMultiline */  .cm { color: #93a1a1; font-style: italic }
  /* CommentSingle */  .c1 { color: #93a1a1; font-style: italic }
  /* CommentSpecial */  .cs { color: #93a1a1; font-style: italic }
  /* CommentPreproc */  .cp { color: #93a1a1; font-style: italic }
  /* CommentPreprocFile */  .cpf { color: #93a1a1; font-style: italic }
  /* Generic */  .g { color: #d33682 }
  /* GenericDeleted */  .gd { color: #b58900 }
  /* GenericEmph */  .ge { color: #d33682 }
  /* GenericError */  .gr { color: #d33682 }
  /* GenericHeading */  .gh { color: #d33682 }
  /* GenericInserted */  .gi { color: #859900 }
  /* GenericOutput */  .go { color: #d33682 }
  /* GenericPrompt */  .gp { color: #d33682 }
  /* GenericStrong */  .gs { color: #d33682 }
  /* GenericSubheading */  .gu { color: #d33682 }
  /* GenericTraceback */  .gt { color: #d33682 }

  .dark-theme & {
    background: $code-background-color-dark;

    /* Parentheses */ .p { color: #A9A9B3 }
    /* Keyword */ .k { color: #D371E3 }
    /* KeywordConstant */ .kc { color: #D371E3 }
    /* KeywordDeclaration */ .kd { color: #D371E3 }
    /* KeywordNamespace */ .kn { color: #D371E3 }
    /* KeywordPseudo */ .kp { color: #D371E3 }
    /* KeywordReserved */ .kr { color: #D371E3 }
    /* KeywordType */ .kt { color: #8be9fd }
    /* NameAttribute */ .na { color: #41B1F5 }
    /* NameBuiltin */ .nb { color: #8be9fd; font-style: italic }
    /* NameClass */ .nc { color: #E5BF78 }
    /* NameFunction */ .nf { color: #19B8C0 }
    /* NameX */ .nx { color: #F16473 }
    /* NameLabel */ .nl { color: #8be9fd; font-style: italic }
    /* NameTag */ .nt { color: #D371E3 }
    /* NameVariable */ .nv { color: #8be9fd; font-style: italic }
    /* NameVariableClass */ .vc { color: #8be9fd; font-style: italic }
    /* NameVariableGlobal */ .vg { color: #8be9fd; font-style: italic }
    /* NameVariableInstance */ .vi { color: #8be9fd; font-style: italic }
    /* LiteralString */ .s { color: #8BC56F }
    /* LiteralStringAffix */ .sa { color: #8BC56F }
    /* LiteralStringBacktick */ .sb { color: #8BC56F }
    /* LiteralStringChar */ .sc { color: #8BC56F }
    /* LiteralStringDelimiter */ .dl { color: #8BC56F }
    /* LiteralStringDoc */ .sd { color: #8BC56F }
    /* LiteralStringDouble */ .s2 { color: #8BC56F }
    /* LiteralStringEscape */ .se { color: #8BC56F }
    /* LiteralStringHeredoc */ .sh { color: #8BC56F }
    /* LiteralStringInterpol */ .si { color: #8BC56F }
    /* LiteralStringOther */ .sx { color: #8BC56F }
    /* LiteralStringRegex */ .sr { color: #8BC56F }
    /* LiteralStringSingle */ .s1 { color: #8BC56F }
    /* LiteralStringSymbol */ .ss { color: #8BC56F }
    /* LiteralNumber */ .m { color: #bd93f9 }
    /* LiteralNumberBin */ .mb { color: #bd93f9 }
    /* LiteralNumberFloat */ .mf { color: #bd93f9 }
    /* LiteralNumberHex */ .mh { color: #bd93f9 }
    /* LiteralNumberInteger */ .mi { color: #bd93f9 }
    /* LiteralNumberIntegerLong */ .il { color: #bd93f9 }
    /* LiteralNumberOct */ .mo { color: #bd93f9 }
    /* Operator */ .o { color: #D371E3 }
    /* OperatorWord */ .ow { color: #D371E3 }
    /* Comment */ .c { color: #7E848F }
    /* CommentHashbang */ .ch { color: #7E848F }
    /* CommentMultiline */ .cm { color: #7E848F }
    /* CommentSingle */ .c1 { color: #7E848F }
    /* CommentSpecial */ .cs { color: #7E848F }
    /* CommentPreproc */ .cp { color: #D371E3 }
    /* CommentPreprocFile */ .cpf { color: #D371E3 }
    /* GenericDeleted */ .gd { color: #8b080b }
    /* GenericEmph */ .ge { text-decoration: underline }
    /* GenericHeading */ .gh { font-weight: bold }
    /* GenericInserted */ .gi { font-weight: bold }
    /* GenericOutput */ .go { color: #44475a }
    /* GenericSubheading */ .gu { font-weight: bold }
    /* GenericUnderline */ .gl { text-decoration: underline }
  }
}