NRuby

Форк
0
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

15
body {
16
  background: #3c3c3c;
17
  font-family: Lato, sans-serif;
18
  font-family: Georgia, serif;
19
  font-weight: 300;
20
  color: #FCFCFC;
21
}
22

23

24

25
h1 span,
26
h2 span,
27
h3 span,
28
h4 span,
29
h5 span,
30
h6 span {
31
  position: relative;
32

33
  display: none;
34
  padding-left: 1em;
35
  line-height: 0;
36
  vertical-align: baseline;
37
  font-size: 10px;
38
}
39

40
h1 span { top: -1.3em; }
41
h2 span { top: -1.2em; }
42
h3 span { top: -1.0em; }
43
h4 span { top: -0.8em; }
44
h5 span { top: -0.5em; }
45
h6 span { top: -0.5em; }
46

47
h1:hover span,
48
h2:hover span,
49
h3:hover span,
50
h4:hover span,
51
h5:hover span,
52
h6:hover span {
53
  display: inline;
54
}
55

56
h1:target,
57
h2:target,
58
h3:target,
59
h4:target,
60
h5:target,
61
h6:target {
62
  margin-left: -10px;
63
  /* border-left: 10px solid #f1edba; */
64
  border-left: 10px solid #D4000F;
65
}
66

67
:link,
68
:visited {
69
  /* color: #6C8C22; */
70
  color: #EE6262;
71
  text-decoration: none;
72
}
73

74
:link:hover,
75
:visited:hover {
76
  /* border-bottom: 1px dotted #6C8C22; */
77
  border-bottom: 1px dotted #832321;
78
}
79

80
code,
81
pre {
82
  font-family: "Source Code Pro", Monaco, monospace;
83
  background-color: rgba(27,31,35,0.05);
84
  padding: 0em 0.2em;
85
  border-radius: 0.2em;
86
}
87

88
table {
89
  margin: 0;
90
  border-spacing: 0;
91
  border-collapse: collapse;
92
}
93

94
table tr th, table tr td {
95
  padding: 0.2em 0.4em;
96
  border: 1px solid #ccc;
97
}
98

99
table tr th {
100
  background-color: #eceaed;
101
}
102

103
table tr:nth-child(even) td {
104
  background-color: #f5f4f6;
105
}
106

107
/* @group Generic Classes */
108

109
.initially-hidden {
110
  display: none;
111
}
112

113
#search-field {
114
  width: 98%;
115
  background: white;
116
  border: none;
117
  height: 1.5em;
118
  -webkit-border-radius: 4px;
119
  -moz-border-radius: 4px;
120
  border-radius: 4px;
121
  text-align: left;
122
}
123
#search-field:focus {
124
  /* background: #f1edba; */
125
  background: #F2C7BA;
126
}
127
#search-field:-moz-placeholder,
128
#search-field::-webkit-input-placeholder {
129
  font-weight: bold;
130
  color: #666;
131
}
132

133
.missing-docs {
134
  font-size: 120%;
135
  background: white url(../images/wrench_orange.png) no-repeat 4px center;
136
  color: #ccc;
137
  line-height: 2em;
138
  border: 1px solid #d00;
139
  opacity: 1;
140
  padding-left: 20px;
141
  text-indent: 24px;
142
  letter-spacing: 3px;
143
  font-weight: bold;
144
  -webkit-border-radius: 5px;
145
  -moz-border-radius: 5px;
146
}
147

148
.target-section {
149
  border: 2px solid #dcce90;
150
  border-left-width: 8px;
151
  padding: 0 1em;
152
  background: #fff3c2;
153
}
154

155
/* @end */
156

157
/* @group Index Page, Standalone file pages */
158

159
.table-of-contents h1 {
160
  margin-top: 1em ! important;
161
  list-style: none;
162
}
163

164

165
.table-of-contents ul {
166
  margin: 0em;
167
  list-style: none;
168
}
169

170
.table-of-contents ul ul {
171
  margin-top: 0.25em;
172
}
173

174
.table-of-contents ul :link,
175
.table-of-contents ul :visited {
176
  font-size: 16px;
177
}
178

179
.table-of-contents li {
180
  margin-bottom: 0.25em;
181
}
182

183
.table-of-contents li .toc-toggle {
184
  width: 16px;
185
  height: 16px;
186
  background: url(../images/add.png) no-repeat;
187
}
188

189
.table-of-contents li .toc-toggle.open {
190
  background: url(../images/delete.png) no-repeat;
191
}
192

193
/* @end */
194

195
/* @group Top-Level Structure */
196

