-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.scss
832 lines (755 loc) · 18.9 KB
/
github.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
@import 'https://fonts.googleapis.com/css?family=Open+Sans';
// @import "/home/kip/.cache/wal/colors.scss";
@import "colors.scss";
/* TODO: move to hsl colors and use this site as resource for color calculating: */
/* .ml-3 это скорее всего двойные кнопки */
/* https://una.im/css-color-theming/ */
$main-background-color: $color0;
$background-dark: darken($main-background-color, 5%);
/* used to separate sections from each other (like borders) */
$background-light: lighten($main-background-color, 18%);
$light: $color15;
$grey: $color8;
$link-color: $color2;
$stress1: $color1; /* current opened tab in repository */
$stress2: $color9; /* hi last commiter name */
$stress3: $color12;
/* color when you need to emphasize some section (neighter it's button
* or heading to something */
// $section-emph-border: #C0C0DD;
$section-emph-border: lighten($color1, 5%);
$section-emph-background: darken($color11, 55%);
// $sel-background: #272a2b;
$sel-background: darken($color8, 25%);
$button-border-hover: #8d969e;
* {
-webkit-box-sizing: border-box !important;
box-sizing: border-box !important;
}
.color-bg-canvas-inset
{
background-color: $main-background-color !important;
}
body {
font-family: 'Open Sans', sans-serif !important;
line-height: 1.75em !important;
/* font-size: 16px !important; */
background-color: $main-background-color !important;
color: $light !important;
}
html
{
background-color: $background-dark !important;
}
/* заголовок гитхаба в самом верху */
.Header
{
background-color: $background-dark !important;
}
/* поле поиска в самом верху */
.input-sm
{
background-color: $main-background-color !important;
}
.simple-container {
max-width: 675px !important;
margin: 0 auto !important;
padding-top: 70px !important;
padding-bottom: 20px !important;
}
.simple-print {
fill: white !important;
stroke: white !important;
}
.simple-print svg {
height: 100% !important;
}
.simple-close {
color: white !important;
border-color: white !important;
}
.simple-ext-info {
border-top: 1px solid #aaa !important;
}
a[href] {
color: $link-color !important;
}
a[href]:hover {
color: $link-color !important;
}
img {
max-width: 100% !important;
}
li {
line-height: 1.5em !important;
}
aside,
[class *= "sidebar"],
[id *= "sidebar"] {
max-width: 90% !important;
margin: 0 auto !important;
border: 1px solid lightgrey !important;
padding: 5px 15px !important;
}
/* контейнер для заголовков для фолдеров и плашек фолдеров */
.Box
{
background-color: $main-background-color !important;
border: 1px solid $background-light !important;
}
/* строчка которая содержит фолдеры в репозитории */
.Box-row
{
border-top: 1px solid $background-light !important;
}
/* ник последнего коммитера */
a[href].commit-author
{
color: $stress2 !important;
}
a[href].f6
{
// color: var(--stress3) !important;
color: $stress3 !important;
}
/* плашки фолдеров в репозитории */
/* сделать голубоватую рамку, само выделение серым, а
* ник последнего коммитера грязно коралловым */
.navigation-focus
{
background-color: $sel-background !important;
}
/* короткая менюшка с нафигацией по секциям в репозитории: код, пул реквесты */
/* безопасность, настройки */
/* bg-gray-light pt-3 hide-full-screen mb-5 */
.pt-3,
.js-repo-nav
{
background-color: $main-background-color !important;
}
/* остальные плашки в менюшке с навигацией по классам репозитории */
/* js-selected-navigation-item UnderlineNav-item hx_underlinenav-item no-wrap js-responsive-underlinenav-item */
.js-selected-navigation-item
{
border-bottom: 1px solid $background-light !important;
}
/* продолжение разделителя на всю странницу (навигация по репозиторию) */
.js-repo-nav,
.js-sidenav-container-pjax
{
box-shadow: inset 0 -1px 0 $background-light !important;
}
/* выбранный итем в менюшке с навигацией по репозиторию: код, пул реквесты, */
/* безопасность, настройки */
.selected.UnderlineNav-item
{
/* border-top-color: $stress1 !important; */
/* border-bottom-color: none !important; */
border: none !important;
border-top: 2px solid $stress1 !important;
border-top-right-radius: 2px;
border-top-left-radius: 2px;
border-left: 1px solid $background-light !important;
border-right: 1px solid $background-light !important;
border-bottom: none !important;
background-color: $main-background-color !important;
}
/* how many days ago commit was made */
.text-gray-light,
/* on right side of folders header - "commit" string */
.text-gray,
/* name of last commit in folder */
a.link-gray,
a.muted-link
{
color: $grey !important;
}
/* section with languages list in the bottom right */
.text-gray-dark,
/* "About" section on right side of page */
.mb-3,
/* folder name */
a.link-gray-dark,
/* "Go to file" button font color */
a.ml-2,
/* link color on top of page */
a.Header-link
{
color: $light !important;
}
a.ml-2:hover
{
color: $light !important;
}
/* навигация по репозиторию */
.UnderlineNav-item,
.UnderlineNav-item[href]
{
color: $light !important;
}
/* разделители справа */
.BorderGrid-cell
{
border: 1px solid $background-light !important;
}
/* кнопки */
.btn
{
background-color: $main-background-color !important;
color: $light !important;
/* border: none !important; */
border: 1px solid $background-light !important;
border-radius: 3px !important;
box-shadow: none !important;
}
.btn-sm
{
border: none !important;
}
.btn:hover
{
border-color: $button-border-hover !important;
}
/* "Watch", "Star", "Fork" buttons */
ul.pagehead-actions li
{
border: 1px solid $background-light !important;
border-radius: 3px !important;
}
ul.pagehead-actions li:hover
{
border-color: $button-border-hover !important;
}
/* watch, stars, forks qty buttons */
a.social-count
{
background-color: $main-background-color !important;
box-shadow: none !important;
border: none !important;
color: #fff !important;
}
/* laber near to repository name */
span.Label
{
border: 1px solid $background-light !important;
border-radius: 9px !important;
}
/* всплывающая менюшка при нажатии на кнопки в репо */
/* заголовок */
.SelectMenu-header,
/* список выпадающих элементов */
.SelectMenu-item
{
color: $light !important;
background-color: $main-background-color !important;
}
/* заголовок */
.SelectMenu-title
{
line-height: 0px !important;
padding: none !important;
border: none !important;
}
/* список выпадающих элементов */
.SelectMenu-item:hover
{
background-color: $background-dark !important;
}
.dropdown-menu
{
background-color: $main-background-color !important;
/* background-color: var(--color-bg-overlay) !important; */
}
/* вкладка Code в репозитории */
li.Box-row:hover
{
background-color: $background-dark !important;
}
.dropdown-item:hover
{
background-color: $background-dark !important;
}
input.subnav-search-input
{
background-color: $background-dark !important;
}
/* content {{{ */
/* заголовок для фолдеров в репозитории */
.Box-header--blue
{
border: 1px solid $section-emph-border !important;
box-shadow: inset 0 -1px 0 $section-emph-border !important;
background-color: $section-emph-background !important;
}
/* }}} */
/* readme {{{ */
.md .Box-header
{
border: 1px solid $section-emph-border !important;
box-shadow: inset 0 -1px 0 $section-emph-border !important;
background-color: $section-emph-background !important;
}
/* }}} */
/* владка `issues` {{{ */
/* Кнопки `labels` `Milestones` */
a.subnav-item:hover
{
background-color: $sel-background !important;
}
/* конец вкладки `issues` }}} */
/* "insights" tab {{{ */
/* not enabled tabs on left side (Pulse, COntributors) */
nav.menu span.menu-item
{
background-color: $main-background-color !important;
}
/* enabled left tabs */
nav.menu a.menu-item
{
color: $light !important;
background-color: $main-background-color !important;
}
nav.menu a.menu-item:hover
{
background-color: $sel-background !important;
}
/* selected left tab */
nav.menu a.selected.menu-item
{
background-color: $sel-background !important;
}
nav.tabnav-tabs
{
/* horizontal tabs */
a.tabnav-tab
{
color: $grey !important;
&:not(:first-child)
{
border-bottom: 1px solid $background-light !important;
}
&:first-child
{
border-top: 1px solid $background-light !important;
border-left: 1px solid $background-light !important;
border-right: 1px solid $background-light !important;
border-top-right-radius: 6px !important;
border-top-left-radius: 6px !important;
}
}
/* selected horizontal tab */
a.selected
{
color: $light !important;
background-color: $sel-background !important;
}
}
/* header in "Dependents" (item in horizontal list) */
.Box .border-bottom
{
border: 1px solid $section-emph-border !important;
border-top-right-radius: 6px !important;
border-top-left-radius: 6px !important;
box-shadow: inset 0 -1px 0 $section-emph-border !important;
background-color: $section-emph-background !important;
}
/* white "Repository" */
.Box .border-bottom a.btn-link
{
color: $grey !important;
}
/* grey "Packages" */
.Box .border-bottom a.btn-link.selected
{
color: $light !important;
}
/* }}} */
/* "settings" tab {{{ */
li a.js-selected-navigation-item
{
color: $light !important;
}
/* }}} */
/* просмотр кода {{{ */
/* заголовок для файла */
.mt-3 .Box-header
{
background-color: $main-background-color !important;
border-color: $background-light !important;
box-shadow: inset 0 -1px 0 $background-light !important
}
/* конец просмотра кода }}} */
/* security tab {{{ */
/* selected on left side item ("overview", "security policy") */
a.SideNav-item
{
background-color: $main-background-color !important;
}
a.SideNav-item:hover
{
background-color: $sel-background !important;
}
/* }}} */
/* 'pulls' tab {{{ */
/* "created", "assigned", "mentioned" */
.subnav-links .selected
{
background-color: $sel-background !important;
border-color: $background-light !important;
}
/* box header "Open", "Closed", "Visibility" */
.Box .Box-header
{
border: 1px solid $section-emph-border !important;
box-shadow: inset 0 -1px 0 $section-emph-border !important;
background-color: $section-emph-background !important;
}
/* list of pulls */
.js-navigation-container
{
/* border-bottom: 1px solid var(--color-border-primary) !important; */
border-top: none !important;
border-bottom: 1px solid $background-light !important;
border-left: 1px solid $background-light !important;
border-right: 1px solid $background-light !important;
border-radius: 6px !important;
}
/* item in list of pulls */
.Box-row--drag-hide
{
background-color: $main-background-color !important;
}
/* }}} */
/* jump to {{{ */
li.navigation-focus,
li.navigation-focus a,
li.js-navigation-item,
li.js-navigation-item a
{
border: none !important;
background-color: $main-background-color !important;
}
li.navigation-focus a:hover,
li.navigation-focut:hover
{
background-color: $sel-background !important;
}
/* border rounded-1 flex-shrink-0 bg-gray px-1 text-gray-light
* ml-1 f6 d-on-nav-focus js-jump-to-badge-jump */
.d-on-nav-focus
{
background-color: $background-dark !important;
}
/* }}} */
/* main page {{{ */
/* dashboard */
.team-left-column
{
background-color: $main-background-color !important;
border: none !important;
border-right: 1px solid $background-light !important;
}
.team-left-column .dashboard-sidebar
{
border: none !important;
}
/* button "create an organization" on side */
.dashboard-sidebar a.btn
{
background-color: $section-emph-background !important;
color: $grey !important;
}
/* }}} */
/* explore page {{{ */
/* profile card */
/* picture and name */
.col-md-12 .border .d-lg-block,
/* items in lists below picture and namve */
.col-md-12 .border .border-top
{
border-top: 1px solid $background-light !important;
background-color: $main-background-color
}
/* items in lists below picture and namve */
.col-md-12 .border .border-top
{
border-top: 1px solid $background-light !important;
border-bottom: 1px solid $background-light !important;
}
/* container for profile card */
.col-md-12 .box-shadow-medium
{
border: 1px solid $background-light !important;
background-color: $background-light !important;
}
/* hashtag icon on left side of topics in profile card */
.col-md-12 .border ul li div.bg-blue-light
{
background-color: $sel-background !important;
}
/* background fill */
div.application-main main .border-bottom
{
background-color: $main-background-color !important;
}
/* navigation header */
div.site-subnav
{
background-color: $background-dark !important;
/* border-top: 1px solid $background-light !important; */
}
div.site-subnav a
{
color: $light !important;
}
/* "Get emails updates" in navigation header */
div.site-subnav a.btn-mktg
{
background-color: $sel-background !important;
border-color: $background-light !important;
}
div.site-subnav a.btn-mktg:hover
{
border-color: $grey !important;
/* background-color: $section-emph-background !important; */
}
/* entry in news */
article.border
{
background-color: $section-emph-background !important;
}
/* border around button "Star" */
article.border .ml-3
{
border: 1px solid $background-light !important;
border-radius: 5px !important;
background-color: $main-background-color !important;
}
article.border .ml-3:hover
{
border-color: $grey !important;
}
/* first tab in repository preview "Code" (there are also "Issues,
* Pull requests"*/
nav.tabnav-tabs a:first-child
{
background-color: $main-background-color !important;
color: $light !important;
border-color: $background-light !important;
}
.tabnav-tabs .tabnav-tab
{
background-color: $section-emph-background !important;
border: none !important;
}
/* code, issues, pull requests, discussions */
div.tabnav
{
border-color: $background-light !important;
}
/* Time updated */
.border-grey-light.border-bottom,
.border-bottom
{
border-bottom: 1px solid $background-light !important;
}
/* "See more matching repositories" */
.mb-n3 a.btn
{
background-color: $sel-background !important;
border: 1px solid $background-light !important;
border-radius: 6px !important;
}
.mb-n3 a.btn:hover
{
border-color: $grey !important;
}
.border .bg-white
{
background-color: $main-background-color !important;
}
/* background behind "See more matching repositories" */
.overflow-hidden div.mb-n3
{
background: none !important;
}
.comment-body div.text-center.bottom-0
{
background: none !important;
}
/* }}} */
button.btn-sm
{
border: 1px solid $background-light !important;
border-radius: 6px !important;
}
button.btn-sm:hover
{
border-color: $grey !important;
}
button.btn-with-count
{
border: none !important;
}
div.bg-blue-light
{
background-color: $sel-background !important;
}
.border-top
{
border-color: $background-light !important;
}
.rounded-1
{
border-color: $background-light !important;
}
a.topic-tag
{
background-color: $sel-background !important;
}
.discussion-item-icon
{
background-color: $sel-background !important;
}
/* different labels {{{ */
a.IssueLabel[title='Good for newcomers'],
a.IssueLabel[title='good first issue']
{
color: $light !important;
background-color: $stress1 !important;
}
a.IssueLabel[title='area:ci']
{
color: $light !important;
background-color: $stress2 !important;
}
a.IssueLabel[title='Contributions encouraged']
{
color: $light !important;
background-color: $stress1 !important;
}
a.IssueLabel[title='enhancement']
{
color: $light !important;
// background-color: var(--stress3) !important;
background-color: $stress3 !important;
}
a.IssueLabel[title='help text/docs, README, online manuals']
{
background-color: $stress3 !important;
color: $light !important;
}
a.IssueLabel[title='priority: 1 - middle']
{
background-color: $stress2 !important;
color: $light !important;
}
/* }}} */
.bg-gray-light
{
background-color: $main-background-color !important;
}
// articles {{{
// like presection to article
.markdown-body .lead-mktg p
{
color: $light !important;
}
// top search
header #search-results-container
{
background: $main-background-color !important;
border: 1px solid $background-light !important;
}
// inner search
.ais-SearchBox-input
{
background: $main-background-color !important;
}
// border to input
.form-control.focus, .focus.ais-SearchBox-input, .form-control:focus,
.ais-SearchBox-input:focus, .form-select.focus, .form-select:focus
{
border-color: $stress2 !important;
box-shadow: none !important;
}
// button-selecter
.btn-mktg
{
background: $main-background-color !important;
color: $stress2 !important;
border-color: $stress2 !important;
box-shadow: none !important;
&:hover
{
background: $sel-background !important;
}
svg.arrow.ml-1
{
stroke: $stress2 !important;
}
}
// table {{{
// header
.markdown-body table th
{
background: $main-background-color !important;
border-color: $background-light !important;
box-shadow: 0 3px 0 0 $background-light !important;
}
// table content
.markdown-body table tr
{
background: $main-background-color !important;
border-color: $background-light !important;
}
// code
.markdown-body table code
{
background: $background-dark !important;
}
// }}}
// arrow to expand in top of the page
svg.arrow.ml-md-1
{
stroke: $light !important;
}
// print icon hover
.link-gray:hover
{
color: $link-color !important;
}
// header styling {{{
.markdown-body h2
{
border-color: $background-light !important;
}
// }}}
main section
{
background: $main-background-color !important;
}
// code {{{
.markdown-body .highlight pre,
.markdown-body pre
{
background-color: $background-dark !important;
}
// string highlithing
.pl-pds,
.pl-s,
.pl-s .pl-pse .pl-s1,
.pl-sr,
.pl-sr .pl-cce,
.pl-sr .pl-sra,
.pl-sr .pl-sre
{
color: $stress2 !important;
}
// simple token
.pl-s .pl-s1,
.pl-smi
{
color: $light !important;
}
// }}}