/*
Custom devman code style.
Based on default prism.js theme https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+diff+django+docker+http+json+json5+less+makefile+markdown+markup-templating+nginx+powershell+python+jsx+tsx+rest+sass+scss+sql+typescript+wasm+xml-doc+yaml&plugins=line-highlight+line-numbers+diff-highlight
Inspired by https://github.com/pygments/pygments/blob/master/pygments/styles/friendly.py
*/

pre {
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  display: block;
  color: #333;
  text-shadow: 0 1px white;
  font-size: 1em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;

  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;

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

  padding: 0.75em;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

@media print {
  pre {
    text-shadow: none;
  }
}

pre *::selection {
  text-shadow: none;
  background: #b3d4fc;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #60a0b0;
  font-style: italic;
}

.token.punctuation {
  color: #999;
}

.token.namespace {
  font-weight: bold;
  color: #0e84b5;
}

.token.tag {
  color: #062873;
  font-weight: bold;
}

.token.property,
.token.boolean,
.token.number,
.token.symbol {
  color: #40a070;
}

.token.constant {
  color: #60add5;
}

.token.deleted {
  color: #A00000;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char {
  color: #4070a0;
}

.token.builtin {
  color: #007020;
}
.token.decorator{

  color: #555555;
  font-weight: bold;
}

.token.inserted {
  color: #00A000;
}

.token.operator,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #666666;
}
.token.entity {
  font-weight: bold;
  color: #d55537;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #007020;
  font-weight: bold;
}

.token.function {
  color: #06287e;
}
.token.class-name {
  color: #0e84b5;
  font-weight: bold;
}

.token.regex,
.token.important,
.token.variable {
  color: #bb60d5;
}

.token.important,
.token.bold {
  font-weight: bold;
}
.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}

.line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: 0;
  margin-top: 1em; /* Same as .prism’s padding-top */

  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));

  pointer-events: none;

  line-height: inherit;
  white-space: pre;
}

.line-highlight:before,
.line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

.line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}

.line-numbers .line-highlight:before,
.line-numbers .line-highlight:after {
  content: none;
}

pre[id].linkable-line-numbers span.line-numbers-rows {
  pointer-events: all;
}
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
  cursor: pointer;
}
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
  background-color: rgba(128, 128, 128, .2);
}

pre.line-numbers {
  position: relative;
  padding-left: 3.8em;
  counter-reset: linenumber;
}

pre.line-numbers > code {
  position: relative;
  white-space: inherit;
}

.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  font-size: 100%;
  left: -3.8em;
  width: 3em; /* works for line-numbers below 1000 lines */
  letter-spacing: -1px;
  border-right: 1px solid #999;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

}

.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}

.line-numbers-rows > span:before {
  content: counter(linenumber);
  color: #999;
  display: block;
  padding-right: 0.8em;
  text-align: right;
}

pre.diff-highlight > code .token.deleted:not(.prefix){
  background-color: rgba(255, 0, 0, .1);
  color: inherit;
  display: block;
}

pre.diff-highlight > code .token.inserted:not(.prefix){
  background-color: rgba(0, 255, 128, .1);
  color: inherit;
  display: block;
}

