UNPKG

2.03 kBCSSView Raw
1/**
2 * prism.js Funky theme
3 * Based on “Polyfilling the gaps” talk slides http://lea.verou.me/polyfilling-the-gaps/
4 * @author Lea Verou
5 */
6
7code[class*="language-"],
8pre[class*="language-"] {
9 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
10 text-align: left;
11 white-space: pre;
12 word-spacing: normal;
13 word-break: normal;
14 word-wrap: normal;
15 line-height: 1.5;
16
17 -moz-tab-size: 4;
18 -o-tab-size: 4;
19 tab-size: 4;
20
21 -webkit-hyphens: none;
22 -moz-hyphens: none;
23 -ms-hyphens: none;
24 hyphens: none;
25}
26
27/* Code blocks */
28pre[class*="language-"] {
29 padding: .4em .8em;
30 margin: .5em 0;
31 overflow: auto;
32 background: url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>');
33 background-size: 1em 1em;
34}
35
36code[class*="language-"] {
37 background: black;
38 color: white;
39 box-shadow: -.3em 0 0 .3em black, .3em 0 0 .3em black;
40}
41
42/* Inline code */
43:not(pre) > code[class*="language-"] {
44 padding: .2em;
45 border-radius: .3em;
46 box-shadow: none;
47 white-space: normal;
48}
49
50.token.comment,
51.token.prolog,
52.token.doctype,
53.token.cdata {
54 color: #aaa;
55}
56
57.token.punctuation {
58 color: #999;
59}
60
61.namespace {
62 opacity: .7;
63}
64
65.token.property,
66.token.tag,
67.token.boolean,
68.token.number,
69.token.constant,
70.token.symbol {
71 color: #0cf;
72}
73
74.token.selector,
75.token.attr-name,
76.token.string,
77.token.char,
78.token.builtin {
79 color: yellow;
80}
81
82.token.operator,
83.token.entity,
84.token.url,
85.language-css .token.string,
86.toke.variable,
87.token.inserted {
88 color: yellowgreen;
89}
90
91.token.atrule,
92.token.attr-value,
93.token.keyword {
94 color: deeppink;
95}
96
97.token.regex,
98.token.important {
99 color: orange;
100}
101
102.token.important,
103.token.bold {
104 font-weight: bold;
105}
106.token.italic {
107 font-style: italic;
108}
109
110.token.entity {
111 cursor: help;
112}
113
114.token.deleted {
115 color: red;
116}