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