_github-syntax-highlighting.scss 1.7 KB
Newer Older
Miykael_xxm's avatar
init  
Miykael_xxm 已提交
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
code[class*="language-"],
pre[class*="language-"] {
  color: #24292e;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata,
.token.plain-text {
  color: #6a737d;
}

.token.atrule,
.token.attr-value,
.token.keyword,
.token.operator {
  color: #d73a49;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #22863a;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #032f62;
}

.token.function,
.token.class-name {
  color: #6f42c1;
}

/* language-specific */

/* JSX */
.language-jsx .token.punctuation,
.language-jsx .token.tag .token.punctuation,
.language-jsx .token.tag .token.script,
.language-jsx .token.plain-text {
  color: #24292e;
}

.language-jsx .token.tag .token.attr-name {
  color: #6f42c1;
}

.language-jsx .token.tag .token.class-name {
  color: #005cc5;
}

.language-jsx .token.tag .token.script-punctuation,
.language-jsx .token.attr-value .token.punctuation:first-child {
  color: #d73a49;
}

.language-jsx .token.attr-value {
  color: #032f62;
}

.language-jsx span[class="comment"] {
  color: pink;
}

/* HTML */
.language-html .token.tag .token.punctuation {
  color: #24292e;
}

.language-html .token.tag .token.attr-name {
  color: #6f42c1;
}

.language-html .token.tag .token.attr-value,
.language-html
  .token.tag
  .token.attr-value
  .token.punctuation:not(:first-child) {
  color: #032f62;
}

/* CSS */
.language-css .token.selector {
  color: #6f42c1;
}

.language-css .token.property {
  color: #005cc5;
}