197
nav {
198
  float: left;
199
  width: 260px;
200
  font-family: Helvetica, sans-serif;
201
  font-size: 14px;
202
  border-right: 1px solid #ccc;
203
}
204

205
main {
206
  display: block;
207
  margin: 0 200px  5em 260px;
208
  padding-left: 20px;
209
  min-width: 340px;
210
  font-size: 16px;
211

212
/*  margin-right: 200px ! important; */
213
}
214

215
main h1,
216
main h2,
217
main h3,
218
main h4,
219
main h5,
220
main h6 {
221
  font-family: Helvetica, sans-serif;
222
  color: #FFB090; /* JGB */
223
}
224

225

226
.table-of-contents main {
227
  margin-top: 0 ! important;
228
  margin-left: 2em;
229
}
230

231
#validator-badges {
232
  clear: both;
233
  margin: 1em 1em 2em;
234
  font-size: smaller;
235
}
236

237
/* @end */
238

239
/* @group navigation */
240
nav {
241
  margin-bottom: 1em;
242
}
243

244
nav .nav-section {
245
  margin-top: 2em;
246
  border-top: 2px solid #aaa;
247
  font-size: 90%;
248
  overflow: hidden;
249
}
250

251
nav h2 {
252
  margin: 0;
253
  padding: 2px 8px 2px 8px;
254
  background-color: #383838;
255
  color: #fcfefe;
256
  font-size: 125%;
257
  text-align: center;
258
}
259

260
nav h3,
261
#table-of-contents-navigation {
262
  margin: 0;
263
  padding: 2px 8px 2px 8px;
264
  text-align: right;
265
  background-color: #383838;
266
  color: #fcfcfc;
267
}
268

269
nav ul,
270
nav dl,
271
nav p {
272
  padding: 4px 8px 0;
273
  list-style: none;
274
}
275

276
#project-navigation .nav-section {
277
  margin: 0;
278
  border-top: 0;
279
}
280

281
#home-section h2 {
282
  text-align: center;
283
}
284

285
#table-of-contents-navigation {
286
  font-size: 1.2em;
287
  font-weight: bold;
288
  text-align: center;
289
}
290

291
#search-section {
292
  margin-top: 0;
293
  border-top: 0;
294
}
295

296
#search-field-wrapper {
297
  border-top: 1px solid #aaa;
298
  border-bottom: 1px solid #aaa;
299
  padding: 3px 8px;
300
/*  background-color: #e8e8e8;
301
  color: #555; */
302

303
  background: #3c3c3c;
304
  color: #FCFCFC;
305

306

307
}
308

309
ul.link-list li {
310
  white-space: nowrap;
311
  line-height: 1.4em;
312
}
313

314
ul.link-list .type {
315
  font-size: 8px;
316
  text-transform: uppercase;
317
  color: white;
318
  background: #969696;
319
  padding: 2px 4px;
320
  -webkit-border-radius: 5px;
321
}
322

323
dl.note-list dt {
324
  float: left;
325
  margin-right: 1em;
326
}
327

328
.calls-super {
329
  background: url(../images/arrow_up.png) no-repeat right center;
330
}
331

332
/* @end */
333

334
/* @group Documentation Section */
335
main {
336
  color: #efefef;
337
  
338
}
339

340
main > h1:first-child,
341
main > h2:first-child,
342
main > h3:first-child,
343
main > h4:first-child,
344
main > h5:first-child,
345
main > h6:first-child {
346
  margin-top: 0px;
347
}
348

349
main sup {
350
  vertical-align: super;
351
  font-size: 0.8em;
352
}
353

354
/* The heading with the class name */
355
main h1[class] {
356
  margin-top: 0;
357
  margin-bottom: 1em;
358
  font-size: 2em;
359
  /* color: #6C8C22; */
360
  color: #FF3333;
361
}
362

363
main h1 {
364
  margin: 2em 0 0.5em;
365
  font-size: 1.7em;
366
}
367

368
main h2 {
369
  margin: 2em 0 0.5em;
370
  font-size: 1.5em;
371
}
372

373
main h3 {
374
  margin: 2em 0 0.5em;
375
  font-size: 1.2em;
376
}
377

378
main h4 {
379
  margin: 2em 0 0.5em;
380
  font-size: 1.1em;
381
}
382

383
main h5 {
384
  margin: 2em 0 0.5em;
385
  font-size: 1em;
386
}
387

388
main h6 {
389
  margin: 2em 0 0.5em;
390
  font-size: 1em;
391
}
392

393
main p {
394
  margin: 0 0 0.5em;
395
  line-height: 1.4em;
396
}
397

398
main pre {
399
  margin: 1.2em 0.5em;
400
  padding: 1em;
401
  font-size: 0.8em;
402
}
403

