NRuby
843 строки · 12.7 Кб
1/*
2* "Darkfish" Dark Mode Rdoc CSS
3*
4* Author: Michael Granger <ged@FaerieMUD.org>
5* James Britt <james@jamesbritt.com>
6*/
7
8/* vim: ft=css et sw=2 ts=2 sts=2 */
9/* Base Green is: #6C8C22 */
10
11.hide { display: none !important; }12
13* { padding: 0; margin: 0; }14
15body {16background: #3c3c3c;17font-family: Lato, sans-serif;18font-family: Georgia, serif;19font-weight: 300;20color: #FCFCFC;21}
22
23
24
25h1 span,
26h2 span,
27h3 span,
28h4 span,
29h5 span,
30h6 span {31position: relative;32
33display: none;34padding-left: 1em;35line-height: 0;36vertical-align: baseline;37font-size: 10px;38}
39
40h1 span { top: -1.3em; }41h2 span { top: -1.2em; }42h3 span { top: -1.0em; }43h4 span { top: -0.8em; }44h5 span { top: -0.5em; }45h6 span { top: -0.5em; }46
47h1:hover span,
48h2:hover span,
49h3:hover span,
50h4:hover span,
51h5:hover span,
52h6:hover span {53display: inline;54}
55
56h1:target,
57h2:target,
58h3:target,
59h4:target,
60h5:target,
61h6:target {62margin-left: -10px;63/* border-left: 10px solid #f1edba; */64border-left: 10px solid #D4000F;65}
66
67:link,
68:visited {69/* color: #6C8C22; */70color: #EE6262;71text-decoration: none;72}
73
74:link:hover,
75:visited:hover {76/* border-bottom: 1px dotted #6C8C22; */77border-bottom: 1px dotted #832321;78}
79
80code,
81pre {82font-family: "Source Code Pro", Monaco, monospace;83background-color: rgba(27,31,35,0.05);84padding: 0em 0.2em;85border-radius: 0.2em;86}
87
88table {89margin: 0;90border-spacing: 0;91border-collapse: collapse;92}
93
94table tr th, table tr td {95padding: 0.2em 0.4em;96border: 1px solid #ccc;97}
98
99table tr th {100background-color: #eceaed;101}
102
103table tr:nth-child(even) td {104background-color: #f5f4f6;105}
106
107/* @group Generic Classes */
108
109.initially-hidden {110display: none;111}
112
113#search-field {114width: 98%;115background: white;116border: none;117height: 1.5em;118-webkit-border-radius: 4px;119-moz-border-radius: 4px;120border-radius: 4px;121text-align: left;122}
123#search-field:focus {124/* background: #f1edba; */125background: #F2C7BA;126}
127#search-field:-moz-placeholder,
128#search-field::-webkit-input-placeholder {129font-weight: bold;130color: #666;131}
132
133.missing-docs {134font-size: 120%;135background: white url(../images/wrench_orange.png) no-repeat 4px center;136color: #ccc;137line-height: 2em;138border: 1px solid #d00;139opacity: 1;140padding-left: 20px;141text-indent: 24px;142letter-spacing: 3px;143font-weight: bold;144-webkit-border-radius: 5px;145-moz-border-radius: 5px;146}
147
148.target-section {149border: 2px solid #dcce90;150border-left-width: 8px;151padding: 0 1em;152background: #fff3c2;153}
154
155/* @end */
156
157/* @group Index Page, Standalone file pages */
158
159.table-of-contents h1 {160margin-top: 1em ! important;161list-style: none;162}
163
164
165.table-of-contents ul {166margin: 0em;167list-style: none;168}
169
170.table-of-contents ul ul {171margin-top: 0.25em;172}
173
174.table-of-contents ul :link,
175.table-of-contents ul :visited {176font-size: 16px;177}
178
179.table-of-contents li {180margin-bottom: 0.25em;181}
182
183.table-of-contents li .toc-toggle {184width: 16px;185height: 16px;186background: url(../images/add.png) no-repeat;187}
188
189.table-of-contents li .toc-toggle.open {190background: url(../images/delete.png) no-repeat;191}
192
193/* @end */
194
195/* @group Top-Level Structure */
196
197nav {198float: left;199width: 260px;200font-family: Helvetica, sans-serif;201font-size: 14px;202border-right: 1px solid #ccc;203}
204
205main {206display: block;207margin: 0 200px 5em 260px;208padding-left: 20px;209min-width: 340px;210font-size: 16px;211
212/* margin-right: 200px ! important; */
213}
214
215main h1,
216main h2,
217main h3,
218main h4,
219main h5,
220main h6 {221font-family: Helvetica, sans-serif;222color: #FFB090; /* JGB */223}
224
225
226.table-of-contents main {227margin-top: 0 ! important;228margin-left: 2em;229}
230
231#validator-badges {232clear: both;233margin: 1em 1em 2em;234font-size: smaller;235}
236
237/* @end */
238
239/* @group navigation */
240nav {241margin-bottom: 1em;242}
243
244nav .nav-section {245margin-top: 2em;246border-top: 2px solid #aaa;247font-size: 90%;248overflow: hidden;249}
250
251nav h2 {252margin: 0;253padding: 2px 8px 2px 8px;254background-color: #383838;255color: #fcfefe;256font-size: 125%;257text-align: center;258}
259
260nav h3,
261#table-of-contents-navigation {262margin: 0;263padding: 2px 8px 2px 8px;264text-align: right;265background-color: #383838;266color: #fcfcfc;267}
268
269nav ul,
270nav dl,
271nav p {272padding: 4px 8px 0;273list-style: none;274}
275
276#project-navigation .nav-section {277margin: 0;278border-top: 0;279}
280
281#home-section h2 {282text-align: center;283}
284
285#table-of-contents-navigation {286font-size: 1.2em;287font-weight: bold;288text-align: center;289}
290
291#search-section {292margin-top: 0;293border-top: 0;294}
295
296#search-field-wrapper {297border-top: 1px solid #aaa;298border-bottom: 1px solid #aaa;299padding: 3px 8px;300/* background-color: #e8e8e8;
301color: #555; */
302
303background: #3c3c3c;304color: #FCFCFC;305
306
307}
308
309ul.link-list li {310white-space: nowrap;311line-height: 1.4em;312}
313
314ul.link-list .type {315font-size: 8px;316text-transform: uppercase;317color: white;318background: #969696;319padding: 2px 4px;320-webkit-border-radius: 5px;321}
322
323dl.note-list dt {324float: left;325margin-right: 1em;326}
327
328.calls-super {329background: url(../images/arrow_up.png) no-repeat right center;330}
331
332/* @end */
333
334/* @group Documentation Section */
335main {336color: #efefef;337
338}
339
340main > h1:first-child,
341main > h2:first-child,
342main > h3:first-child,
343main > h4:first-child,
344main > h5:first-child,
345main > h6:first-child {346margin-top: 0px;347}
348
349main sup {350vertical-align: super;351font-size: 0.8em;352}
353
354/* The heading with the class name */
355main h1[class] {356margin-top: 0;357margin-bottom: 1em;358font-size: 2em;359/* color: #6C8C22; */360color: #FF3333;361}
362
363main h1 {364margin: 2em 0 0.5em;365font-size: 1.7em;366}
367
368main h2 {369margin: 2em 0 0.5em;370font-size: 1.5em;371}
372
373main h3 {374margin: 2em 0 0.5em;375font-size: 1.2em;376}
377
378main h4 {379margin: 2em 0 0.5em;380font-size: 1.1em;381}
382
383main h5 {384margin: 2em 0 0.5em;385font-size: 1em;386}
387
388main h6 {389margin: 2em 0 0.5em;390font-size: 1em;391}
392
393main p {394margin: 0 0 0.5em;395line-height: 1.4em;396}
397
398main pre {399margin: 1.2em 0.5em;400padding: 1em;401font-size: 0.8em;402}
403
404main hr {405margin: 1.5em 1em;406border: 2px solid #ddd;407}
408
409main blockquote {410margin: 0 2em 1.2em 1.2em;411padding-left: 0.5em;412border-left: 2px solid #ddd;413}
414
415main ol,
416main ul {417margin: 1em 2em;418}
419
420main li > p {421margin-bottom: 0.5em;422}
423
424main dl {425margin: 1em 0.5em;426}
427
428main dt {429margin-bottom: 0.5em;430font-weight: bold;431}
432
433main dd {434margin: 0 1em 1em 0.5em;435}
436
437main header h2 {438margin-top: 2em;439border-width: 0;440border-top: 4px solid #bbb;441font-size: 130%;442}
443
444main header h3 {445margin: 2em 0 1.5em;446border-width: 0;447border-top: 3px solid #bbb;448font-size: 120%;449}
450
451.documentation-section-title {452position: relative;453}
454.documentation-section-title .section-click-top {455position: absolute;456top: 6px;457left: 12px;458font-size: 10px;459/* color: #9b9877; */460color: #FB79F7;461visibility: hidden;462padding-left: 0.5px;463}
464
465.documentation-section-title:hover .section-click-top {466visibility: visible;467}
468
469.constants-list > dl {470margin: 1em 0 2em;471border: 0;472}
473
474.constants-list > dl dt {475margin-bottom: 0.75em;476padding-left: 0;477font-family: "Source Code Pro", Monaco, monospace;478font-size: 110%;479}
480
481.constants-list > dl dt a {482color: inherit;483}
484
485.constants-list > dl dd {486margin: 0 0 2em 0;487padding: 0;488color: #FEC;489}
490
491.documentation-section h2 {492position: relative;493}
494
495.documentation-section h2 a {496position: absolute;497top: 8px;498right: 10px;499font-size: 12px;500/* color: #9b9877; */501color: #AD6565;502visibility: hidden;503}
504
505.documentation-section h2:hover a {506visibility: visible;507}
508
509/* @group Method Details */
510
511main .method-source-code {512max-height: 0;513overflow: hidden;514transition-duration: 200ms;515transition-delay: 0ms;516transition-property: all;517transition-timing-function: ease-in-out;518}
519
520main .method-source-code.active-menu {521max-height: 100vh;522}
523
524main .method-description .method-calls-super {525color: #333;526font-weight: bold;527}
528
529main .method-detail {530margin-bottom: 2.5em;531cursor: pointer;532}
533
534main .method-detail:target {535margin-left: -10px;536border-left: 10px solid #f1edba;537}
538
539main .method-heading {540position: relative;541font-family: "Source Code Pro", Monaco, monospace;542font-size: 110%;543font-weight: bold;544color: #CCFFFF;545}
546main .method-heading :link,
547main .method-heading :visited {548color: inherit;549}
550main .method-click-advice {551position: absolute;552top: 2px;553right: 5px;554font-size: 12px;555/* color: #Ab9877; */556color: #FFCC77;557visibility: hidden;558padding-right: 20px;559line-height: 20px;560background: url(../images/zoom.png) no-repeat right top;561}
562main .method-heading:hover .method-click-advice {563visibility: visible;564}
565
566main .method-alias .method-heading {567color: #666;568}
569
570main .method-description,
571main .aliases {572margin-top: 0.75em;573color: #fcfcfc;574}
575
576main .aliases {577padding-top: 4px;578font-style: italic;579cursor: default;580}
581main .method-description ul {582margin-left: 1.5em;583}
584
585main #attribute-method-details .method-detail:hover {586background-color: transparent;587cursor: default;588}
589main .attribute-access-type {590text-transform: uppercase;591padding: 0 1em;592}
593/* @end */
594
595/* @end */
596
597/* @group Source Code */
598
599pre {600margin: 0.5em 0;601border: 1px dashed #999;602padding: 0.5em;603background: #262626;604color: white;605overflow: auto;606}
607
608.ruby-constant { color: #7fffd4; background: transparent; }609.ruby-keyword { color: #00ffff; background: transparent; }610.ruby-ivar { color: #eedd82; background: transparent; }611.ruby-operator { color: #00ffee; background: transparent; }612.ruby-identifier { color: #ffdead; background: transparent; }613.ruby-node { color: #ffa07a; background: transparent; }614.ruby-comment { color: #dc0000; background: transparent; }615.ruby-regexp { color: #ffa07a; background: transparent; }616.ruby-value { color: #7fffd4; background: transparent; }617
618/* @end */
619
620
621/* @group search results */
622#search-results {623font-family: Lato, sans-serif;624font-weight: 300;625
626background: #3c3c3c;627color: #FCFCFC;628
629
630}
631
632#search-results .search-match {633font-family: Helvetica, sans-serif;634font-weight: normal;635}
636
637#search-results .search-selected {638background: #3c3c3c;639color: #FCFCFC;640
641border-bottom: 1px solid transparent;642}
643
644#search-results li {645list-style: none;646border-bottom: 1px solid #aaa;647margin-bottom: 0.5em;648}
649
650#search-results li:last-child {651border-bottom: none;652margin-bottom: 0;653}
654
655#search-results li p {656padding: 0;657margin: 0.5em;658}
659
660#search-results .search-namespace {661font-weight: bold;662}
663
664#search-results li em {665/* background: yellow; */
666background: #EFD;667font-style: normal;668}
669
670#search-results pre {671margin: 0.5em;672font-family: "Source Code Pro", Monaco, monospace;673}
674
675
676/* JGB */
677
678#actionbar {679background: #646462 ! important;680color: #fff ! important;681font-weight: bold;682width: 100%;683line-height: 2em;684
685font-family: Helvetica, Arial, sans-serif; /* Swap these two lines around to switch between serif and sans */686}
687
688#actionbar .right {689text-align: right;690}
691
692#actionbar form, #actionbar input {693display: inline;694
695}
696
697#actionbar li {698display: inline;699padding: 2px 5px;700}
701
702
703#actionbar li a, #actionbar li a:visited , #actionbar li a:link {704color: #fff ! important;705text-decoration: none ! important;706opacity: 1.0;707border-bottom: none;708}
709
710
711#actionbar li a:hover {712color:red!important;713text-decoration: none!important;714opacity: 1.0;715border-bottom: none;716}
717
718#toggleThing {719border-radius: 5px;720width: 80%;721color: #FFF;722background-color: #C66;723margin:auto;724text-align:center;725display:block;726margin-top: 10px;727padding: 3px;728border-color: #933;729}
730
731[hidden] {732display: none;733}
734
735.hidden {736display: none;737}
738
739.block {740display: block;741}
742
743
744
745li.gemheader, li.gemname {746padding: 8px 4px 4px 4px;747font-size: 20px;748font-family: Helvetica, sans-serif;749color: #FAC929; /* JGB */750}
751
752
753
754
755/* --------------------- */
756
757
758
759
760@media (min-width: 802px) {761
762/* #project-metadata {763
764display: block;
765} */
766
767}
768
769
770
771@media (max-width: 800px) {772
773/* #project-metadata {
774display: none;
775
776} */
777
778nav {779/* border: solid 4px red ! important; */
780clear: right ! important;781
782/* border: solid 4px green ! important; */
783}
784
785main {786float: right;787display:block! important;788width: 90% ! important;789margin-right: 0%! important;790margin-left: auto ! important;791padding-left: 0 ! important;792clear: right ! important;793
794}
795
796
797#extraz {798/* border: solid 4px red ! important; */799clear: both ! important;800float: left ! important;801position: static ! important;802/* position: static; */803display: block! important;804margin-top: 0px! important;805margin-bottom: 100px! important;806
807}
808
809#carbonads, #carbonads_1 {810margin: 5px 20px! important;811
812}813
814div.adzbox-no-files-index {815
816margin-top: 5px! important;817margin-right: 5px ! important;818
819}820
821
822
823#carbonads-container {824margin-left: 55px ! important;825width: 270px;826
827}
828
829
830
831}
832
833
834/* DEBUGGERY */
835
836
837#actionbar {838/* border: solid 2px green ! important; */839
840}
841
842
843/* @end */
844
845
846