| OLD | NEW |
| 1 /** | 1 /** |
| 2 * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML | 2 * prism.js Coy theme for JavaScript, CoffeeScript, CSS and HTML |
| 3 * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://worksh
op.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category
/sessions/basics); | 3 * Based on https://github.com/tshedor/workshop-wp-theme (Example: http://worksh
op.kansan.com/category/sessions/basics or http://workshop.timshedor.com/category
/sessions/basics); |
| 4 * @author Tim Shedor | 4 * @author Tim Shedor |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 code[class*="language-"], | 7 code[class*="language-"], |
| 8 pre[class*="language-"] { | 8 pre[class*="language-"] { |
| 9 color: black; | 9 color: black; |
| 10 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | 10 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; |
| 11 direction: ltr; | 11 direction: ltr; |
| 12 text-align: left; | 12 text-align: left; |
| 13 white-space: pre; | 13 white-space: pre; |
| 14 word-spacing: normal; | 14 word-spacing: normal; |
| 15 word-break: normal; | 15 word-break: normal; |
| 16 word-wrap: normal; |
| 16 line-height: 1.5; | 17 line-height: 1.5; |
| 17 | 18 |
| 18 -moz-tab-size: 4; | 19 -moz-tab-size: 4; |
| 19 -o-tab-size: 4; | 20 -o-tab-size: 4; |
| 20 tab-size: 4; | 21 tab-size: 4; |
| 21 | 22 |
| 22 -webkit-hyphens: none; | 23 -webkit-hyphens: none; |
| 23 -moz-hyphens: none; | 24 -moz-hyphens: none; |
| 24 -ms-hyphens: none; | 25 -ms-hyphens: none; |
| 25 hyphens: none; | 26 hyphens: none; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 36 background-color: #fdfdfd; | 37 background-color: #fdfdfd; |
| 37 background-image: -webkit-linear-gradient(transparent 50%, rgba(69, 142,
209, 0.04) 50%); | 38 background-image: -webkit-linear-gradient(transparent 50%, rgba(69, 142,
209, 0.04) 50%); |
| 38 background-image: -moz-linear-gradient(transparent 50%, rgba(69, 142, 20
9, 0.04) 50%); | 39 background-image: -moz-linear-gradient(transparent 50%, rgba(69, 142, 20
9, 0.04) 50%); |
| 39 background-image: -ms-linear-gradient(transparent 50%, rgba(69, 142, 209
, 0.04) 50%); | 40 background-image: -ms-linear-gradient(transparent 50%, rgba(69, 142, 209
, 0.04) 50%); |
| 40 background-image: -o-linear-gradient(transparent 50%, rgba(69, 142, 209,
0.04) 50%); | 41 background-image: -o-linear-gradient(transparent 50%, rgba(69, 142, 209,
0.04) 50%); |
| 41 background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.
04) 50%); | 42 background-image: linear-gradient(transparent 50%, rgba(69, 142, 209, 0.
04) 50%); |
| 42 background-size: 3em 3em; | 43 background-size: 3em 3em; |
| 43 background-origin: content-box; | 44 background-origin: content-box; |
| 44 overflow: visible; | 45 overflow: visible; |
| 45 max-height: 30em; | 46 max-height: 30em; |
| 47 padding: 0; |
| 46 } | 48 } |
| 47 | 49 |
| 48 code[class*="language"] { | 50 code[class*="language"] { |
| 49 max-height: inherit; | 51 max-height: inherit; |
| 50 height: 100%; | 52 height: 100%; |
| 51 padding: 0 1em; | 53 padding: 0 1em; |
| 52 display: block; | 54 display: block; |
| 53 overflow: auto; | 55 overflow: auto; |
| 54 } | 56 } |
| 55 | 57 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 67 :not(pre) > code[class*="language-"] { | 69 :not(pre) > code[class*="language-"] { |
| 68 position: relative; | 70 position: relative; |
| 69 padding: .2em; | 71 padding: .2em; |
| 70 -webkit-border-radius: 0.3em; | 72 -webkit-border-radius: 0.3em; |
| 71 -moz-border-radius: 0.3em; | 73 -moz-border-radius: 0.3em; |
| 72 -ms-border-radius: 0.3em; | 74 -ms-border-radius: 0.3em; |
| 73 -o-border-radius: 0.3em; | 75 -o-border-radius: 0.3em; |
| 74 border-radius: 0.3em; | 76 border-radius: 0.3em; |
| 75 color: #c92c2c; | 77 color: #c92c2c; |
| 76 border: 1px solid rgba(0, 0, 0, 0.1); | 78 border: 1px solid rgba(0, 0, 0, 0.1); |
| 79 display: inline; |
| 77 } | 80 } |
| 78 | 81 |
| 79 pre[class*="language-"]:before, | 82 pre[class*="language-"]:before, |
| 80 pre[class*="language-"]:after { | 83 pre[class*="language-"]:after { |
| 81 content: ''; | 84 content: ''; |
| 82 z-index: -2; | 85 z-index: -2; |
| 83 display: block; | 86 display: block; |
| 84 position: absolute; | 87 position: absolute; |
| 85 bottom: 0.75em; | 88 bottom: 0.75em; |
| 86 left: 0.18em; | 89 left: 0.18em; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 padding-bottom: 0; | 225 padding-bottom: 0; |
| 223 padding-left: 0; | 226 padding-left: 0; |
| 224 } | 227 } |
| 225 pre[data-line] code { | 228 pre[data-line] code { |
| 226 position: relative; | 229 position: relative; |
| 227 padding-left: 4em; | 230 padding-left: 4em; |
| 228 } | 231 } |
| 229 pre .line-highlight { | 232 pre .line-highlight { |
| 230 margin-top: 0; | 233 margin-top: 0; |
| 231 } | 234 } |
| OLD | NEW |