404
main hr {
405
  margin: 1.5em 1em;
406
  border: 2px solid #ddd;
407
}
408

409
main blockquote {
410
  margin: 0 2em 1.2em 1.2em;
411
  padding-left: 0.5em;
412
  border-left: 2px solid #ddd;
413
}
414

415
main ol,
416
main ul {
417
  margin: 1em 2em;
418
}
419

420
main li > p {
421
  margin-bottom: 0.5em;
422
}
423

424
main dl {
425
  margin: 1em 0.5em;
426
}
427

428
main dt {
429
  margin-bottom: 0.5em;
430
  font-weight: bold;
431
}
432

433
main dd {
434
  margin: 0 1em 1em 0.5em;
435
}
436

437
main header h2 {
438
  margin-top: 2em;
439
  border-width: 0;
440
  border-top: 4px solid #bbb;
441
  font-size: 130%;
442
}
443

444
main header h3 {
445
  margin: 2em 0 1.5em;
446
  border-width: 0;
447
  border-top: 3px solid #bbb;
448
  font-size: 120%;
449
}
450

451
.documentation-section-title {
452
  position: relative;
453
}
454
.documentation-section-title .section-click-top {
455
  position: absolute;
456
  top: 6px;
457
  left: 12px;
458
  font-size: 10px;
459
  /* color: #9b9877; */
460
  color: #FB79F7;
461
  visibility: hidden;
462
  padding-left: 0.5px;
463
}
464

465
.documentation-section-title:hover .section-click-top {
466
  visibility: visible;
467
}
468

469
.constants-list > dl {
470
  margin: 1em 0 2em;
471
  border: 0;
472
}
473

474
.constants-list > dl dt {
475
  margin-bottom: 0.75em;
476
  padding-left: 0;
477
  font-family: "Source Code Pro", Monaco, monospace;
478
  font-size: 110%;
479
}
480

481
.constants-list > dl dt a {
482
  color: inherit;
483
}
484

485
.constants-list > dl dd {
486
  margin: 0 0 2em 0;
487
  padding: 0;
488
  color: #FEC;
489
}
490

491
.documentation-section h2 {
492
  position: relative;
493
}
494

495
.documentation-section h2 a {
496
  position: absolute;
497
  top: 8px;
498
  right: 10px;
499
  font-size: 12px;
500
  /* color: #9b9877; */
501
  color: #AD6565;
502
  visibility: hidden;
503
}
504

505
.documentation-section h2:hover a {
506
  visibility: visible;
507
}
508

509
/* @group Method Details */
510

511
main .method-source-code {
512
  max-height: 0;
513
  overflow: hidden;
514
  transition-duration: 200ms;
515
  transition-delay: 0ms;
516
  transition-property: all;
517
  transition-timing-function: ease-in-out;
518
}
519

520
main .method-source-code.active-menu {
521
  max-height: 100vh;
522
}
523

524
main .method-description .method-calls-super {
525
  color: #333;
526
  font-weight: bold;
527
}
528

529
main .method-detail {
530
  margin-bottom: 2.5em;
531
  cursor: pointer;
532
}
533

534
main .method-detail:target {
535
  margin-left: -10px;
536
  border-left: 10px solid #f1edba;
537
}
538

539
main .method-heading {
540
  position: relative;
541
  font-family: "Source Code Pro", Monaco, monospace;
542
  font-size: 110%;
543
  font-weight: bold;
544
  color: #CCFFFF;
545
}
546
main .method-heading :link,
547
main .method-heading :visited {
548
  color: inherit;
549
}
550
main .method-click-advice {
551
  position: absolute;
552
  top: 2px;
553
  right: 5px;
554
  font-size: 12px;
555
  /* color: #Ab9877; */
556
  color: #FFCC77;
557
  visibility: hidden;
558
  padding-right: 20px;
559
  line-height: 20px;
560
  background: url(../images/zoom.png) no-repeat right top;
561
}
562
main .method-heading:hover .method-click-advice {
563
  visibility: visible;
564
}
565

566
main .method-alias .method-heading {
567
  color: #666;
568
}
569

570
main .method-description,
571
main .aliases {
572
  margin-top: 0.75em;
573
  color: #fcfcfc;
574
}
575

576
main .aliases {
577
  padding-top: 4px;
578
  font-style: italic;
579
  cursor: default;
580
}
581
main .method-description ul {
582
  margin-left: 1.5em;
583
}
584

585
main #attribute-method-details .method-detail:hover {
586
  background-color: transparent;
587
  cursor: default;
588
}
589
main .attribute-access-type {
590
  text-transform: uppercase;
591
  padding: 0 1em;
592
}
593
/* @end */
594

