cookutils view lighttpd/cooker.css @ rev 1074

lighttpd/index.cgi: show package icon (optional)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 11 15:24:16 2018 +0300 (2018-06-11)
parents 9c90eaa721d2
children aa5729cf385c
line source
1 /* CSS style for SliTaz Cooker */
3 html, body {
4 height: 100%;
5 margin: 0;
6 font: 14px/18px sans-serif;
7 color: rgba(0,0,0,0.9);
8 background-color: hsl(0, 0%, 98%);
9 }
10 #container {
11 position: relative;
12 min-height: 100%;
13 margin: 0 auto;
14 }
17 /* HEADER */
19 header, body>h2 {
20 background-color: rgba(0,0,0,0.7);
21 text-align: justify;
22 box-shadow: 0 -8px 8px rgba(0,0,0,0.3) inset;
23 line-height: 0;
24 }
25 header::before, header::after {
26 display: inline-block;
27 width: 100%;
28 overflow: hidden; height: 0; content: ''; visibility: hidden;
29 }
30 header h1 {
31 display: inline-block;
32 }
33 header h1, body>h2 {
34 margin: auto 0;
35 box-sizing: border-box;
36 white-space: nowrap;
37 vertical-align: middle;
38 }
39 body>h2 {
40 padding: 5px 0;
41 }
42 header h1::before, body>h2::before {
43 display: inline-block;
44 content: url("data:image/svg+xml,<svg height='40' width='40' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><linearGradient id='a' gradientUnits='userSpaceOnUse' x1='20' x2='20' y1='2.5' y2='37.5'><stop offset='0' stop-color='%23ff7825'/><stop offset='1' stop-color='%23762400'/></linearGradient><path d='m30.2 26.3c0-.9-4-3.5-4.9-3.9-.1 1.7.3 2.5-.2 4.6-.4 2.1-1.4 4.2-2.8 5.7-1.2 1.3-2.5 2.1-4.4 2.1-2.6 0-4-2.3-4.6-4.8-.5-3.8 1.1-7 1.1-7.4-.5-.1-4.3 2.2-5.7 3.2-.8 3 .4 7.2 2.5 10.9-3.5-3.2-5-7.8-5.6-11.6 2.3-1.8 4.3-2.3 5.5-3.6-.9 0-5.3.4-5.9 1-.8 1.6-1.3 6.8-1.2 10.2-2.5-4.7-1.2-11.2-1.1-11.9.3-.8 7.8-1.2 8.4-1.8-.5-.4-4.5-1.6-7.1-3 .3-1.6 3.2-8.2 6.4-10.6-1.1 2.2-3.1 7.3-3.4 9.3.6.4 5.3 2.4 6 2.3-.4-.7-3.5-3.1-3.9-3.8.8-3.2 6.7-9 8.5-9.8-2 1.9-5.3 6.7-5.7 9.2 1.7 1.7 3.9 3.8 4.9 4.1.3-.1.4-.7.4-1.1.6-2.8 3.2-3.7 4.1-3.7 1.2 0 2.5 1.4 2.7 2.3.1.7-.2 2 0 2.8 1.1-.4 5.7-3.6 6.3-4.4.4-3.3-1.3-6.6-3.2-9.5 2.5 1.4 5.6 6.8 6 9.9-.7 1.1-4 2.7-5 3.9.7 0 5.4-1.5 6.4-2.2.4-.4.4-.8.4-1.1 0-2.8-.4-6.3-1.1-8.8 2.5 2.8 3.4 7 3.6 10.4 0 .4-.1.6-.1 1-1.1.5-7.4 2.4-7.5 2.9-.1.3 5.3.7 7.6 1.5-.4 3.7-1.8 8.7-4.3 11.6.6-2.5 1.7-6.8 1.4-9.9-1.8-.4-5.3-1.1-5.5-.8-.3.4 4.2 2.6 4.2 3.7-1.3 3.9-4.9 8.8-8.6 11.4 4.5-5.6 5.5-9 5.4-10.5z' fill='url(%23a)'/></svg>");
45 vertical-align: middle;
46 }
47 header a, body>h2 {
48 color: hsla(0, 0%, 100%, 0.7);
49 -webkit-transition: .2s text-shadow; transition: .2s text-shadow;
50 text-decoration: none;
51 }
52 header a:hover, body>h2:hover {
53 color: hsla(0, 0%, 100%, 1);
54 text-shadow: 0 0 4px hsla(0, 0%, 100%, 0.5);
55 text-decoration: none;
56 }
57 header h1 a, body>h2 {
58 font: bold italic 20px/20px sans-serif;
59 }
60 .network {
61 display: inline-block;
62 text-align: left;
63 vertical-align: middle;
64 font-size: 12px;
65 line-height: normal;
66 color: #999;
67 }
68 .network a {
69 display: inline-block;
70 padding: 8px 6px;
71 vertical-align: middle;
72 }
73 header select, header option {
74 background-color: transparent;
75 color: inherit;
76 border: none;
77 font-size: inherit;
78 }
81 /* FOOTER */
83 footer, div.foot {
84 padding: 20px 0;
85 clear: both;
86 text-align: center;
87 font-size: 90%;
88 color: #666;
89 background-color: hsla(0, 0%, 20%, 0.1);
90 box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.2) inset;
92 position: absolute;
93 bottom: 0;
94 width: 100%;
95 }
96 div.foot { position: unset; }
97 footer a+a::before {
98 display: inline-block;
99 content: ' • ';
100 color: #E81;
101 }
102 footer div {
103 margin: 12px;
104 }
108 /* CONTENT */
110 h2 {
111 margin: 0; padding: 0.2rem;
112 font: bold 1.3rem/1.6rem sans-serif;
113 color: rgba(0,0,0,0.7);
114 }
115 section h2, section h3 {
116 background-color: rgba(0,0,0,0.05);
117 border-top-left-radius: 4px;
118 border-top-right-radius: 4px;
119 }
120 h3 {
121 margin: 0; padding: 0.2rem;
122 font: bold 1.15rem/1.5rem sans-serif;
123 color: rgba(0,0,0,0.6);
124 }
125 a {
126 text-decoration: none;
127 color: hsl(215, 60%, 40%);
128 -webkit-transition: .2s border-color, .2s box-shadow; transition: .2s border-color, .2s box-shadow;
129 border-bottom: 1px solid transparent;
130 }
131 p {
132 margin: 8px 0;
133 }
134 main td a:hover, p a:hover {
135 text-decoration: none;
136 color: hsl(215, 100%, 40%);
137 border-color: hsl(215, 100%, 40%);
138 }
139 pre {
140 background-color: rgba(0,0,0,0.03);
141 border: 1px solid rgba(0,0,0,0.1);
142 padding: 8px;
143 margin: 0;
144 overflow: auto;
145 font: 13px/16px monospace;
146 }
147 pre .underline { border-bottom: 1px solid #444; display: block; right: 0; }
149 /* Log with line numbers (taken from Mercurial - thanks a lot) */
150 pre.log {
151 position: relative;
152 counter-reset: lineno;
153 }
154 pre.log > span {
155 display: inline-block;
156 box-sizing: border-box;
157 width: 100%;
158 padding: 0 0 0 4em;
159 counter-increment: lineno;
160 white-space: pre-wrap;
161 }
162 pre.log > span::before {
163 -moz-user-select: -moz-none;
164 -khtml-user-select: none;
165 -webkit-user-select: none;
166 -ms-user-select: none;
167 user-select: none;
168 display: inline-block;
169 margin-left: -5em;
170 width: 4em;
171 font-size: smaller;
172 color: #999;
173 text-align: right;
174 content: counters(lineno, ".");
175 float: left;
176 }
177 pre.log > a {
178 display: inline-block;
179 position: absolute;
180 left: 0;
181 width: 4em;
182 height: 1em;
183 }
185 /* Content */
187 main {
188 margin: auto;
189 padding: 0.5em 0.5em 5em;
190 }
191 #hdr {
192 margin: 0.2rem;
193 }
194 #hdr img {
195 float: left;
196 padding-right: 0.5rem;
197 height: 48px;
198 width: 48px;
199 }
200 #info {
201 clear: both;
202 }
203 #content2, div.list {
204 width: 100%; box-sizing: border-box;
205 max-width: 700px;
206 margin: auto;
207 padding: 0.5em;
208 }
209 mark {
210 background: #FF8;
211 border: solid #EB7;
212 border-radius: 4px;
213 border-width: 1px 0;
214 }
217 .span-ok { color: #0a0; }
218 .span-red { color: red; }
219 .span-sky { color: blue; }
220 .span-no { color: #d90; }
221 .span-line { color: #888; }
222 .log-date { color: #666; font-size: 95%; }
223 .sh-comment { color: #a00; }
224 .sh-val { color: #e50; font-weight: bold; }
225 .var { color: #05a; }
228 /* Colored log */
230 .log b { font-weight: normal; color: red; }
231 .log u { text-decoration: none; color: darkorange; }
232 .log i { font-style: normal; color: green; }
233 .log em { font-style: normal; background-color: lightsteelblue; font-weight: bold; display: inline-block; width: 100%; }
234 .log var{ font-style: normal; color: #05a; }
236 .catman b { color: navy; }
237 .catman u { text-decoration: none; color: green; }
241 /* Buttons */
243 .button {
244 display: inline-block;
245 padding: 4px;
246 margin: 2px 0;
247 text-decoration: none;
248 color: rgba(0,0,0,0.7);
249 border: 1px solid;
250 border-color: rgba(0,0,0,0.3) rgba(0,0,0,0.5) rgba(0,0,0,0.5) rgba(0,0,0,0.3);
251 -moz-user-select: none;
252 }
253 .button.active {
254 color: inherit;
255 padding: 5px;
256 border: none;
257 box-shadow: 0 0 3px rgba(0,0,0,0.7) inset;
258 text-decoration: none;
259 }
260 .button:not(.active):hover, input:hover {
261 color: inherit;
262 box-shadow: 0 0 4px rgba(0,0,0,0.3);
263 text-decoration: none;
264 outline: none;
265 }
266 .button[data-acc]::before {
267 content: attr(data-acc);
268 display: inline-block;
269 padding-right: 4px;
270 margin-right: 4px;
271 text-align: center;
272 text-transform: uppercase;
273 border-right: 1px solid;
274 border-color: inherit;
275 }
278 /* Search box */
280 .search input {
281 padding: 2px;
282 font-size: inherit;
283 font-family: inherit;
284 color: inherit;
285 border: 1px solid rgba(0,0,0,0.3);
286 -webkit-transition: .2s box-shadow, .5s padding cubic-bezier(.68,-0.55,.27,1.55);
287 transition: .2s box-shadow, .5s padding cubic-bezier(.68,-0.55,.27,1.55);
288 float: right;
289 height: 28px;
290 box-sizing: border-box;
291 }
292 .search input:focus {
293 padding-right: 22px;
294 }
295 .search button {
296 background: transparent url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15'><path d='m5.5 1c5.5.3 5.5 5.5 5.5 5.5 0 1.8-1 3.1-1 3.1l3.8 3.8-1.4 1.4-3.8-3.8s-1.3 1-3.1 1c-5.5-.3-5.5-5.5-5.5-5.5s0-5.2 5.5-5.5zm0 2c-3.5.2-3.5 3.5-3.5 3.5s0 3.3 3.5 3.5c3.5-.2 3.5-3.5 3.5-3.5s0-3.3-3.5-3.5z'/></svg>") no-repeat 0 0;
297 border: 0;
298 width: 19px;
299 height: 19px;
300 text-indent: -99999px;
301 margin-left: -22px;
302 margin-top: 6px;
303 padding: 0;
304 opacity: 0.6;
305 cursor: pointer;
306 float: right;
307 }
310 /* Round corner */
312 pre, .button, .search input, [class*="bigicon-"], progress {
313 border-radius: 3px;
314 }
318 .log a[name] { text-decoration: none; color: #666; }
319 .log a[name]:hover { color: #000; }
321 .r { float: right; }
322 form.r, .button.r { margin: 3px 3px 0; }
324 .button.r { background-color: white; }
325 .button.receipt { background-color: greenyellow; }
326 .button.website { background-color: skyblue; }
327 .button.files { background-color: khaki; }
328 .button.desc { background-color: sandybrown; }
329 .button.download { background-color: gold; }
330 .button.source { background-color: yellow; }
331 .button.browse { background-color: tan; }
332 .button.doc { background-color: plum; }
333 .button.log { background-color: lightgray; }
335 .icon::before {
336 height: 16px;
337 vertical-align: -2px;
338 display: inline-block;
339 padding-right: 2px;
340 opacity: 0.6;
341 }
342 .icon.receipt::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m6.2 2-.2 1.8-1.6.9-1.7-.8-1.8 3 1.5 1.1v1.9l-1.5 1.1 1.8 3 1.7-.8 1.6.9.2 1.8h3.6l.2-1.8 1.6-.9 1.7.8 1.8-3-1.5-1.1v-1.9l1.5-1.1-1.8-3-1.7.8-1.6-.9-.2-1.8zm1.8 5s1.9 0 2 2c-.1 2-2 2-2 2s-1.9 0-2-2c.1-2 2-2 2-2z'/></svg>"); }
343 .icon.website::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m8 2c-7 .3-7 7-7 7s0 6.7 7 7c7-.3 7-7 7-7s0-6.7-7-7zm-.3 1.9c-.8 1.9-.5 3 0 3.6-1 0-1-.8-1.8-.8-.3 0-.5.4-.5.7 0 2 4.8.8 4.8 3.3 0 1.6-1 2.6-2.7 3.2 0-1.9-.7-2.2-1.8-2.9-.3-.2-.3-.3-.2-.6.2-.6.4-.9 1-1.3-1.3-.3-2.4-.6-3.3-1.4 0-1 1.7-3.8 4.5-3.8zm4.5 2.4c.7 1 1.1 2.6.5 4.2-.6-1.1-1.7-1.7-1.7-2.5s1-1.7 1.2-1.7z'/></svg>"); }
344 .icon.files::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m5 2v1h3.4l4.6 4.6v5.4h1c1 0 1-1 1-1v-7l-4-4h-5s-1 0-1 1zm-3 3v10s0 1 1 1h8s1 0 1-1v-7l-4-4h-5s-1 0-1 1z'/></svg>"); }
345 .icon.desc::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m3 2c-2 0-2 2-2 2v10c0 2 2 2 2 2h10s2 0 2-2v-10c0-2-2-2-2-2zm1 3h8v1h-8zm0 3h8v1h-8zm0 3h6v1h-6z'/></svg>"); }
346 .icon.download::before, .icon.source::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='16'><path d='m5 2v5h-2.3l4.3 6.3 4.4-6.3h-2.4v-5zm-4 12v2h12.1v-2z'/></svg>"); }
347 .icon.browse::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m8 4s-5.4-.4-8 5c2.6 5.4 8 5 8 5s5.4.4 8-5c-2.6-5.4-8-5-8-5zm3 5c-.2 4-5.8 4-6 0 .2-4 5.8-4 6 0zm-4 0c0 1.3 2 1.3 2 0s-2-1.3-2 0z'/></svg>"); }
348 .icon.doc::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m4.5 3c-2.5 0-3.5 1-3.5 1v12.1s1-1 3.5-1 3.5 1 3.5 1 1-1 3.5-1 3.5 1 3.5 1v-12.1s-1-1-3.5-1-3.5 1-3.5 1-1-1-3.5-1zm7 1.2c1.5 0 2.5.4 2.5.4v9.7s-1-.4-2.5-.4c-2.5 0-3.5 1-3.5 1v-9.7s1-1 3.5-1z'/></svg>"); }
349 .icon.log::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path d='m8 2c-7 .4-7 7-7 7s0 6.6 7 7c7-.4 7-7 7-7s0-6.6-7-7zm0 2c5 .3 5 5 5 5s0 4.7-5 5c-5-.3-5-5-5-5s0-4.7 5-5zm-1 1v4.4l2.8 2.8 1.4-1.4-2.2-2.2v-3.6z'/></svg>"); }
350 .icon.more::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='16' width='16'><path d='m3 7c-2 .1-2 2-2 2s0 1.9 2 2c2-.1 2-2 2-2s0-1.9-2-2zm5 0c-2 .1-2 2-2 2s0 1.9 2 2c2-.1 2-2 2-2s0-1.9-2-2zm5 0c-2 .1-2 2-2 2s0 1.9 2 2c2-.1 2-2 2-2s0-1.9-2-2z'/></svg>"); }
351 .icon.bell::before { content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' height='16' width='16'><path d='m9.6 2.7s-3.4-.2-4.5 3c-1.9 4.6-2.5 3.8-2.8 4.4-.2.6.4.8.4.8l9.3 3.3s.5.2.8-.3-.9-.5.7-5.2c1-3.5-1.6-5.1-1.6-5.1s.3-1.1-.8-1.5c-1-.4-1.5.6-1.5.6zm-2.9 11s-.4 1.4 1.3 2.2c2 .4 2.3-.9 2.3-.9z'/></svg>"); }
353 .bigicon-i {
354 background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><path d='m16 2c-14 .7-14 14-14 14s0 13.3 14 14c14-.7 14-14 14-14s0-13.3-14-14zm0 5.5c2.5 0 2.5 2.5 2.5 2.5s0 2.5-2.5 2.5-2.5-2.5-2.5-2.5 0-2.5 2.5-2.5zm-2 6.5h4v10h-4z' fill='%2329F'/></svg>") no-repeat 0.5rem 50%;
355 }
356 .bigicon-w {
357 background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><path d='m16 1.3c-.7 0-1.3.3-1.7 1l-14 24.7c-.8 1.4.2 3 1.7 3h28c1.5 0 2.5-1.6 1.7-3l-14-24.7c-.4-.7-1-1-1.7-1zm-2 6.7h4v12h-4zm0 14h4v4h-4z' fill='%23F90'/></svg>") no-repeat 0.5rem 50%;
358 }
359 .bigicon-e {
360 background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><path d='m16 2c-14 .7-14 14-14 14s0 13.3 14 14c14-.7 14-14 14-14s0-13.3-14-14zm-2 4h4v12h-4zm0 16h4v4h-4z' fill='%23F43'/></svg>") no-repeat 0.5rem 50%;
361 }
362 [class*="bigicon-"] {
363 margin: 0.5rem 0;
364 padding: 1rem 0.8rem 1rem 3rem;
365 background-color: hsla(0,0%,100%,0.8);
366 box-shadow: 0 0 3px rgba(0,0,0,0.4);
367 }
370 a:target { background-color: yellow; }
373 /* Table */
375 table { width: 100%; box-sizing: border-box; border-collapse: collapse; /*box-shadow: 0 0 4px rgba(0,0,0,0.3);*/ }
376 th { /*color: rgba(0,0,0,0.6);*/ background-color: rgba(0,0,0,0.1); padding: 3px; font-weight: normal; }
377 td { padding: 2px; vertical-align: top; }
378 table:not(.half):not(.pkgslist) td:first-child { white-space: nowrap; width: 5rem; }
379 table.half td { width:50%; }
380 table.third td{ width:33%; }
381 td+td { border-left: 1px solid rgba(0,0,0,0.1); }
382 .activity td:first-child, .cooknotes td:first-child, td.m { color: rgba(0,0,0,0.6); }
384 tbody tr:nth-child(odd) {
385 background-color: hsla(0, 0%, 100%, 0.3);
386 }
387 tbody tr:nth-child(even) {
388 background-color: hsla(0, 0%, 0%, 0.05);
389 }
390 .pkgslist { margin-top: 1.6em; }
391 .pkgslist td:nth-child(1), .pkgslist td:nth-child(2), .pkgslist td:nth-child(3), .pkgslist td:nth-child(4) {
392 white-space: nowrap; width: 1rem; text-align: right;
393 }
394 .summary th, .summary td { white-space: nowrap; width: 1rem; text-align: center; }
395 .summary th:last-child, .summary td:last-child { width: unset; }
397 .webstat td { text-align: center; width: 16%; }
398 .webstat td:first-child { text-align: unset; width: unset; }
400 div.list td, div.list th { padding: 5px 2px; }
402 .texinfo pre { display: none; }
403 .texinfo pre:target { display: block; }
405 section, div.list {
406 margin: 0.6rem 0;
407 padding: 4px;
408 box-shadow: 0 0 4px rgba(0,0,0,0.3);
409 border-radius: 4px;
410 }
411 div.list {
412 margin: 2rem auto;
413 }
414 .dog {
415 max-height: 12rem;
416 overflow-y: auto;
417 }
420 /* HTML5 progress */
422 .meter {
423 height: 1.4rem;
424 margin: 0.7rem 0;
425 color: inherit;
426 }
427 .meter progress {
428 height: inherit;
429 width: 100%;
430 box-sizing: border-box;
431 display: inline-block;
432 vertical-align: middle;
433 }
434 progress {
435 border: 1px solid rgba(0,0,0,0.2);
436 background-color: hsla(0,0%,100%,0.6);
437 box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
438 -webkit-transition: all .5s; transition: all .5s;
439 }
440 progress::-webkit-progress-bar {
441 background-color: hsla(0,0%,100%,0.6);
442 box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
443 }
444 progress::-webkit-progress-value {
445 background-color: hsla(100,100%,40%,0.7);
446 -webkit-transition: all .5s; transition: all .5s;
447 }
448 progress::-moz-progress-bar {
449 background-color: hsla(100,100%,40%,0.7);
450 transition: all .5s;
451 }
452 .meter span {
453 display: block;
454 white-space: nowrap;
455 position: relative;
456 margin: -1.3rem auto 0 0.1rem;
457 text-align: center;
458 }
463 /* Documents iframe */
465 iframe {
466 border: none;
467 }
470 /* Terminal colors */
472 pre.files { background-color: hsla(0,0%,0%,0.8); color: hsla(0,0%,100%,0.9); }
473 pre.files a { text-decoration: none; }
474 pre.files a[href]:hover { text-decoration: underline; }
475 .c00 { color: #d3d7cf; } .c01 { color: #555753; }
476 .c10 { color: #cc0000; } .c11 { color: #ef2929; }
477 .c20 { color: #4e9a06; } .c21 { color: #8ae234; }
478 .c30 { color: #c4a000; } .c31 { color: #fce94f; }
479 .c40 { color: #3465a4; } .c41 { color: #729fcf; }
480 .c50 { color: #75507b; } .c51 { color: #ad7fa8; }
481 .c60 { color: #06989a; } .c61 { color: #34e2e2; }
482 .c70 { color: #2e3436; } .c71 { color: #eeeeec; }
483 .c01,.c11,.c21,.c31,.c41,.c51,.c61,.c71 { font-weight: bold; }
485 /* Old webkit-gtk compatibility */
487 header, footer, main {
488 display: block;
489 }
491 .r.c10 del { color: gray; }
494 /* FOLLOWING CSS HAS SOME CHANGES FOR SLITAZ COOKER! */
496 /* http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css+clike+javascript+asciidoc+bash+c+css-extras+diff+ini+markdown+perl+python */
497 /**
498 * okaidia theme for JavaScript, CSS and HTML
499 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
500 * @author ocodia
501 */
502 code[class*="language-"], pre[class*="language-"] {
503 color: #f8f8f2;
504 background: none;
505 text-shadow: 0 1px rgba(0,0,0,0.3);
506 text-align: left;
507 white-space: pre;
508 word-spacing: normal;
509 word-break: normal;
510 word-wrap: normal;
511 -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4;
512 -webkit-hyphens: none; -moz-hyphens: none; hyphens: none;
513 }
514 /* Code blocks */
515 pre[class*="language-"] {
516 padding: 1em;
517 margin: .5em 0;
518 overflow: auto;
519 }
520 :not(pre) > code[class*="language-"], pre[class*="language-"] {
521 background: #272822;
522 }
523 /* Inline code */
524 :not(pre) > code[class*="language-"] {
525 padding: .1em;
526 border-radius: .3em;
527 white-space: normal;
528 }
529 .token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray;}
530 .token.punctuation{color:#f8f8f2;}
531 .namespace{opacity:.7;}
532 .token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672;}
533 .token.boolean,.token.number,.token.coord{color:#ae81ff;}
534 .token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e;}
535 .token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2;}
536 .token.atrule,.token.attr-value,.token.function{color:#e6db74;}
537 .token.keyword{color:#66d9ef;}
538 .token.regex,.token.important{color:#fd971f;}
539 .token.important,.token.bold{font-weight:bold;}
540 .token.italic{font-style:italic;}
541 .token.entity{cursor:help;}