|
| 1 | +/* |
| 2 | + Solarized Color Schemes originally by Ethan Schoonover |
| 3 | + http://ethanschoonover.com/solarized |
| 4 | + |
| 5 | + Ported for PrismJS by Hector Matos |
| 6 | + Website: https://krakendev.io |
| 7 | + Twitter Handle: https://twitter.com/allonsykraken) |
| 8 | +*/ |
| 9 | + |
| 10 | +code[class*="language-"], |
| 11 | +pre[class*="language-"] { |
| 12 | + color: #2176c7; |
| 13 | + font-family: Consolas, Monaco, 'Andale Mono', monospace; |
| 14 | + direction: ltr; |
| 15 | + text-align: left; |
| 16 | + white-space: pre; |
| 17 | + word-spacing: normal; |
| 18 | + word-break: normal; |
| 19 | + word-wrap: normal; |
| 20 | + |
| 21 | + line-height: 1.5; |
| 22 | + |
| 23 | + -moz-tab-size: 4; |
| 24 | + -o-tab-size: 4; |
| 25 | + tab-size: 4; |
| 26 | + |
| 27 | + -webkit-hyphens: none; |
| 28 | + -moz-hyphens: none; |
| 29 | + -ms-hyphens: none; |
| 30 | + hyphens: none; |
| 31 | +} |
| 32 | + |
| 33 | +/* Code blocks */ |
| 34 | +pre[class*="language-"] { |
| 35 | + padding: 1em; |
| 36 | + margin: .5em 0; |
| 37 | + overflow: auto; |
| 38 | + border-radius: 0.3em; |
| 39 | +} |
| 40 | + |
| 41 | +:not(pre) > code[class*="language-"], |
| 42 | +pre[class*="language-"] { |
| 43 | + background: #eee8d5; |
| 44 | +} |
| 45 | + |
| 46 | +/* Inline code */ |
| 47 | +:not(pre) > code[class*="language-"] { |
| 48 | + padding: .1em; |
| 49 | + border-radius: .3em; |
| 50 | +} |
| 51 | + |
| 52 | +.token.comment, |
| 53 | +.token.prolog, |
| 54 | +.token.doctype, |
| 55 | +.token.cdata { |
| 56 | + color: #475b62; |
| 57 | +} |
| 58 | + |
| 59 | +.token.punctuation { |
| 60 | + color: #586e75; |
| 61 | +} |
| 62 | + |
| 63 | +.namespace { |
| 64 | + opacity: .7; |
| 65 | +} |
| 66 | + |
| 67 | +.token.property, |
| 68 | +.token.tag, |
| 69 | +.token.constant, |
| 70 | +.token.symbol, |
| 71 | +.token.deleted { |
| 72 | + color: #2176c7; |
| 73 | +} |
| 74 | + |
| 75 | +.token.boolean { |
| 76 | + color: #2176c7; |
| 77 | +} |
| 78 | + |
| 79 | +.token.number, |
| 80 | +.token.selector, |
| 81 | +.token.attr-name, |
| 82 | +.token.string, |
| 83 | +.token.char, |
| 84 | +.token.builtin, |
| 85 | +.token.inserted { |
| 86 | + color: #259286; |
| 87 | +} |
| 88 | + |
| 89 | +.token.operator, |
| 90 | +.token.entity, |
| 91 | +.token.url, |
| 92 | +.language-css .token.string, |
| 93 | +.style .token.string, |
| 94 | +.token.variable { |
| 95 | + color: #5662b5; |
| 96 | +} |
| 97 | + |
| 98 | +.token.keyword, |
| 99 | +.token.atrule, |
| 100 | +.token.attr-value { |
| 101 | + color: #738a05; |
| 102 | +} |
| 103 | + |
| 104 | +.token.function, |
| 105 | +.token.regex, |
| 106 | +.token.important { |
| 107 | + color: #708284; |
| 108 | +} |
| 109 | + |
| 110 | +.token.important, |
| 111 | +.token.bold { |
| 112 | + font-weight: bold; |
| 113 | +} |
| 114 | +.token.italic { |
| 115 | + font-style: italic; |
| 116 | +} |
| 117 | + |
| 118 | +.token.entity { |
| 119 | + cursor: help; |
| 120 | +} |
| 121 | + |
| 122 | +pre.line-numbers { |
| 123 | + position: relative; |
| 124 | + padding-left: 3.8em; |
| 125 | + counter-reset: linenumber; |
| 126 | +} |
| 127 | + |
| 128 | +pre.line-numbers > code { |
| 129 | + position: relative; |
| 130 | +} |
| 131 | + |
| 132 | +.line-numbers .line-numbers-rows { |
| 133 | + position: absolute; |
| 134 | + pointer-events: none; |
| 135 | + top: -0.225em; |
| 136 | + font-size: 100%; |
| 137 | + left: -3.8em; |
| 138 | + width: 3em; /* works for line-numbers below 1000 lines */ |
| 139 | + letter-spacing: -1px; |
| 140 | + border-right: 1px solid #999; |
| 141 | + |
| 142 | + -webkit-user-select: none; |
| 143 | + -moz-user-select: none; |
| 144 | + -ms-user-select: none; |
| 145 | + user-select: none; |
| 146 | + |
| 147 | +} |
| 148 | + |
| 149 | +.line-numbers-rows > span { |
| 150 | + pointer-events: none; |
| 151 | + display: block; |
| 152 | + counter-increment: linenumber; |
| 153 | +} |
| 154 | + |
| 155 | +.line-numbers-rows > span:before { |
| 156 | + content: counter(linenumber); |
| 157 | + color: #999; |
| 158 | + display: block; |
| 159 | + padding-right: 0.8em; |
| 160 | + text-align: right; |
| 161 | +} |
| 162 | +pre[class*='language-'] { |
| 163 | + position: relative; |
| 164 | +} |
| 165 | +pre[class*='language-'][data-language]::before { |
| 166 | + content: attr(data-language); |
| 167 | + color: black; |
| 168 | + background-color: #CFCFCF; |
| 169 | + display: inline-block; |
| 170 | + position: absolute; |
| 171 | + top: 0; |
| 172 | + right: 0; |
| 173 | + font-size: 0.9em; |
| 174 | + border-radius: 0 0 0 5px; |
| 175 | + padding: 0 0.5em; |
| 176 | + text-shadow: none; |
| 177 | +} |
0 commit comments