No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

prism-coy.css 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /**
  2. * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML
  3. * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://workshop.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category/sessions/basics);
  4. * @author Tim Shedor
  5. */
  6. code[class*="language-"],
  7. pre[class*="language-"] {
  8. color: black;
  9. background: none;
  10. font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  11. text-align: left;
  12. white-space: pre;
  13. word-spacing: normal;
  14. word-break: normal;
  15. word-wrap: normal;
  16. line-height: 1.5;
  17. -moz-tab-size: 4;
  18. -o-tab-size: 4;
  19. tab-size: 4;
  20. -webkit-hyphens: none;
  21. -moz-hyphens: none;
  22. -ms-hyphens: none;
  23. hyphens: none;
  24. }
  25. /* Code blocks */
  26. pre[class*="language-"] {
  27. position: relative;
  28. margin: .5em 0;
  29. overflow: visible;
  30. padding: 0;
  31. }
  32. pre[class*="language-"]>code {
  33. position: relative;
  34. border-left: 10px solid #358ccb;
  35. box-shadow: -1px 0px 0px 0px #358ccb, 0px 0px 0px 1px #dfdfdf;
  36. background-color: #fdfdfd;
  37. background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.04) 50%);
  38. background-size: 3em 3em;
  39. background-origin: content-box;
  40. background-attachment: local;
  41. }
  42. code[class*="language"] {
  43. max-height: inherit;
  44. height: inherit;
  45. padding: 0 1em;
  46. display: block;
  47. overflow: auto;
  48. }
  49. /* Margin bottom to accomodate shadow */
  50. :not(pre) > code[class*="language-"],
  51. pre[class*="language-"] {
  52. background-color: #fdfdfd;
  53. -webkit-box-sizing: border-box;
  54. -moz-box-sizing: border-box;
  55. box-sizing: border-box;
  56. margin-bottom: 1em;
  57. }
  58. /* Inline code */
  59. :not(pre) > code[class*="language-"] {
  60. position: relative;
  61. padding: .2em;
  62. border-radius: 0.3em;
  63. color: #c92c2c;
  64. border: 1px solid rgba(0, 0, 0, 0.1);
  65. display: inline;
  66. white-space: normal;
  67. }
  68. pre[class*="language-"]:before,
  69. pre[class*="language-"]:after {
  70. content: '';
  71. z-index: -2;
  72. display: block;
  73. position: absolute;
  74. bottom: 0.75em;
  75. left: 0.18em;
  76. width: 40%;
  77. height: 20%;
  78. max-height: 13em;
  79. box-shadow: 0px 13px 8px #979797;
  80. -webkit-transform: rotate(-2deg);
  81. -moz-transform: rotate(-2deg);
  82. -ms-transform: rotate(-2deg);
  83. -o-transform: rotate(-2deg);
  84. transform: rotate(-2deg);
  85. }
  86. :not(pre) > code[class*="language-"]:after,
  87. pre[class*="language-"]:after {
  88. right: 0.75em;
  89. left: auto;
  90. -webkit-transform: rotate(2deg);
  91. -moz-transform: rotate(2deg);
  92. -ms-transform: rotate(2deg);
  93. -o-transform: rotate(2deg);
  94. transform: rotate(2deg);
  95. }
  96. .token.comment,
  97. .token.block-comment,
  98. .token.prolog,
  99. .token.doctype,
  100. .token.cdata {
  101. color: #7D8B99;
  102. }
  103. .token.punctuation {
  104. color: #5F6364;
  105. }
  106. .token.property,
  107. .token.tag,
  108. .token.boolean,
  109. .token.number,
  110. .token.function-name,
  111. .token.constant,
  112. .token.symbol,
  113. .token.deleted {
  114. color: #c92c2c;
  115. }
  116. .token.selector,
  117. .token.attr-name,
  118. .token.string,
  119. .token.char,
  120. .token.function,
  121. .token.builtin,
  122. .token.inserted {
  123. color: #2f9c0a;
  124. }
  125. .token.operator,
  126. .token.entity,
  127. .token.url,
  128. .token.variable {
  129. color: #a67f59;
  130. background: rgba(255, 255, 255, 0.5);
  131. }
  132. .token.atrule,
  133. .token.attr-value,
  134. .token.keyword,
  135. .token.class-name {
  136. color: #1990b8;
  137. }
  138. .token.regex,
  139. .token.important {
  140. color: #e90;
  141. }
  142. .language-css .token.string,
  143. .style .token.string {
  144. color: #a67f59;
  145. background: rgba(255, 255, 255, 0.5);
  146. }
  147. .token.important {
  148. font-weight: normal;
  149. }
  150. .token.bold {
  151. font-weight: bold;
  152. }
  153. .token.italic {
  154. font-style: italic;
  155. }
  156. .token.entity {
  157. cursor: help;
  158. }
  159. .namespace {
  160. opacity: .7;
  161. }
  162. @media screen and (max-width: 767px) {
  163. pre[class*="language-"]:before,
  164. pre[class*="language-"]:after {
  165. bottom: 14px;
  166. box-shadow: none;
  167. }
  168. }
  169. /* Plugin styles */
  170. .token.tab:not(:empty):before,
  171. .token.cr:before,
  172. .token.lf:before {
  173. color: #e0d7d1;
  174. }
  175. /* Plugin styles: Line Numbers */
  176. pre[class*="language-"].line-numbers.line-numbers {
  177. padding-left: 0;
  178. }
  179. pre[class*="language-"].line-numbers.line-numbers code {
  180. padding-left: 3.8em;
  181. }
  182. pre[class*="language-"].line-numbers.line-numbers .line-numbers-rows {
  183. left: 0;
  184. }
  185. /* Plugin styles: Line Highlight */
  186. pre[class*="language-"][data-line] {
  187. padding-top: 0;
  188. padding-bottom: 0;
  189. padding-left: 0;
  190. }
  191. pre[data-line] code {
  192. position: relative;
  193. padding-left: 4em;
  194. }
  195. pre .line-highlight {
  196. margin-top: 0;
  197. }