This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
prism.scss 2.78 KiB
Newer Older
Lukas Kaltenbrunner's avatar
Lukas Kaltenbrunner committed
/* PrismJS 1.20.0
https://prismjs.com/download.html#themes=prism&languages=css */
/**
 * prism.js default theme for JavaScript, CSS and HTML
 * Based on dabblet (http://dabblet.com)
 * @author Lea Verou
 */

::ng-deep code[class*="language-"],
::ng-deep pre[class*="language-"] {
  color: black;
  background: none;
  text-shadow: 0 1px white;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  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;
}

::ng-deep pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
::ng-deep code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
  text-shadow: none;
  background: #b3d4fc;
}

::ng-deep pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
::ng-deep code[class*="language-"]::selection, code[class*="language-"] ::selection {
  text-shadow: none;
  background: #b3d4fc;
}

::ng-deep @media print {
  ::ng-deep code[class*="language-"],
  ::ng-deep pre[class*="language-"] {
    text-shadow: none;
  }
}

/* Code blocks */
::ng-deep pre[class*="language-"] {
  padding: 1em;
  margin: .5em 0;
  overflow: auto;
}

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

/* Inline code */
::ng-deep :not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
}

::ng-deep .token.comment,
::ng-deep .token.prolog,
::ng-deep .token.doctype,
::ng-deep .token.cdata {
  color: slategray;
}

::ng-deep .token.punctuation {
  color: #999;
}

::ng-deep .token.namespace {
  opacity: .7;
}

::ng-deep .token.property,
::ng-deep .token.tag,
::ng-deep .token.boolean,
::ng-deep .token.number,
::ng-deep .token.constant,
::ng-deep .token.symbol,
::ng-deep .token.deleted {
  color: #905;
}

::ng-deep .token.selector,
::ng-deep .token.attr-name,
::ng-deep .token.string,
::ng-deep .token.char,
::ng-deep .token.builtin,
::ng-deep .token.inserted {
  color: #690;
}

::ng-deep .token.operator,
::ng-deep .token.entity,
::ng-deep .token.url,
::ng-deep .language-css .token.string,
::ng-deep .style .token.string {
  color: #9a6e3a;
  /* This background color was intended by the author of this theme. */
  background: hsla(0, 0%, 100%, .5);
}

::ng-deep .token.atrule,
.token.attr-value,
.token.keyword {
  color: #07a;
}

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

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

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

.token.entity {
  cursor: help;
}