diff options
Diffstat (limited to 'source/assets/prism.css')
| -rw-r--r-- | source/assets/prism.css | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/source/assets/prism.css b/source/assets/prism.css new file mode 100644 index 0000000..21c8aa8 --- /dev/null +++ b/source/assets/prism.css | |||
| @@ -0,0 +1,167 @@ | |||
| 1 | /** | ||
| 2 | * prism.js default theme for JavaScript, CSS and HTML | ||
| 3 | * Based on dabblet (http://dabblet.com) | ||
| 4 | * @author Lea Verou | ||
| 5 | */ | ||
| 6 | |||
| 7 | code[class*="language-"], | ||
| 8 | pre[class*="language-"] { | ||
| 9 | color: black; | ||
| 10 | font-family: 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 | |||
| 18 | -moz-tab-size: 4; | ||
| 19 | -o-tab-size: 4; | ||
| 20 | tab-size: 4; | ||
| 21 | |||
| 22 | -webkit-hyphens: none; | ||
| 23 | -moz-hyphens: none; | ||
| 24 | -ms-hyphens: none; | ||
| 25 | hyphens: none; | ||
| 26 | } | ||
| 27 | |||
| 28 | pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, | ||
| 29 | code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { | ||
| 30 | text-shadow: none; | ||
| 31 | } | ||
| 32 | |||
| 33 | pre[class*="language-"]::selection, pre[class*="language-"] ::selection, | ||
| 34 | code[class*="language-"]::selection, code[class*="language-"] ::selection { | ||
| 35 | text-shadow: none; | ||
| 36 | } | ||
| 37 | |||
| 38 | @media print { | ||
| 39 | code[class*="language-"], | ||
| 40 | pre[class*="language-"] { | ||
| 41 | text-shadow: none; | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | /* Code blocks */ | ||
| 46 | pre[class*="language-"] { | ||
| 47 | padding: 1em; | ||
| 48 | margin: .5em 0; | ||
| 49 | overflow: auto; | ||
| 50 | } | ||
| 51 | |||
| 52 | :not(pre) > code[class*="language-"], | ||
| 53 | pre[class*="language-"] { | ||
| 54 | } | ||
| 55 | |||
| 56 | /* Inline code */ | ||
| 57 | :not(pre) > code[class*="language-"] { | ||
| 58 | padding: .1em; | ||
| 59 | border-radius: .3em; | ||
| 60 | white-space: normal; | ||
| 61 | } | ||
| 62 | |||
| 63 | .token.comment, | ||
| 64 | .token.prolog, | ||
| 65 | .token.doctype, | ||
| 66 | .token.cdata { | ||
| 67 | color: slategray; | ||
| 68 | } | ||
| 69 | |||
| 70 | .token.punctuation { | ||
| 71 | color: #999; | ||
| 72 | } | ||
| 73 | |||
| 74 | .namespace { | ||
| 75 | opacity: .7; | ||
| 76 | } | ||
| 77 | |||
| 78 | .token.property, | ||
| 79 | .token.tag, | ||
| 80 | .token.boolean, | ||
| 81 | .token.number, | ||
| 82 | .token.constant, | ||
| 83 | .token.symbol, | ||
| 84 | .token.deleted { | ||
| 85 | color: #905; | ||
| 86 | } | ||
| 87 | |||
| 88 | .token.selector, | ||
| 89 | .token.attr-name, | ||
| 90 | .token.string, | ||
| 91 | .token.char, | ||
| 92 | .token.builtin, | ||
| 93 | .token.inserted { | ||
| 94 | color: #690; | ||
| 95 | } | ||
| 96 | |||
| 97 | .token.operator, | ||
| 98 | .token.entity, | ||
| 99 | .token.url, | ||
| 100 | .language-css .token.string, | ||
| 101 | .style .token.string { | ||
| 102 | color: #9a6e3a; | ||
| 103 | /*background: hsla(0, 0%, 100%, .5);*/ | ||
| 104 | } | ||
| 105 | |||
| 106 | .token.atrule, | ||
| 107 | .token.attr-value, | ||
| 108 | .token.keyword { | ||
| 109 | color: #07a; | ||
| 110 | } | ||
| 111 | |||
| 112 | .token.function, | ||
| 113 | .token.class-name { | ||
| 114 | color: #DD4A68; | ||
| 115 | } | ||
| 116 | |||
| 117 | .token.regex, | ||
| 118 | .token.important, | ||
| 119 | .token.variable { | ||
| 120 | color: #e90; | ||
| 121 | } | ||
| 122 | |||
| 123 | .token.important, | ||
| 124 | .token.bold { | ||
| 125 | font-weight: bold; | ||
| 126 | } | ||
| 127 | .token.italic { | ||
| 128 | font-style: italic; | ||
| 129 | } | ||
| 130 | |||
| 131 | .token.entity { | ||
| 132 | cursor: help; | ||
| 133 | } | ||
| 134 | |||
| 135 | pre[class*="language-"].line-numbers { | ||
| 136 | position: relative; | ||
| 137 | padding-left: 3.8em; | ||
| 138 | counter-reset: linenumber; | ||
| 139 | } | ||
| 140 | |||
| 141 | pre[class*="language-"].line-numbers > code { | ||
| 142 | position: relative; | ||
| 143 | white-space: inherit; | ||
| 144 | } | ||
| 145 | |||
| 146 | .line-numbers .line-numbers-rows { | ||
| 147 | position: absolute; | ||
| 148 | pointer-events: none; | ||
| 149 | top: 0; | ||
| 150 | font-size: 100%; | ||
| 151 | left: -3.8em; | ||
| 152 | width: 3em; /* works for line-numbers below 1000 lines */ | ||
| 153 | letter-spacing: -1px; | ||
| 154 | border-right: 1px solid #999; | ||
| 155 | |||
| 156 | -webkit-user-select: none; | ||
| 157 | -moz-user-select: none; | ||
| 158 | -ms-user-select: none; | ||
| 159 | user-select: none; | ||
| 160 | |||
| 161 | } | ||
| 162 | |||
| 163 | .line-numbers-rows > span { | ||
| 164 | pointer-events: none; | ||
| 165 | display: block; | ||
| 166 | counter-increment: linenumber; | ||
| 167 | } | ||
