Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
464 jpm 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
 
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
::-moz-selection {
28
	text-shadow: none;
29
	background: #b3d4fc;
30
}
31
 
32
::selection {
33
	text-shadow: none;
34
	background: #b3d4fc;
35
}
36
 
37
@media print {
38
	code[class*="language-"],
39
	pre[class*="language-"] {
40
		text-shadow: none;
41
	}
42
}
43
 
44
/* Code blocks */
45
pre[class*="language-"] {
46
	padding: 1em;
47
	margin: .5em 0;
48
	overflow: auto;
49
}
50
 
51
:not(pre) > code[class*="language-"],
52
pre[class*="language-"] {
53
	background: #f5f2f0;
54
}
55
 
56
/* Inline code */
57
:not(pre) > code[class*="language-"] {
58
	padding: .1em;
59
	border-radius: .3em;
60
}
61
 
62
.token.comment,
63
.token.prolog,
64
.token.doctype,
65
.token.cdata {
66
	color: slategray;
67
}
68
 
69
.token.punctuation {
70
	color: #999;
71
}
72
 
73
.namespace {
74
	opacity: .7;
75
}
76
 
77
.token.property,
78
.token.tag,
79
.token.boolean,
80
.token.number {
81
	color: #905;
82
}
83
 
84
.token.selector,
85
.token.attr-name,
86
.token.string {
87
	color: #690;
88
}
89
 
90
.token.operator,
91
.token.entity,
92
.token.url,
93
.language-css .token.string,
94
.style .token.string {
95
	color: #a67f59;
96
	background: hsla(0,0%,100%,.5);
97
}
98
 
99
.token.atrule,
100
.token.attr-value,
101
.token.keyword {
102
	color: #07a;
103
}
104
 
105
 
106
.token.regex,
107
.token.important {
108
	color: #e90;
109
}
110
 
111
.token.important {
112
	font-weight: bold;
113
}
114
 
115
.token.entity {
116
	cursor: help;
117
}
118
pre[data-line] {
119
	position: relative;
120
	padding: 1em 0 1em 3em;
121
}
122
 
123
.line-highlight {
124
	position: absolute;
125
	left: 0;
126
	right: 0;
127
	padding: inherit 0;
128
	margin-top: 1em; /* Same as .prism’s padding-top */
129
 
130
	background: hsla(24, 20%, 50%,.08);
131
	background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
132
	background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
133
	background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
134
	background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
135
 
136
	pointer-events: none;
137
 
138
	line-height: inherit;
139
	white-space: pre;
140
}
141
 
142
	.line-highlight:before,
143
	.line-highlight[data-end]:after {
144
		content: attr(data-start);
145
		position: absolute;
146
		top: .4em;
147
		left: .6em;
148
		min-width: 1em;
149
		padding: 0 .5em;
150
		background-color: hsla(24, 20%, 50%,.4);
151
		color: hsl(24, 20%, 95%);
152
		font: bold 65%/1.5 sans-serif;
153
		text-align: center;
154
		vertical-align: .3em;
155
		border-radius: 999px;
156
		text-shadow: none;
157
		box-shadow: 0 1px white;
158
	}
159
 
160
	.line-highlight[data-end]:after {
161
		content: attr(data-end);
162
		top: auto;
163
		bottom: .4em;
164
	}
165
pre.line-numbers {
166
	position: relative;
167
	padding-left: 3.8em;
168
	counter-reset: linenumber;
169
}
170
 
171
pre.line-numbers > code {
172
	position: relative;
173
}
174
 
175
.line-numbers .line-numbers-rows {
176
	position: absolute;
177
	pointer-events: none;
178
	top: 0;
179
	font-size: 100%;
180
	left: -3.8em;
181
	width: 3em; /* works for line-numbers below 1000 lines */
182
	letter-spacing: -1px;
183
	border-right: 1px solid #999;
184
 
185
	-webkit-user-select: none;
186
	-moz-user-select: none;
187
	-ms-user-select: none;
188
	user-select: none;
189
 
190
}
191
 
192
	.line-numbers-rows > span {
193
		pointer-events: none;
194
		display: block;
195
		counter-increment: linenumber;
196
	}
197
 
198
		.line-numbers-rows > span:before {
199
			content: counter(linenumber);
200
			color: #999;
201
			display: block;
202
			padding-right: 0.8em;
203
			text-align: right;
204
		}