Skip to content

Commit a323bec

Browse files
committed
Import some styles for API docs from jquery-wp-content
1 parent c3e9d93 commit a323bec

File tree

1 file changed

+196
-0
lines changed

1 file changed

+196
-0
lines changed

style.css

+196
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,200 @@ pre .chunk {
236236

237237
#content .syntaxhighlighter tr {
238238
border-bottom: none;
239+
}
240+
241+
242+
243+
/* API Sites
244+
========================================================================== */
245+
246+
.entry {
247+
margin: 15px 0;
248+
}
249+
250+
.entry-wrapper {
251+
border: 1px solid #CCC;
252+
border-top: 0;
253+
padding: 10px;
254+
border-radius: 0 0 5px 5px;
255+
}
256+
257+
#content .section-title {
258+
background: #333;
259+
border: 1px solid #111;
260+
padding: 8px 15px;
261+
font-size: 16px;
262+
color: white;
263+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
264+
letter-spacing: 0;
265+
border-radius: 5px 5px 0 0;
266+
font-weight: normal;
267+
margin-bottom: 0;
268+
overflow: hidden;
269+
}
270+
271+
.returns {
272+
float: right;
273+
font-style: italic;
274+
}
275+
276+
.api-item .returns {
277+
font-size: 16px;
278+
color: #333;
279+
font-weight: normal;
280+
}
281+
282+
#content .signatures {
283+
background: #eee;
284+
border: 1px solid #ccc;
285+
margin: 0 auto 15px;
286+
max-width: 750px;
287+
border-radius: 3px;
288+
color: #333;
289+
text-shadow: 0 1px 0 #fff;
290+
}
291+
292+
#content .signatures li {
293+
list-style: none;
294+
background: none;
295+
margin: 0;
296+
padding: 10px;
297+
}
298+
299+
#content .signatures > li {
300+
padding-bottom: 0;
301+
}
302+
303+
#content .signature > ul {
304+
margin: 0;
305+
}
306+
307+
.signatures h4 {
308+
font-size: 16px;
309+
letter-spacing: 0;
310+
padding: 8px 10px;
311+
margin: -10px -10px 0;
312+
color: #fff;
313+
text-shadow: 0 1px 0 #444;
314+
background: #777;
315+
}
316+
317+
.signature:first-child h4 {
318+
border-radius: 3px 3px 0 0;
319+
}
320+
321+
#content .signature h4 a {
322+
color: inherit;
323+
text-decoration: none;
324+
}
325+
326+
.signature h4 .icon-link {
327+
margin-right: 0.5em;
328+
}
329+
330+
.signature .event-properties {
331+
margin: 15px 0 0 0;
332+
}
333+
334+
.argument {
335+
margin-top: 1em;
336+
}
337+
338+
#options, #methods, #events, #quick-nav {
339+
border: 1px solid #CCC;
340+
margin: 0 15px 15px;
341+
padding: 10px;
342+
overflow: auto;
343+
}
344+
345+
#options header h2, #methods header h2, #events header h2, #quick-nav h2 {
346+
background: #cccccc; /* Old browsers */
347+
background: -webkit-linear-gradient(top, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
348+
background: linear-gradient(to bottom, #ffffff 0%,#eeeeee 17%,#cccccc 100%); /* W3C */
349+
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
350+
margin: -10px -10px 10px -10px;
351+
padding: 10px;
352+
}
353+
354+
#quick-nav h2 a {
355+
float: right;
356+
font-size: 80%;
357+
padding-left: 10px;
358+
}
359+
360+
.quick-nav-section {
361+
width: 33%;
362+
float: left;
363+
}
364+
365+
#methods .api-item li,
366+
#events .api-item li {
367+
margin-bottom: 1em;
368+
}
369+
370+
#methods .api-item li ul,
371+
#events .api-item li ul {
372+
list-style: none;
373+
}
374+
375+
.version-details {
376+
font-weight: bold;
377+
}
378+
379+
.section-title .version-details,
380+
.name .version-details {
381+
float: right;
382+
clear: right;
383+
font-size: 14px;
384+
color: #fff;
385+
}
386+
387+
.api-item {
388+
padding: 20px 10px;
389+
}
390+
.signature li,
391+
.api-item {
392+
border-top: 1px solid #CCC;
393+
}
394+
395+
.signature li:first-child,
396+
.api-item.first-item {
397+
border-top: none;
398+
padding-top: 10px;
399+
}
400+
401+
.option-type {
402+
font-size: 16px;
403+
font-weight: normal;
404+
color: #333;
405+
float: right;
406+
}
407+
408+
#options .default {
409+
text-align: right;
410+
font-size: 13px;
411+
margin-top: -10px;
412+
}
413+
414+
.desc {
415+
font-size: 16px;
416+
padding: 5px 15px 0;
417+
color: #666;
418+
font-style: italic;
419+
}
420+
421+
.desc strong {
422+
color: #444;
423+
font-style: normal;
424+
}
425+
426+
.entry-summary p {
427+
margin: 0;
428+
}
429+
430+
.warning {
431+
padding: 0.5em 1em;
432+
margin: 1em;
433+
background: #fff3a5;
434+
border-radius: 5px;
239435
}

0 commit comments

Comments
 (0)