forked from refined-github/refined-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.css
1031 lines (903 loc) · 23.7 KB
/
content.css
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
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
:root {
--github-green: #28a745;
--github-red: #cb2431;
--github-gray-background: #fafbfc;
--github-gray-text: #6a737d;
}
/* GitHub bug: releases page has unwanted bullet points */
.release-timeline-tags {
list-style: none;
}
.subscribe-feed {
display: none !important;
}
/* Allow for absolute positioning relative to the dashboard */
#dashboard,
.orgpage > .container {
position: relative !important;
}
#dashboard .new-repo {
display: none !important;
}
/* Remove "Repositories you contribute to" dashboard sidebar box */
.dashboard-sidebar > .boxed-group[role='navigation']:not(.repos) {
display: none !important;
}
/* Match context switcher's width to the width of the containers below it */
.dashboard-sidebar .select-menu {
width: 100%;
}
/* Match context switcher modal's width to that of the user repo list */
.dashboard-sidebar .select-menu-modal {
width: 313px;
margin: 0;
}
/* Remove the toolbar from the right repo box on the dashboard */
.dashboard-sidebar .user-repos > h3,
.dashboard-sidebar .user-repos > .boxed-group-action {
display: none !important;
}
.dashboard-sidebar .user-repos .boxed-group-inner {
border-radius: 3px !important;
}
.dashboard-sidebar .user-repos .filter-repos {
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
}
.dashboard-sidebar .user-repos .repo-icon {
opacity: 0.6 !important;
}
/* Remove news feed tips */
.news > .text-gray:last-child {
display: none !important;
}
/* Remove tooltips where unnecessary */
[aria-label^='View the whole file']::before,
[aria-label^='View the whole file']::after,
[aria-label^='Change this file']::before,
[aria-label^='Change this file']::after,
[aria-label='Delete this file']::before,
[aria-label='Delete this file']::after,
[aria-label='Edit this file']::before,
[aria-label='Edit this file']::after,
[aria-label='Edit comment']::before,
[aria-label='Edit comment']::after,
.notification-indicator::before,
.notification-indicator::after {
display: none !important;
}
/* Fade out the file icons */
.file-wrap .files .octicon {
opacity: 0.6;
}
/* Remove annoying hover in the repo file list */
.file-wrap .files .navigation-focus td {
background: none !important;
}
#readme > h3 {
display: none !important;
}
#readme .markdown-body {
border-radius: 3px !important;
}
.paginate-protip {
display: none !important;
}
/* Hide extra copy on PR mergeability summary */
.mergeability-details .js-details-container .h4,
.mergeability-details .js-details-container .status-meta .btn-link,
.mergeability-details > :not(.js-details-container) .status-meta {
display: none;
}
.mergeability-details .js-details-container .status-meta {
color: inherit;
font-size: 16px;
font-weight: 600;
}
.mergeability-details .js-details-container .text-red + .status-meta {
color: var(--github-red);
}
.mergeability-details .branch-action-item-icon {
margin-top: -4px;
}
.mergeability-details .branch-action-item .btn {
margin-top: -6px;
}
.alt-merge-options {
display: none !important;
}
/* Visibly disable merge fields during submission */
[name='commit_message'][disabled],
[name='commit_title'][disabled] {
color: #808080;
}
/* Remove top buttons on comment box */
.timeline-comment-wrapper .tabnav-extra,
.inline-comment-form-container .tabnav-extra {
display: none !important;
}
/* Hide unnecessary comment toolbar items */
.toolbar-group:first-child,
.toolbar-item[data-prefix='@'],
.toolbar-item[data-prefix='#'],
.toolbar-item[data-prefix='`'] {
display: none;
}
/* Remove upload message on comment box */
.is-default .drag-and-drop {
display: none;
}
.upload-enabled textarea {
border-bottom: 1px solid #ccc !important;
border-radius: 3px !important;
}
.upload-enabled textarea:focus {
border-bottom: 1px solid #2188ff !important;
}
/* Remove random protip at the bottom of the page */
.protip {
display: none !important;
}
/* Remove message under the `Unsubscribe` button */
.sidebar-notifications .reason {
display: none !important;
}
/* Move the dashboard organization switcher to the right column */
.news.column.two-thirds .account-switcher {
/* Hide switcher from the main column, but if JS fails show it */
animation: temporarily-hide 5s steps(1, end);
}
@keyframes temporarily-hide {
from {
position: absolute;
top: -1000px;
}
}
.account-switcher .select-menu-button {
width: 100%;
margin-bottom: 15px;
text-align: center;
}
.account-switcher .select-menu-button-gravatar {
display: inline-block !important;
vertical-align: top !important;
float: none !important;
}
/* Organization dashboard */
.orgpage .underline-nav {
float: left !important;
}
.orgpage .account-switcher {
right: 0 !important;
}
.orgpage .user-repos {
position: static !important;
}
.orgpage + .container .dashboard-sidebar {
padding-top: 0;
}
/* Remove "New pull request" button on repo page */
.file-navigation .new-pull-request-btn {
display: none !important;
}
/* Add hover underline for `content.js` linkified branch refs in pull requests */
a .commit-ref:hover,
a .commit-ref:hover span {
text-decoration: underline !important;
}
/* The extra span on branch names interferes with a possible deletion line-through */
.commit-ref span {
text-decoration: inherit;
}
/* Remove useless tip in the organization news feed */
#dashboard .alert.git_hub {
display: none !important;
}
/* Style for edit README button */
#readme.blob #refined-github-readme-buttons {
display: none;
}
#refined-github-readme-buttons {
position: absolute;
top: 10px;
right: 10px;
}
#refined-github-readme-buttons a {
opacity: 0.2;
text-decoration: none;
transition: opacity 250ms;
}
#refined-github-readme-buttons a:hover {
opacity: 1;
}
#refined-github-readme-buttons a:not(:first-child) {
margin-left: 5px;
}
/* Style for delete fork link */
.post-merge-message {
min-height: 85px;
}
#refined-github-delete-fork-link {
padding: 10px 10px 0;
position: absolute;
top: 45px;
right: 30px;
color: #df3e3e;
}
/* Hide news items when people:
pushed to a branch
deleted a branch
added someone as a collaborator
forked a repo
followed someone
*/
.rgh-no-useless-events .push,
.rgh-no-useless-events .fork,
.rgh-no-useless-events .delete,
.rgh-no-useless-events .follow {
display: none !important;
}
.news .body > .border-gray-light {
border: none !important; /* Remove border between dashboard news items */
}
/* Decrease font-size on commit details so our custom patch and diff links fit */
.commit .sha-block {
margin-left: 7px !important;
}
.commit .sha-block,
.commit .sha {
font-size: 10px !important;
}
.signed-commit-badge-medium {
padding: 2px 4px !important;
margin-left: 5px !important;
font-size: 10px !important;
}
/* Remove `Developer Program Member` from profile page */
.page-profile .member-badge {
display: none !important;
}
/* Fade out merge commits from commit list */
.refined-github-merge-commit .commit-title,
.refined-github-merge-commit .commit-meta > div:not(.commit-indicator),
.refined-github-merge-commit .commit-build-statuses > summary {
opacity: 0.7;
}
.refined-github-merge-commit .octicon-git-pull-request {
color: #4078c0;
width: 20px;
}
/* Move new button to the right on single commit page */
#toc .refined-github-toggle-whitespace {
float: right;
}
/* Limit width of commit title and description inputs to 50/80 chars */
#commit-summary-input,
#commit-description-textarea {
font-family: monospace !important;
}
#commit-summary-input {
width: 410px !important;
}
#commit-description-textarea {
width: 645px !important;
}
/* Make tab indented code more readable on GitHub and Gist */
* {
-moz-tab-size: 4 !important;
tab-size: 4 !important;
}
/* Larger comment box */
.comment-form-textarea {
min-height: 200px !important;
}
/* Styles for avatars Refined GitHub adds to Reactions */
.reaction-summary-item {
padding-right: 0.7em !important;
padding-left: 0.7em !important;
}
.reaction-summary-item.user-has-reacted {
--background: #f2f8fa;
}
.reaction-summary-item a {
display: inline-block;
width: 2em;
height: 2em;
border-radius: 3px;
margin-top: -0.3em;
margin-left: -0.2em;
vertical-align: middle;
background: #efefef; /* Placeholder before the images load */
box-shadow: 0 0 0 2px var(--background, #fff);
font-size: 10px; /* Base sizer */
transition: margin-left 0.2s;
}
.reaction-summary-item a:first-of-type {
margin-left: 0.5em;
}
.review-comment .reaction-summary-item a {
font-size: 9px;
}
.discussion-post .reaction-summary-item a {
margin-top: -1px;
}
/* This image will start at height:0 and will expand once loaded, covering the gray placeholder */
.reaction-summary-item img {
max-width: 100%;
border-radius: inherit;
background-color: var(--background);
}
/* Overlap reaction avatars when there are 5+ types of reactions */
.rgh-reactions-near-limit .reaction-summary-item:not(:hover) a:not(:first-of-type) {
margin-left: -12px;
}
/* Hide reaction popover text */
.reaction-popover-form.js-pick-reaction span.js-reaction-description,
.reaction-popover-form.js-pick-reaction .dropdown-divider {
display: none;
}
/* Increase reaction popover hitbox area to avoid involuntary closes */
.reaction-popover-form::before {
content: '';
position: absolute;
top: -20px;
right: -10px;
bottom: -20px;
left: -10px;
z-index: -1;
}
/* Center reactions popup and its triangle */
.add-reaction-popover,
.add-reaction-popover::before,
.add-reaction-popover::after {
right: auto !important;
left: 50% !important;
transform: translate(-50%) !important;
}
.add-reaction-popover {
animation-name: rgh-scale-in-centered !important;
}
@keyframes rgh-scale-in-centered {
0% {
transform: translate(-50%) scale(0.5);
opacity: 0;
}
100% {
transform: translate(-50%);
}
}
/*
Undo reactions popup centering in split file view on the right.
The popup is clipped on the right otherwise.
The selector considers
- Unified view (skipped)
- Split view with comment on the left only (skipped)
- Split view with comment on the right only
- Split view with comments on the left and right
*/
td.js-line-comments:last-child .timeline-comment-actions .add-reaction-popover {
left: -15px !important;
}
td.js-line-comments:last-child .timeline-comment-actions .add-reaction-popover::before,
td.js-line-comments:last-child .timeline-comment-actions .add-reaction-popover::after {
left: 140px !important;
}
/* Never show loading spinner for reactions */
.js-reaction-popover-container .reaction-popover-form .loading-spinner {
display: none !important;
}
/* Keep colored button when reaction popup is open */
.dropdown-details[open] .timeline-comment-action {
opacity: 1;
color: #4078c0;
}
/* Collapse multiple discussion items */
.discussion-item + .discussion-item {
padding-top: 0 !important;
border-top: none !important;
}
/* Mark as unread */
.rgh-btn-mark-unread {
width: 100%;
margin-top: 8px;
}
.rgh-unread .mute {
padding-right: 7px;
padding-left: 3px;
}
/* Change color of marker if there are only discussion marked as unread */
.notification-indicator[data-ga-click$=':read'] .unread {
background: linear-gradient(#34d058, #28a745);
}
/* +/- Pseudo elements on diffs */
.refined-github-diff-signs .blob-code-addition::before,
.refined-github-diff-signs .blob-code-deletion::before {
margin-top: 1px;
margin-left: 4px;
position: absolute;
color: rgba(0, 0, 0, 0.3);
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
font-size: 11px;
text-indent: -8px;
}
.refined-github-diff-signs .blob-code-addition::before {
content: '+';
}
.refined-github-diff-signs .blob-code-deletion::before {
content: '-';
}
/* Prevent copy of ghost whitespace where supported (#317) */
.refined-github-diff-signs .add-line-comment {
-moz-user-select: none;
user-select: none;
}
/* Restore removed space with unselectable one */
.refined-github-diff-signs .blob-code-inner::before {
content: ' ' !important;
user-select: none;
}
/* Remove "pro tip!" box on profile page (appears when name isn't set) */
.new-user-avatar-cta {
display: none !important;
}
/* Fix PR diffbar links position #474 */
.stale-files-tab,
.subset-files-tab {
font-size: 0 !important;
}
.subset-files-tab .stale-files-tab-link,
.stale-files-tab .stale-files-tab-link {
font-size: 14px;
}
.stale-files-tab-link::before {
content: 'Subset of changes. ';
font-weight: normal;
}
/* Multiple comment labels margin */
.timeline-comment .timeline-comment-label + .timeline-comment-label {
margin-right: -5px;
}
.review-comment .timeline-comment-label + .timeline-comment-label {
margin-left: 5px;
}
/* Highlight linked comment */
:root .timeline-comment:target {
border-color: #e5d999;
}
:root .timeline-comment:target.current-user::before {
border-right-color: #e5d999;
}
:root .timeline-comment:target.current-user::after {
border-right-color: #fffded;
}
:root .timeline-comment:target .timeline-comment-header {
background-color: #fffdef;
border-bottom-color: #e5d999;
}
:root .timeline-comment:target .timeline-comment-label {
border-color: #e5d999;
}
:root .timeline-comment:target .reaction-summary-item {
border-right-color: #e5d999;
}
:root .timeline-comment:target .comment-reactions.has-reactions {
border-top-color: #e5d999;
}
:root .timeline-comment:target .previewable-comment-form .comment-form-head.tabnav {
color: #e5d999;
background-color: #fffdef;
border-bottom-color: #e5d999;
}
/* Highlighted linked review comment */
:root .review-comment:target {
background-color: #fffdef;
}
:root .review-comment:target .timeline-comment-label {
border-color: #e5d999;
}
:root .review-comment:target button.reaction-summary-item {
border-color: #e5d999;
background-color: #f9f3cb;
color: #7c6d0b;
}
:root .review-comment:target .add-reaction-btn {
color: #e09810;
}
:root .review-comment:target .reaction-summary-item {
--background: transparent;
}
/* Prevent text reversal Unicode hacks in full names */
.timeline-comment-header-text bdo {
display: inline-block;
}
/* Move "close issue" and "cancel" buttons on authoring comments to the left */
/* ...in issue comment form */
.form-actions .btn.js-comment-and-button {
float: left;
}
/* ...in comment edit form */
div.previewable-edit .previewable-comment-form .form-actions {
margin-left: 10px;
float: none;
}
.previewable-edit .previewable-comment-form .form-actions .btn.js-comment-cancel-button {
float: left;
}
/* ...in inline comment form */
div.inline-comment-form .form-actions,
.inline-comment-form .form-actions .js-hide-inline-comment-form {
float: none;
}
/* ...in the merge confirmation form */
.commit-form-actions .select-menu {
display: block !important;
}
.commit-form-actions button:not(.js-merge-commit-button) {
float: right;
}
/* Decrease the padding of filter buttons to accommodate `Commented` */
.subnav-links .subnav-item {
padding: 6px 9px;
}
/* Decrease the size of the search box to fit 'Yours' menu item */
.subnav-search-input[aria-label='Search all issues'] {
width: 420px;
}
.CodeMirror-lines pre.CodeMirror-line {
font-variant-ligatures: normal;
}
/* Remove Marketplace marketing box on PRs */
.js-marketplace-callout-container {
display: none !important;
}
/* Remove the "Styling with Markdown is supported" link when a PR comment is in edit mode */
a.tabnav-extra[href$='mastering-markdown/'] {
display: none !important;
}
/* Hide empty description of repo */
.repository-meta.mb-3 > .repository-meta-content > em {
display: none !important;
}
/* Hide marketplace navbar button */
.HeaderNavlink[href='/marketplace'] {
display: none !important;
}
/* Move labels in the Issue/PR list below the title */
.js-issue-row .lh-condensed {
display: flex;
flex-wrap: wrap;
}
.js-issue-row .labels {
order: 1;
}
.js-issue-row .h4, /* Title */
.js-issue-row .d-inline-block.mr-1 { /* Build status */
padding-right: 4px; /* Space before the build status */
}
.js-issue-row .mt-1.text-small.text-gray { /* Issue details line */
flex-basis: 100%;
}
.js-issue-row .label {
padding: 2px 3px 3px !important;
margin-top: 4px;
font-size: 11px !important;
}
/* Show approvals count in PR list */
.js-issue-row .text-gray [aria-label*='approval'] {
font-size: 0;
}
.js-issue-row .text-gray [aria-label*='approval']::before {
all: unset;
content: attr(aria-label);
display: inline !important;
color: var(--github-green);
font-size: 12px;
}
.js-issue-row .text-gray [aria-label*='changes'] {
color: var(--github-red) !important;
}
/* For `open-all-selected`: space out button */
:root .rgh-open-all-selected {
padding-right: 15px;
padding-left: 15px;
}
/* Fix for GHE More Dropdown positioning */
.reponav-dropdown.active .dropdown-menu {
left: auto !important;
}
/* Optically align Dependencies dropdown link */
.rgh-dependency-graph .octicon-package {
margin-right: 2px;
margin-left: -2px;
}
/* Hide PR/Issue rename events */
.discussion-item-renamed {
display: none;
}
/* Hide inactive deployment events */
.discussion-item.rgh-inactive-deployment {
display: none;
}
/* Colorize `extend-issue-status-label` */
.gh-header-meta .State {
text-decoration: none;
}
.gh-header-meta .State a,
.gh-header-meta .State code {
color: #fff;
}
/* Space out `rgh-closing-pr`; matches native `.gh-header-meta .State` spacing */
.rgh-closing-pr {
margin-right: 8px;
}
/* Make issue suggestions as wide as possible, within the current viewport */
.rgh-issue-suggestions {
min-width: 100%;
width: calc(50vw - 510px + 100%);
max-width: max-content;
}
.rgh-issue-suggestions .Box {
transition: opacity 0.2s;
}
/* For `add-ci-link` */
.rgh-ci-link {
position: relative;
top: -0.1em;
animation: fade-in 0.2s;
}
:root .repohead h1 .commit-build-statuses .octicon {
position: static;
color: inherit;
}
/* Undo conflicting GitHub style caused by `add-branch-buttons` */
:root .branch-select-menu .BtnGroup {
margin-bottom: 0;
margin-left: 0;
}
/* Sticky file headers on pull request diff view */
.pull-request-tab-content .diff-view .file-header {
position: sticky;
top: 60px;
z-index: 10;
}
/* Sticky file headers in regular file view */
.file .file-header {
position: sticky;
top: 0;
z-index: 10;
}
/* Momentarily offset the line so its #deeplink won’t be covered by the header #974 */
.js-file-line.highlighted {
/* stylelint-disable time-min-milliseconds */
animation: sticky-file-header-target-fixer 0s 0.1ms backwards;
}
@keyframes sticky-file-header-target-fixer {
from {
transform: translateY(-78px); /* Matches GH’s regular line clicking position */
opacity: 0;
}
}
.file .markdown-body .anchor {
padding-top: 45px;
transform: translateY(-45px);
}
/* Remove annoying "helpful" banner on the issue tracker listing */
.issues-listing .mb-4.js-notice {
display: none !important;
}
/* Remove annoying "helpful" popover on the repo label page */
.labels-list .TutorialPopover {
display: none !important;
}
/* For the `add-time-machine-links-to-comments` feature */
:root .rgh-timestamp-button {
padding: 0;
}
:root .rgh-timestamp-button .octicon {
vertical-align: middle;
}
@keyframes fade-in {
from {
opacity: 0;
}
}
/* Fix subpixel rendering Chrome bug in tooltips' triangles */
.tooltipped:hover::before,
.tooltipped:hover::after,
.tooltipped:active::before,
.tooltipped:active::after,
.tooltipped:focus::before,
.tooltipped:focus::after {
opacity: 1;
animation-fill-mode: backwards !important;
}
/* Remove "Seeing something unexpected?" from user profiles */
#js-contribution-activity .js-show-more-timeline-form > p {
display: none;
}
/* Move "recently pushed branches" out of the way */
.container.new-discussion-timeline.experiment-repo-nav .repository-content {
position: relative;
}
[data-url$='recently_touched_branches_list'] {
min-width: 430px; /* Always cover the repo watch/star/forks actions */
max-height: 42px; /* Only cover the actions when there are multiple branches + :hover */
position: absolute;
top: -117px;
right: 0;
z-index: 32; /* Set z-index higher than ul.pagehead-actions */
background: var(--github-gray-background);
white-space: nowrap;
animation: rgh-slide-in-right 0.3s ease-out;
}
[data-url$='recently_touched_branches_list'] .my-3 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
[data-url$='recently_touched_branches_list'] p {
display: none;
}
.RecentBranches {
display: flex;
width: max-content;
margin-top: 10px; /* Add extra padding to make it look right on forked repos */
margin-left: auto;
flex-direction: column-reverse;
}
.RecentBranches .btn {
width: 32px;
text-indent: -999999px; /* Hide text */
}
.RecentBranches .btn + div {
margin-right: 8px;
float: right;
font-size: 11px;
}
.RecentBranches .btn .octicon {
margin-top: 2px;
float: right;
}
:root .RecentBranches-item + .RecentBranches-item {
border-top: none;
border-bottom: 1px solid rgba(27, 31, 35, 0.05); /* Copied from GitHub */
}
.RecentBranches:not(:hover) .RecentBranches-item:not(:last-child) {
/* Hide older branches */
display: none;
}
.RecentBranches:not(:hover) .RecentBranches-item:last-child {
border-bottom-width: 3px;
}
.RecentBranches-item-link {
max-width: 250px !important;
font-size: 14px;
}
.RecentBranches-item.p-2 {
padding: 2px 5px !important;
}
@keyframes rgh-slide-in-right {
from {
transform: translateX(-30px);
opacity: 0;
}
}
/* Clean up the global footer */
body > .footer {
opacity: 0.3;
}
body > .footer > div > ul:first-of-type li:first-of-type { /* The `© 2017 GitHub, Inc.` text */
display: none;
}
.footer-octicon {
display: none;
}
body > .footer li a {
color: #666;
}
/* Widen review popup to fit 4 buttons */
:root .pull-request-review-menu {
width: 430px;
}
/* Reduce dashboard activity cards */
/* `.flex-items-baseline` excludes label events */
.dashboard .flex-items-baseline {
align-items: flex-start !important;
}
/* Align between event and repo description */
.dashboard .py3 .avatar {
margin-top: 7px;
}
/* Hide duplicate repo name */
.dashboard .flex-items-baseline .f3,
.dashboard .flex-items-baseline .f4,
.dashboard .flex-items-baseline .text-bold.text-gray-dark {
display: none;
}
.dashboard .flex-items-baseline .f6.mt-2 {
opacity: 0.5;
}
.dashboard .flex-items-baseline .border {
padding: 0 !important;
border: none !important;
margin: 0 !important;
color: var(--github-gray-text) !important;
}
/* Make activities narrower */
.dashboard .d-flex.border-bottom.border-gray-light {
padding: 8px 0 !important;
}
/* For 'extend-diff-expander' feature */
.js-expandable-line:hover .diff-expander,
.js-expandable-line:hover .blob-code {
border-color: #0366d6;
color: #fff;
background: #0366d6;
cursor: pointer;
}
/* Lighten deletions in Markdown */
.markdown-body del {
color: #6a737d;
}
/* Expand PR merge status list to fit all items instead of just 5 */
:root .branch-action-item.open > .merge-status-list {
max-height: none;
}
/* Make <details> visibly clickable */
.markdown-body summary, /* Summary elements are always clickable when present */
.markdown-body details:not([open]) { /* Summary-less details have unselectable clickable elements */
cursor: pointer;
}
/* For 'add-toggle-files-button' feature */
.rgh-toggle-files {
margin-right: -6px;
margin-top: -3px;
}
.rgh-files-hidden .commit-tease {
border-radius: 3px;
}
.repository-content:not(.rgh-files-hidden) .commit-tease .octicon-chevron-down {
transform: rotate(0.5turn);
}
.rgh-files-hidden .files {
display: none;
}
.rgh-files-hidden .file-wrap {
border: none;
}
.notifications-list .boxed-group-action {
margin: 5px 6px;
}
.notifications-list .boxed-group-action button {
padding: 3px 10px;
border: none;
margin-left: 2px;
color: #586069;
background: none;
}
.mark-all-as-read-confirmed .open-repo-notifications {