Permalink
Browse files

added template files for Prism

  • Loading branch information...
1 parent 4b44be2 commit 9004110548e116dc76f760cfa5e03ed85f2d9fa8 @atelierbram atelierbram committed Aug 19, 2013
Showing with 250 additions and 0 deletions.
  1. +125 −0 templates/prism/dark.css.erb
  2. +125 −0 templates/prism/light.css.erb
@@ -0,0 +1,125 @@
+/*
+
+Name: Base16 <%= @scheme %> Dark
+Author: <%= @author %>
+
+Prism template by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/prism/)
+Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
+
+ */
+
+code[class*="language-"],
+pre[class*="language-"] {
+ color: #<%= @base["07"]["hex"] %>;
+ font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
+ font-size: 14px;
+ line-height: 1.375;
+ direction: ltr;
+ text-align: left;
+ word-spacing: normal;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+ white-space: pre;
+ white-space: pre-wrap;
+ word-break: break-all;
+ word-wrap: break-word;
+ background: #<%= @base["00"]["hex"] %>;
+ color: #<%= @base["05"]["hex"] %>;
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: .5em 0;
+ overflow: auto;
+}
+
+/* Inline code */
+:not(pre) > code[class*="language-"] {
+ padding: .1em;
+ border-radius: .3em;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: #<%= @base["02"]["hex"] %>;
+}
+
+.token.punctuation {
+ color: #<%= @base["05"]["hex"] %>;
+}
+
+.namespace {
+ opacity: .7;
+}
+
+.token.null,
+.token.operator,
+.token.boolean,
+.token.number {
+ color: #<%= @base["09"]["hex"] %>;
+}
+.token.property {
+ color: #<%= @base["0A"]["hex"] %>;
+}
+.token.tag {
+ color: #<%= @base["0D"]["hex"] %>;
+}
+.token.string {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+.token.selector {
+ color: #<%= @base["0E"]["hex"] %>;
+}
+.token.attr-name {
+ color: #<%= @base["09"]["hex"] %>;
+}
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+
+.token.attr-value,
+.token.keyword,
+.token.control,
+.token.directive,
+.token.unit {
+ color: #<%= @base["0B"]["hex"] %>;
+}
+
+.token.statement,
+.token.regex,
+.token.atrule {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+
+.token.placeholder,
+.token.variable {
+ color: #<%= @base["0D"]["hex"] %>;
+}
+
+.token.important {
+ color: #<%= @base["08"]["hex"] %>;
+ font-weight: bold;
+}
+
+.token.entity {
+ cursor: help;
+}
+
+pre > code.highlight {
+ outline: .4em solid red;
+ outline-offset: .4em;
+}
+
@@ -0,0 +1,125 @@
+/*
+
+Name: Base16 <%= @scheme %> Light
+Author: <%= @author %>
+
+Prism template by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/prism/)
+Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
+
+ */
+
+code[class*="language-"],
+pre[class*="language-"] {
+ color: #<%= @base["07"]["hex"] %>;
+ font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;
+ font-size: 14px;
+ line-height: 1.375;
+ direction: ltr;
+ text-align: left;
+ word-spacing: normal;
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+ white-space: pre;
+ white-space: pre-wrap;
+ word-break: break-all;
+ word-wrap: break-word;
+ background: #<%= @base["07"]["hex"] %>;
+ color: #<%= @base["02"]["hex"] %>;
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: .5em 0;
+ overflow: auto;
+}
+
+/* Inline code */
+:not(pre) > code[class*="language-"] {
+ padding: .1em;
+ border-radius: .3em;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: #<%= @base["05"]["hex"] %>;
+}
+
+.token.punctuation {
+ color: #<%= @base["02"]["hex"] %>;
+}
+
+.namespace {
+ opacity: .7;
+}
+
+.token.null,
+.token.operator,
+.token.boolean,
+.token.number {
+ color: #<%= @base["09"]["hex"] %>;
+}
+.token.property {
+ color: #<%= @base["0A"]["hex"] %>;
+}
+.token.tag {
+ color: #<%= @base["0D"]["hex"] %>;
+}
+.token.string {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+.token.selector {
+ color: #<%= @base["0E"]["hex"] %>;
+}
+.token.attr-name {
+ color: #<%= @base["09"]["hex"] %>;
+}
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+
+.token.attr-value,
+.token.keyword,
+.token.control,
+.token.directive,
+.token.unit {
+ color: #<%= @base["0B"]["hex"] %>;
+}
+
+.token.statement,
+.token.regex,
+.token.atrule {
+ color: #<%= @base["0C"]["hex"] %>;
+}
+
+.token.placeholder,
+.token.variable {
+ color: #<%= @base["0D"]["hex"] %>;
+}
+
+.token.important {
+ color: #<%= @base["08"]["hex"] %>;
+ font-weight: bold;
+}
+
+.token.entity {
+ cursor: help;
+}
+
+pre > code.highlight {
+ outline: .4em solid red;
+ outline-offset: .4em;
+}
+

0 comments on commit 9004110

Please sign in to comment.