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