NRuby
661 строка · 10.4 Кб
1/*
2* "Darkfish" Rdoc CSS
3* $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
4*
5* Author: Michael Granger <ged@FaerieMUD.org>
6*
7*/
8
9/* vim: ft=css et sw=2 ts=2 sts=2 */
10/* Base Green is: #6C8C22 */
11
12.hide { display: none !important; }13
14* { padding: 0; margin: 0; }15
16body {17background: #fafafa;18font-family: Lato, sans-serif;19font-weight: 300;20}
21
22h1 span,
23h2 span,
24h3 span,
25h4 span,
26h5 span,
27h6 span {28position: relative;29
30display: none;31padding-left: 1em;32line-height: 0;33vertical-align: baseline;34font-size: 10px;35}
36
37h1 span { top: -1.3em; }38h2 span { top: -1.2em; }39h3 span { top: -1.0em; }40h4 span { top: -0.8em; }41h5 span { top: -0.5em; }42h6 span { top: -0.5em; }43
44h1:hover span,
45h2:hover span,
46h3:hover span,
47h4:hover span,
48h5:hover span,
49h6:hover span {50display: inline;51}
52
53h1:target,
54h2:target,
55h3:target,
56h4:target,
57h5:target,
58h6:target {59margin-left: -10px;60border-left: 10px solid #f1edba;61}
62
63:link,
64:visited {65color: #6C8C22;66text-decoration: none;67}
68
69:link:hover,
70:visited:hover {71border-bottom: 1px dotted #6C8C22;72}
73
74code,
75pre {76font-family: "Source Code Pro", Monaco, monospace;77background-color: rgba(27,31,35,0.05);78padding: 0em 0.2em;79border-radius: 0.2em;80}
81
82table {83margin: 0;84border-spacing: 0;85border-collapse: collapse;86}
87
88table tr th, table tr td {89padding: 0.2em 0.4em;90border: 1px solid #ccc;91}
92
93table tr th {94background-color: #eceaed;95}
96
97table tr:nth-child(even) td {98background-color: #f5f4f6;99}
100
101/* @group Generic Classes */
102
103.initially-hidden {104display: none;105}
106
107#search-field {108width: 98%;109background: white;110border: none;111height: 1.5em;112-webkit-border-radius: 4px;113-moz-border-radius: 4px;114border-radius: 4px;115text-align: left;116}
117#search-field:focus {118background: #f1edba;119}
120#search-field:-moz-placeholder,
121#search-field::-webkit-input-placeholder {122font-weight: bold;123color: #666;124}
125
126.missing-docs {127font-size: 120%;128background: white url(../images/wrench_orange.png) no-repeat 4px center;129color: #ccc;130line-height: 2em;131border: 1px solid #d00;132opacity: 1;133padding-left: 20px;134text-indent: 24px;135letter-spacing: 3px;136font-weight: bold;137-webkit-border-radius: 5px;138-moz-border-radius: 5px;139}
140
141.target-section {142border: 2px solid #dcce90;143border-left-width: 8px;144padding: 0 1em;145background: #fff3c2;146}
147
148/* @end */
149
150/* @group Index Page, Standalone file pages */
151.table-of-contents ul {152margin: 1em;153list-style: none;154}
155
156.table-of-contents ul ul {157margin-top: 0.25em;158}
159
160.table-of-contents ul :link,
161.table-of-contents ul :visited {162font-size: 16px;163}
164
165.table-of-contents li {166margin-bottom: 0.25em;167}
168
169.table-of-contents li .toc-toggle {170width: 16px;171height: 16px;172background: url(../images/add.png) no-repeat;173}
174
175.table-of-contents li .toc-toggle.open {176background: url(../images/delete.png) no-repeat;177}
178
179/* @end */
180
181/* @group Top-Level Structure */
182
183nav {184float: left;185width: 260px;186font-family: Helvetica, sans-serif;187font-size: 14px;188border-right: 1px solid #ccc;189position: sticky;190top: 0;191overflow: auto;192height: calc(100vh - 100px); /* reduce the footer height */193}
194
195main {196display: block;197margin: 0 2em 5em 260px;198padding-left: 20px;199min-width: 340px;200font-size: 16px;201}
202
203main h1,
204main h2,
205main h3,
206main h4,
207main h5,
208main h6 {209font-family: Helvetica, sans-serif;210}
211
212.table-of-contents main {213margin-left: 2em;214}
215
216#validator-badges {217clear: both;218margin: 1em 1em 2em;219font-size: smaller;220}
221
222/* @end */
223
224/* @group navigation */
225nav {226margin-bottom: 1em;227}
228
229nav .nav-section {230margin-top: 2em;231border-top: 2px solid #aaa;232font-size: 90%;233overflow: hidden;234}
235
236nav h2 {237margin: 0;238padding: 2px 8px 2px 8px;239background-color: #e8e8e8;240color: #555;241font-size: 125%;242text-align: center;243}
244
245nav h3,
246#table-of-contents-navigation {247margin: 0;248padding: 2px 8px 2px 8px;249text-align: right;250background-color: #e8e8e8;251color: #555;252}
253
254nav ul,
255nav dl,
256nav p {257padding: 4px 8px 0;258list-style: none;259}
260
261#project-navigation .nav-section {262margin: 0;263border-top: 0;264}
265
266#home-section h2 {267text-align: center;268}
269
270#table-of-contents-navigation {271font-size: 1.2em;272font-weight: bold;273text-align: center;274}
275
276#search-section {277margin-top: 0;278border-top: 0;279}
280
281#search-field-wrapper {282border-top: 1px solid #aaa;283border-bottom: 1px solid #aaa;284padding: 3px 8px;285background-color: #e8e8e8;286color: #555;287}
288
289ul.link-list li {290white-space: nowrap;291line-height: 1.4em;292}
293
294ul.link-list .type {295font-size: 8px;296text-transform: uppercase;297color: white;298background: #969696;299padding: 2px 4px;300-webkit-border-radius: 5px;301}
302
303dl.note-list dt {304float: left;305margin-right: 1em;306}
307
308.calls-super {309background: url(../images/arrow_up.png) no-repeat right center;310}
311
312.nav-section details summary {313display: block;314}
315
316.nav-section details summary::-webkit-details-marker {317display: none;318}
319
320.nav-section details summary:before {321content: "";322}
323
324.nav-section details summary:after {325content: " \25B6"; /* BLACK RIGHT-POINTING TRIANGLE */326}
327.nav-section details[open] > summary:after {328content: " \25BD"; /* WHITE DOWN-POINTING TRIANGLE */329}
330
331/* @end */
332
333/* @group Documentation Section */
334main {335color: #333;336}
337
338main > h1:first-child,
339main > h2:first-child,
340main > h3:first-child,
341main > h4:first-child,
342main > h5:first-child,
343main > h6:first-child {344margin-top: 0px;345}
346
347main sup {348vertical-align: super;349font-size: 0.8em;350}
351
352/* The heading with the class name */
353main h1[class] {354margin-top: 0;355margin-bottom: 1em;356font-size: 2em;357color: #6C8C22;358}
359
360main h1 {361margin: 2em 0 0.5em;362font-size: 1.7em;363}
364
365main h2 {366margin: 2em 0 0.5em;367font-size: 1.5em;368}
369
370main h3 {371margin: 2em 0 0.5em;372font-size: 1.2em;373}
374
375main h4 {376margin: 2em 0 0.5em;377font-size: 1.1em;378}
379
380main h5 {381margin: 2em 0 0.5em;382font-size: 1em;383}
384
385main h6 {386margin: 2em 0 0.5em;387font-size: 1em;388}
389
390main p {391margin: 0 0 0.5em;392line-height: 1.4em;393}
394
395main pre {396margin: 1.2em 0.5em;397padding: 1em;398font-size: 0.8em;399}
400
401main hr {402margin: 1.5em 1em;403border: 2px solid #ddd;404}
405
406main blockquote {407margin: 0 2em 1.2em 1.2em;408padding-left: 0.5em;409border-left: 2px solid #ddd;410}
411
412main ol,
413main ul {414margin: 1em 2em;415}
416
417main li > p {418margin-bottom: 0.5em;419}
420
421main dl {422margin: 1em 0.5em;423}
424
425main dt {426margin-bottom: 0.5em;427font-weight: bold;428}
429
430main dd {431margin: 0 1em 1em 0.5em;432}
433
434main header h2 {435margin-top: 2em;436border-width: 0;437border-top: 4px solid #bbb;438font-size: 130%;439}
440
441main header h3 {442margin: 2em 0 1.5em;443border-width: 0;444border-top: 3px solid #bbb;445font-size: 120%;446}
447
448.documentation-section-title {449position: relative;450}
451.documentation-section-title .section-click-top {452position: absolute;453top: 6px;454left: 12px;455font-size: 10px;456color: #9b9877;457visibility: hidden;458padding-left: 0.5px;459}
460
461.documentation-section-title:hover .section-click-top {462visibility: visible;463}
464
465.constants-list > dl {466margin: 1em 0 2em;467border: 0;468}
469
470.constants-list > dl dt {471margin-bottom: 0.75em;472padding-left: 0;473font-family: "Source Code Pro", Monaco, monospace;474font-size: 110%;475}
476
477.constants-list > dl dt a {478color: inherit;479}
480
481.constants-list > dl dd {482margin: 0 0 2em 0;483padding: 0;484color: #666;485}
486
487.documentation-section h2 {488position: relative;489}
490
491.documentation-section h2 a {492position: absolute;493top: 8px;494right: 10px;495font-size: 12px;496color: #9b9877;497visibility: hidden;498}
499
500.documentation-section h2:hover a {501visibility: visible;502}
503
504/* @group Method Details */
505
506main .method-source-code {507max-height: 0;508overflow: auto;509transition-duration: 200ms;510transition-delay: 0ms;511transition-property: all;512transition-timing-function: ease-in-out;513}
514
515main .method-source-code.active-menu {516max-height: 100vh;517}
518
519main .method-description .method-calls-super {520color: #333;521font-weight: bold;522}
523
524main .method-detail {525margin-bottom: 2.5em;526cursor: pointer;527}
528
529main .method-detail:target {530margin-left: -10px;531border-left: 10px solid #f1edba;532}
533
534main .method-heading {535position: relative;536font-family: "Source Code Pro", Monaco, monospace;537font-size: 110%;538font-weight: bold;539color: #333;540}
541main .method-heading :link,
542main .method-heading :visited {543color: inherit;544}
545main .method-click-advice {546position: absolute;547top: 2px;548right: 5px;549font-size: 12px;550color: #9b9877;551visibility: hidden;552padding-right: 20px;553line-height: 20px;554background: url(../images/zoom.png) no-repeat right top;555}
556main .method-heading:hover .method-click-advice {557visibility: visible;558}
559
560main .method-alias .method-heading {561color: #666;562}
563
564main .method-description,
565main .aliases {566margin-top: 0.75em;567color: #333;568}
569
570main .aliases {571padding-top: 4px;572font-style: italic;573cursor: default;574}
575main .method-description ul {576margin-left: 1.5em;577}
578
579main #attribute-method-details .method-detail:hover {580background-color: transparent;581cursor: default;582}
583main .attribute-access-type {584text-transform: uppercase;585padding: 0 1em;586}
587/* @end */
588
589/* @end */
590
591/* @group Source Code */
592
593pre {594margin: 0.5em 0;595border: 1px dashed #999;596padding: 0.5em;597background: #262626;598color: white;599overflow: auto;600}
601
602.ruby-constant { color: #7fffd4; background: transparent; }603.ruby-keyword { color: #00ffff; background: transparent; }604.ruby-ivar { color: #eedd82; background: transparent; }605.ruby-operator { color: #00ffee; background: transparent; }606.ruby-identifier { color: #ffdead; background: transparent; }607.ruby-node { color: #ffa07a; background: transparent; }608.ruby-comment { color: #dc0000; background: transparent; }609.ruby-regexp { color: #ffa07a; background: transparent; }610.ruby-value { color: #7fffd4; background: transparent; }611
612/* @end */
613
614
615/* @group search results */
616#search-results {617font-family: Lato, sans-serif;618font-weight: 300;619}
620
621#search-results .search-match {622font-family: Helvetica, sans-serif;623font-weight: normal;624}
625
626#search-results .search-selected {627background: #e8e8e8;628border-bottom: 1px solid transparent;629}
630
631#search-results li {632list-style: none;633border-bottom: 1px solid #aaa;634margin-bottom: 0.5em;635}
636
637#search-results li:last-child {638border-bottom: none;639margin-bottom: 0;640}
641
642#search-results li p {643padding: 0;644margin: 0.5em;645}
646
647#search-results .search-namespace {648font-weight: bold;649}
650
651#search-results li em {652background: yellow;653font-style: normal;654}
655
656#search-results pre {657margin: 0.5em;658font-family: "Source Code Pro", Monaco, monospace;659}
660
661/* @end */
662
663