Skip to content

Commit bb66a76

Browse files
author
Matthew Russell
committed
Add missing prism css
1 parent de1d07c commit bb66a76

File tree

2 files changed

+132
-0
lines changed

2 files changed

+132
-0
lines changed

site/css/prism.css

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
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+
text-shadow: 0 1px white;
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+
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
30+
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
31+
text-shadow: none;
32+
background: #b3d4fc;
33+
}
34+
35+
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
36+
code[class*="language-"]::selection, code[class*="language-"] ::selection {
37+
text-shadow: none;
38+
background: #b3d4fc;
39+
}
40+
41+
@media print {
42+
code[class*="language-"],
43+
pre[class*="language-"] {
44+
text-shadow: none;
45+
}
46+
}
47+
48+
/* Code blocks */
49+
pre[class*="language-"] {
50+
padding: 1em;
51+
margin: .5em 0;
52+
overflow: auto;
53+
}
54+
55+
:not(pre) > code[class*="language-"],
56+
pre[class*="language-"] {
57+
background: #f5f2f0;
58+
}
59+
60+
/* Inline code */
61+
:not(pre) > code[class*="language-"] {
62+
padding: .1em;
63+
border-radius: .3em;
64+
}
65+
66+
.token.comment,
67+
.token.prolog,
68+
.token.doctype,
69+
.token.cdata {
70+
color: slategray;
71+
}
72+
73+
.token.punctuation {
74+
color: #999;
75+
}
76+
77+
.namespace {
78+
opacity: .7;
79+
}
80+
81+
.token.property,
82+
.token.tag,
83+
.token.boolean,
84+
.token.number,
85+
.token.constant,
86+
.token.symbol,
87+
.token.deleted {
88+
color: #905;
89+
}
90+
91+
.token.selector,
92+
.token.attr-name,
93+
.token.string,
94+
.token.char,
95+
.token.builtin,
96+
.token.inserted {
97+
color: #690;
98+
}
99+
100+
.token.operator,
101+
.token.entity,
102+
.token.url,
103+
.language-css .token.string,
104+
.style .token.string {
105+
color: #a67f59;
106+
background: hsla(0, 0%, 100%, .5);
107+
}
108+
109+
.token.atrule,
110+
.token.attr-value,
111+
.token.keyword {
112+
color: #07a;
113+
}
114+
115+
.token.function {
116+
color: #DD4A68;
117+
}
118+
119+
.token.regex,
120+
.token.important,
121+
.token.variable {
122+
color: #e90;
123+
}
124+
125+
.token.important {
126+
font-weight: bold;
127+
}
128+
129+
.token.entity {
130+
cursor: help;
131+
}

site/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<link rel="stylesheet" href="css/normalize.css">
99
<link rel="stylesheet" href="css/style.css">
1010
<link rel="stylesheet" href="css/Draft.css">
11+
<link rel="stylesheet" href="css/prism.css">
1112
<link rel="stylesheet" href="bundle.css">
1213
</head>
1314
<body>

0 commit comments

Comments
 (0)