highlight.scss 1.3 KB
Newer Older
W
wangbei16 已提交
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
code {
  position: relative;
  display: block;
  padding: 16px;
  overflow-x: auto;
  color: $nutui-doc-code-color;
  font-weight: 400;
  font-size: 14px;
  font-family: $nutui-doc-code-font-family;
  line-height: 26px;
  white-space: pre-wrap;
  word-wrap: break-word;
  -webkit-font-smoothing: auto;
  background-color: #fafafa;
  border-radius: 16px;
}

pre {
  margin: 20px 0 0;

  + p {
    margin-top: 20px;
  }
}

.hljs {
  display: block;
  padding: 30px;
  overflow-x: auto;
  background: #f7f8fa;
}

O
oasis-cloud 已提交
33 34 35 36
.hljs-comment,
.hljs-quote {
  color: #a0a1a7;
  font-style: italic;
W
wangbei16 已提交
37 38
}

O
oasis-cloud 已提交
39 40 41 42
.hljs-doctag,
.hljs-formula,
.hljs-keyword {
  color: #a626a4;
W
wangbei16 已提交
43 44
}

O
oasis-cloud 已提交
45 46 47 48 49 50
.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
  color: #e45649;
W
wangbei16 已提交
51 52
}

O
oasis-cloud 已提交
53 54
.hljs-literal {
  color: #0184bb;
W
wangbei16 已提交
55 56
}

O
oasis-cloud 已提交
57 58 59
.hljs-addition,
.hljs-attribute,
.hljs-meta-string,
W
wangbei16 已提交
60
.hljs-regexp,
O
oasis-cloud 已提交
61 62
.hljs-string {
  color: #50a14f;
W
wangbei16 已提交
63 64 65
}

.hljs-built_in,
O
oasis-cloud 已提交
66 67 68 69 70 71 72 73 74 75
.hljs-class .hljs-title {
  color: #c18401;
}

.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
W
wangbei16 已提交
76
.hljs-type,
O
oasis-cloud 已提交
77 78 79 80 81 82 83
.hljs-variable {
  color: #986801;
}

.hljs-bullet,
.hljs-link,
.hljs-meta,
W
wangbei16 已提交
84
.hljs-selector-id,
O
oasis-cloud 已提交
85 86 87
.hljs-symbol,
.hljs-title {
  color: #4078f2;
W
wangbei16 已提交
88 89 90 91 92
}

.hljs-emphasis {
  font-style: italic;
}
O
oasis-cloud 已提交
93 94 95 96 97 98 99 100

.hljs-strong {
  font-weight: 700;
}

.hljs-link {
  text-decoration: underline;
}