Skip to content

Commit

Permalink
Convert prism-tomorrow.css to stylus and include it in our main CSS. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and Trott committed Sep 20, 2019
1 parent 10c4e04 commit a7d06fe
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 121 deletions.
4 changes: 3 additions & 1 deletion .stylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"expect": "always",
"error": true
},
"exclude": [],
"exclude": [
"vendor/**"
],
"extendPref": "@extends",
"globalDupe": false,
"groupOutputByFile": true,
Expand Down
1 change: 1 addition & 0 deletions layouts/css/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@import 'page-modules/_prev-next-navigation'
@import 'page-modules/_release-schedule'
@import 'page-modules/_resources'
@import 'vendor/_prism-tomorrow'

.intro
margin-top 140px
Expand Down
99 changes: 99 additions & 0 deletions layouts/css/vendor/_prism-tomorrow.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/**
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
*/

code[class*='language-'],
pre[class*='language-']
color #ccc
font-family Consolas, Monaco, 'Andale Mono', monospace
direction ltr
text-align left
white-space pre
word-spacing normal
word-break 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

/* Code blocks */
pre[class*='language-']
padding 1em
margin 0.5em 0
overflow auto

:not(pre) > code[class*='language-'],
pre[class*='language-']
background #2d2d2d

/* Inline code */
:not(pre) > code[class*='language-']
padding 0.1em
border-radius 0.3em

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata
color #999

.token
&.punctuation
color #ccc
&.function-name
color #6196cc
&.italic
font-style italic
&.entity
cursor help
&.inserted
color green

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted
color #e2777a

.token.boolean,
.token.number,
.token.function
color #f08d49

.token.property,
.token.class-name,
.token.constant,
.token.symbol
color #f8c555

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin
color #cc99cd

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable
color #7ec699

.token.operator,
.token.entity,
.token.url
color #67cdcc

.token.important,
.token.bold
font-weight 700
1 change: 0 additions & 1 deletion layouts/partials/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

</footer>

<link rel="stylesheet" href="/static/css/prism-tomorrow.css" media="all">
<script>
var $scrollToTop = document.getElementById('scroll-to-top');
(window.onscroll = function() {
Expand Down
119 changes: 0 additions & 119 deletions static/css/prism-tomorrow.css

This file was deleted.

0 comments on commit a7d06fe

Please sign in to comment.