1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/assets/stylesheets/prism/rails-guides.css
Petrik ceb54819bd Use prism.js for code highlighting in guides [ci skip]
Replace SyntaxHighlighter with prism.js. SyntaxHighlighter does not seem
to be maintained. Prism.js seems a nice alternative with support for
Ruby, javascript, erb and yaml. Prism.js uses the MIT License.
https://github.com/PrismJS/prism

For bash a customized definition of the bash+shell-session themes is
used with the following comamnds  added commands:
brew, bundle, cat, git, gem, rackup, rake, rails, ruby, rubocop and
  yarn
2019-12-16 19:52:13 +01:00

23 lines
407 B
CSS

code[class*="language-"],
pre[class*="language-"] {
white-space: pre-wrap;
text-shadow: none;
color: #222;
background: none;
}
pre[class*="language-"] {
padding: 0;
}
.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
background: none;
}
.token.regex, .token.important, .token.variable {
color: #a04a2f;
}
.token.output {
color: slategray;
}