/**
 * Prism Theme for TypeScript Syntax Highlighting
 * Light theme inspired by GitHub
 */

code[class*="language-"],
pre[class*="language-"] {
  color: #24292e;
  font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  font-size: 14px;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  tab-size: 2;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  background: #f6f8fa;
  border-radius: 6px;
  border: 1px solid #e1e4e8;
}

:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  background: #f6f8fa;
  color: #24292e;
  border: 1px solid #e1e4e8;
}

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

.token.punctuation {
  color: #24292e;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.function-name,
.token.constant,
.token.symbol {
  color: #005cc5;
}

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

.token.operator,
.token.entity,
.token.url,
.token.variable {
  color: #24292e;
}

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

.token.inserted {
  color: #22863a;
}

.token.deleted {
  color: #b31d28;
}

.token.regex,
.token.important {
  color: #e36209;
}

.language-css .token.string,
.style .token.string {
  color: #032f62;
}

.token.important {
  font-weight: normal;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

.token.namespace {
  opacity: 0.7;
}

/* TypeScript specific */
.language-typescript .token.class-name,
.language-typescript .token.interface-name {
  color: #6f42c1;
}

.language-typescript .token.type-annotation {
  color: #d73a49;
}

.language-typescript .token.decorator {
  color: #6f42c1;
}

/* Line highlighting */
pre[data-line] {
  position: relative;
}

pre[class*="language-"] > code[class*="language-"] {
  position: relative;
  z-index: 1;
}

.line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: inset 5px 0 0 #d73a49;
  z-index: 0;
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}
