PageRenderTime 53ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/css/prism.css

https://github.com/Ronmi/ronmi.github.com
CSS | 239 lines | 200 code | 31 blank | 8 comment | 0 complexity | bf50cbb8c3ace0cc36813e1368806fd4 MD5 | raw file
  1. /* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+abap+actionscript+apacheconf+apl+applescript+aspnet+autohotkey+bash+basic+bison+brainfuck+c+csharp+cpp+coffeescript+css-extras+d+dart+diff+docker+eiffel+elixir+erlang+fsharp+fortran+gherkin+git+glsl+go+groovy+haml+handlebars+haskell+http+inform7+ini+j+jade+java+julia+keyman+latex+less+lolcode+makefile+markdown+matlab+mel+mizar+monkey+nasm+nim+nsis+objectivec+ocaml+pascal+perl+php+php-extras+powershell+processing+prolog+pure+python+q+qore+r+jsx+rest+rip+ruby+rust+sas+sass+scss+scala+scheme+smalltalk+smarty+sql+stylus+swift+tcl+textile+twig+typescript+verilog+vhdl+wiki+yaml&plugins=line-highlight+line-numbers+file-highlight+show-language */
  2. /**
  3. * okaidia theme for JavaScript, CSS and HTML
  4. * Loosely based on Monokai textmate theme by http://www.monokai.nl/
  5. * @author ocodia
  6. */
  7. code[class*="language-"],
  8. pre[class*="language-"] {
  9. color: #f8f8f2;
  10. text-shadow: 0 1px rgba(0, 0, 0, 0.3);
  11. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  12. direction: ltr;
  13. text-align: left;
  14. white-space: pre;
  15. word-spacing: normal;
  16. word-break: normal;
  17. word-wrap: normal;
  18. line-height: 1.5;
  19. -moz-tab-size: 4;
  20. -o-tab-size: 4;
  21. tab-size: 4;
  22. -webkit-hyphens: none;
  23. -moz-hyphens: none;
  24. -ms-hyphens: none;
  25. hyphens: none;
  26. }
  27. /* Code blocks */
  28. pre[class*="language-"] {
  29. padding: 1em;
  30. margin: .5em 0;
  31. overflow: auto;
  32. border-radius: 0.3em;
  33. }
  34. :not(pre) > code[class*="language-"],
  35. pre[class*="language-"] {
  36. background: #272822;
  37. }
  38. /* Inline code */
  39. :not(pre) > code[class*="language-"] {
  40. padding: .1em;
  41. border-radius: .3em;
  42. }
  43. .token.comment,
  44. .token.prolog,
  45. .token.doctype,
  46. .token.cdata {
  47. color: slategray;
  48. }
  49. .token.punctuation {
  50. color: #f8f8f2;
  51. }
  52. .namespace {
  53. opacity: .7;
  54. }
  55. .token.property,
  56. .token.tag,
  57. .token.constant,
  58. .token.symbol,
  59. .token.deleted {
  60. color: #f92672;
  61. }
  62. .token.boolean,
  63. .token.number {
  64. color: #ae81ff;
  65. }
  66. .token.selector,
  67. .token.attr-name,
  68. .token.string,
  69. .token.char,
  70. .token.builtin,
  71. .token.inserted {
  72. color: #a6e22e;
  73. }
  74. .token.operator,
  75. .token.entity,
  76. .token.url,
  77. .language-css .token.string,
  78. .style .token.string,
  79. .token.variable {
  80. color: #f8f8f2;
  81. }
  82. .token.atrule,
  83. .token.attr-value,
  84. .token.function {
  85. color: #e6db74;
  86. }
  87. .token.keyword {
  88. color: #66d9ef;
  89. }
  90. .token.regex,
  91. .token.important {
  92. color: #fd971f;
  93. }
  94. .token.important,
  95. .token.bold {
  96. font-weight: bold;
  97. }
  98. .token.italic {
  99. font-style: italic;
  100. }
  101. .token.entity {
  102. cursor: help;
  103. }
  104. pre[data-line] {
  105. position: relative;
  106. padding: 1em 0 1em 3em;
  107. }
  108. .line-highlight {
  109. position: absolute;
  110. left: 0;
  111. right: 0;
  112. padding: inherit 0;
  113. margin-top: 1em; /* Same as .prism’s padding-top */
  114. background: hsla(24, 20%, 50%,.08);
  115. background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  116. background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  117. background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  118. background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  119. pointer-events: none;
  120. line-height: inherit;
  121. white-space: pre;
  122. }
  123. .line-highlight:before,
  124. .line-highlight[data-end]:after {
  125. content: attr(data-start);
  126. position: absolute;
  127. top: .4em;
  128. left: .6em;
  129. min-width: 1em;
  130. padding: 0 .5em;
  131. background-color: hsla(24, 20%, 50%,.4);
  132. color: hsl(24, 20%, 95%);
  133. font: bold 65%/1.5 sans-serif;
  134. text-align: center;
  135. vertical-align: .3em;
  136. border-radius: 999px;
  137. text-shadow: none;
  138. box-shadow: 0 1px white;
  139. }
  140. .line-highlight[data-end]:after {
  141. content: attr(data-end);
  142. top: auto;
  143. bottom: .4em;
  144. }
  145. pre.line-numbers {
  146. position: relative;
  147. padding-left: 3.8em;
  148. counter-reset: linenumber;
  149. }
  150. pre.line-numbers > code {
  151. position: relative;
  152. }
  153. .line-numbers .line-numbers-rows {
  154. position: absolute;
  155. pointer-events: none;
  156. top: 0;
  157. font-size: 100%;
  158. left: -3.8em;
  159. width: 3em; /* works for line-numbers below 1000 lines */
  160. letter-spacing: -1px;
  161. border-right: 1px solid #999;
  162. -webkit-user-select: none;
  163. -moz-user-select: none;
  164. -ms-user-select: none;
  165. user-select: none;
  166. }
  167. .line-numbers-rows > span {
  168. pointer-events: none;
  169. display: block;
  170. counter-increment: linenumber;
  171. line-height: 1.66;
  172. }
  173. .line-numbers-rows > span:before {
  174. content: counter(linenumber);
  175. color: #999;
  176. display: block;
  177. padding-right: 0.8em;
  178. text-align: right;
  179. }
  180. pre[class*='language-'] {
  181. position: relative;
  182. }
  183. pre[class*='language-'][data-language]::before {
  184. content: attr(data-language);
  185. color: black;
  186. background-color: #CFCFCF;
  187. display: inline-block;
  188. position: absolute;
  189. bottom: auto;
  190. left: auto;
  191. top: 0;
  192. right: 0;
  193. width: auto;
  194. height: auto;
  195. font-size: 0.9em;
  196. border-radius: 0 0 0 5px;
  197. padding: 0 0.5em;
  198. text-shadow: none;
  199. z-index: 1;
  200. -webkit-box-shadow: none;
  201. -moz-box-shadow: none;
  202. box-shadow: none;
  203. -webkit-transform: none;
  204. -moz-transform: none;
  205. -ms-transform: none;
  206. -o-transform: none;
  207. transform: none;
  208. }