$code: #222;
$code-comment: #797979;
$code-selector: $white;
$code-string: #b0c975;
$code-property: #c27628;
$code-regex: #9b71c6;
$code-function: #e5a638;
$code-variable: #fdfba8;
$code-number: #8799b0;
$code-important: #e45734;
$code-tag: #ffd893;

code[class*="language-"],
pre[class*="language-"] {
  color: $white;
  background: none;
  font-family: $font-monospace;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  font-size: 0.875rem;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] code {
  float: left;
  padding: 0 15px 0 0;
}

pre[class*="language-"],
:not(pre) > code[class*="language-"] {
  background: $code;
}

pre[class*="language-"] {
  padding: 15px;
  margin: 1em 0;
  overflow: auto;
  border-radius: 8px;
}

:not(pre) > code[class*="language-"] {
  padding: 5px 10px;
  line-height: 1;
  border-radius: 3px;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: $code-comment;
}

.token.selector,
.token.operator,
.token.punctuation {
  color: $code-selector;
}

.token.namespace {
  opacity: 0.7;
}

.token.tag,
.token.boolean {
  color: $code-tag;
}

.token.atrule,
.token.attr-value,
.token.hex,
.token.string {
  color: $code-string;
}

.token.property,
.token.entity,
.token.url,
.token.attr-name,
.token.keyword {
  color: $code-property;
}

.token.regex {
  color: $code-regex;
}

.token.entity {
  cursor: help;
}

.token.function,
.token.constant {
  color: $code-function;
}

.token.variable {
  color: $code-variable;
}

.token.number {
  color: $code-number;
}

.token.important,
.token.deliminator {
  color: $code-important;
}