595
/* @end */
596

597
/* @group Source Code */
598

599
pre {
600
  margin: 0.5em 0;
601
  border: 1px dashed #999;
602
  padding: 0.5em;
603
  background: #262626;
604
  color: white;
605
  overflow: 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 {
623
  font-family: Lato, sans-serif;
624
  font-weight: 300;
625

626
  background: #3c3c3c;
627
  color: #FCFCFC;
628

629

630
}
631

632
#search-results .search-match {
633
  font-family: Helvetica, sans-serif;
634
  font-weight: normal;
635
}
636

637
#search-results .search-selected {
638
  background: #3c3c3c;
639
  color: #FCFCFC;
640

641
  border-bottom: 1px solid transparent;
642
}
643

644
#search-results li {
645
  list-style: none;
646
  border-bottom: 1px solid #aaa;
647
  margin-bottom: 0.5em;
648
}
649

650
#search-results li:last-child {
651
  border-bottom: none;
652
  margin-bottom: 0;
653
}
654

655
#search-results li p {
656
  padding: 0;
657
  margin: 0.5em;
658
}
659

660
#search-results .search-namespace {
661
  font-weight: bold;
662
}
663

664
#search-results li em {
665
/*  background: yellow; */
666
  background: #EFD;
667
  font-style: normal;
668
}
669

670
#search-results pre {
671
  margin: 0.5em;
672
  font-family: "Source Code Pro", Monaco, monospace;
673
}
674

675

676
/* JGB */
677

678
#actionbar {
679
  background: #646462 ! important;
680
  color: #fff ! important;
681
  font-weight: bold;
682
  width: 100%;
683
  line-height: 2em;
684

685
  font-family: Helvetica, Arial, sans-serif; /* Swap these two lines around to switch between serif and sans */
686
}
687

688
#actionbar .right {
689
  text-align: right;
690
}
691

692
#actionbar form, #actionbar input {
693
display: inline;
694

695
}
696

697
#actionbar li {
698
display: inline;
699
padding: 2px 5px;
700
}
701

702

703
#actionbar li a, #actionbar li  a:visited , #actionbar li  a:link {
704
color: #fff ! important;
705
text-decoration: none  ! important;
706
opacity: 1.0;
707
border-bottom: none;
708
}
709

710

711
#actionbar li  a:hover {
712
 color:red!important;
713
 text-decoration: none!important;
714
  opacity: 1.0;
715
  border-bottom: none;
716
}
717

718
#toggleThing {
719
 border-radius: 5px;
720
 width: 80%;
721
 color: #FFF;
722
 background-color: #C66;
723
 margin:auto; 
724
 text-align:center;
725
display:block;
726
margin-top: 10px;
727
padding: 3px;
728
border-color:  #933;
729
}
730

731
[hidden] {
732
  display: none;
733
}
734

735
.hidden {
736
  display: none;
737
}
738

739
.block {
740
  display: block;
741
}
742

743

744

745
li.gemheader, li.gemname  {
746
  padding: 8px 4px 4px 4px;
747
  font-size: 20px;
748
  font-family: Helvetica, sans-serif;
749
  color: #FAC929; /* JGB */
750
}
751

752

753

754

755
/* --------------------- */
756

757

758

759

760
@media (min-width: 802px) {
761

762
  /* #project-metadata {
763

764
  display: block;
765
} */
766

767
}
768

769

770

771
@media (max-width: 800px) {
772

773
/* #project-metadata {
774
display: none;
775

776
} */
777

778
  nav {
779
/* border: solid 4px red ! important;  */
780
clear: right ! important; 
781

782
/* border: solid 4px green ! important; */
783
}
784

785
main {
786
float: right;
787
display:block! important;  
788
width: 90% ! important;  
789
margin-right: 0%! important; 
790
margin-left: auto ! important; 
791
padding-left: 0 ! important; 
792
clear: right ! important; 
793

794
}
795

796

797
#extraz {
798
 /* border: solid 4px red ! important;  */
799
  clear: both ! important; 
800
  float: left ! important; 
801
  position: static ! important; 
802
 /* position: static; */
803
 display: block! important;
804
 margin-top: 0px! important;
805
 margin-bottom: 100px! important;
806

807
}
808

809
 #carbonads, #carbonads_1  {
810
   margin: 5px 20px! important;
811
  
812
  }
813

814
  div.adzbox-no-files-index {
815
  
816
   margin-top: 5px! important;
817
   margin-right: 5px ! important;    
818
   
819
  }
820

821

822

823
#carbonads-container {
824
 margin-left: 55px ! important;
825
 width: 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

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.