forked from refined-github/refined-github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
539 lines (460 loc) · 12.1 KB
/
content.css
File metadata and controls
539 lines (460 loc) · 12.1 KB
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
.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;
}
/* 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 border between dashboard news items */
.news .alert {
border: 0 !important;
}
/* remove newsfeed tips */
.news form + .text-center {
display: none !important;
}
/* remove tooltips */
.tooltipped:not(.reaction-summary-item,.avatar-group-item,.avatar):before,
.tooltipped:not(.reaction-summary-item,.avatar-group-item,.avatar):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;
border-radius: 3px !important;
}
.paginate-protip {
display: none !important;
}
.site-footer {
visibility: hidden;
}
/* remove useless message on the right side of the PR merge box */
.alt-merge-options {
display: none !important;
}
/* remove top buttons on comment box */
.timeline-comment-wrapper .tabnav-extra, .inline-comment-form-container .tabnav-extra {
display: none !important;
}
/* remove commentbox toolbar */
.toolbar-group {
display: none;
margin-left: 0 !important;
}
.toolbar-group:last-child {
display: inline-block;
}
.toolbar-group .toolbar-item {
display: none;
}
.toolbar-group .js-saved-reply-container {
display: block;
}
.toolbar-commenting {
margin-top: 4px;
}
/* remove upload message on comment box */
.write-content .drag-and-drop {
display: none !important;
}
.upload-enabled textarea {
border-bottom: 1px solid #ccc !important;
border-radius: 3px !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 */
.account-switcher {
position: absolute !important;
right: 10px !important;
margin-top: 0 !important;
}
.account-switcher button {
width: 313px !important;
z-index: 0 !important;
}
.account-switcher .select-menu-button-gravatar {
float: none !important;
display: inline-block !important;
vertical-align: top !important;
}
.dashboard-sidebar {
padding-top: 50px;
}
/* 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 */
.commit-ref:hover,
.commit-ref:hover span {
text-decoration: underline !important;
}
.commit-ref.unlinked:hover,
.commit-ref.unlinked:hover span {
text-decoration: none !important;
}
/* remove the "new feature" notification box */
.js-notice {
display: none !important;
}
/* remove useless tip in the organization news feed */
#dashboard .alert.git_hub {
display: none !important;
}
/* remove Upload files button; drag and drop is available anyway */
.file-navigation a[href*="/upload/"] {
display: none !important;
}
/* style for edit README button */
#readme.blob #refined-github-readme-edit-link {
display: none;
}
#refined-github-readme-edit-link {
position: absolute;
top: 10px;
right: 10px;
opacity: 0.2;
transition: opacity 250ms;
}
#refined-github-readme-edit-link:hover {
opacity: 1;
}
/* indicate collapsible file headers with zoom cursor */
.js-details-container:not(.discussion-item) .file-header[data-path],
.file-header[data-path] .diffstat {
cursor: zoom-out !important;
}
.refined-github-minimized:not(.discussion-item) .file-header[data-path],
.refined-github-minimized .file-header[data-path] .diffstat {
cursor: zoom-in !important;
}
/* style for collapse/expand feature; images are rendered in .render-wrapper, not in .data */
.refined-github-minimized .data,
.refined-github-minimized .render-wrapper {
display: none !important;
}
/* style for delete fork link */
.post-merge-message {
min-height: 85px;
}
#refined-github-delete-fork-link {
position: absolute;
top: 45px;
right: 30px;
padding: 10px 10px 0;
}
#refined-github-delete-fork-link a {
color: #df3e3e;
}
/* hide news items when people:
pushed to a branch
deleted a branch
added someone as a collaborator
forked a repo
*/
.news .alert.push,
.news .alert.delete.simple,
.news .member_add,
.news .alert.fork.simple {
display: none !important;
}
/* ensure the news feed is still shown once the items above have been hidden */
.news {
min-height: 1px;
}
/*
remove padding from body of simple news alerts in Dashboard since some will be hidden
we will add it back on for the simple news alerts we decide to show
*/
.news .alert.create.simple,
.news .alert.create.simple .body {
padding-top: 0;
padding-bottom: 0;
}
/* add padding back to the contents of simple news alerts in Dashboard */
.news .alert.create.simple .body .title,
.news .alert.create.simple .body .time {
padding-top: 1em;
padding-bottom: 1em;
}
/* don't show contents of simple news alert in Dashboard when you create a branch */
.news .alert.create.simple .octicon-git-branch,
.news .alert.create.simple .octicon-git-branch + .title,
.news .alert.create.simple .octicon-git-branch + .title + .time {
display: none;
}
/* increase visibility of news item when someone stars a repo */
.watch_started.simple .body {
min-height: 55px;
}
svg.octicon.octicon-star.dashboard-event-icon {
height: 32px !important;
width: 28px !important;
}
.watch_started .time {
position: absolute;
top: 10px;
left: 45px;
}
.watch_started.simple.alert .simple .title {
position: absolute;
top: 26px;
font-size: 14px !important;
font-weight: bold;
color: inherit !important;
}
/* 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;
font-size: 10px !important;
margin-left: 5px !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 {
font-size: 12px !important;
margin-top: 4px !important;
}
.refined-github-merge-commit .commit-author-section {
font-size: 11.4px !important;
}
.refined-github-merge-commit .commit-avatar-cell svg {
color: #4078c0;
margin-left: 9px;
}
.refined-github-merge-commit .avatar-parent-child img.avatar-child {
width: 16px !important;
height: 16px !important;
}
/* Hide current filename in PR header when not sticky (top of page) */
.js-sticky-offset-scroll:not(.is-stuck) .diff-toolbar-filename {
display: none;
}
.js-sticky-offset-scroll.is-stuck .subset-files-tab,
.js-sticky-offset-scroll.is-stuck .stale-files-tab {
width: 120%;
text-align: center;
margin-top: 5px;
margin-left: -11%;
}
.diff-toolbar-filename {
font-weight: bold;
}
.diff-toolbar-filename.filename-width-check {
visibility: hidden;
position: absolute;
}
/* 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 */
.tab-size[data-tab-size='2'],
.tab-size[data-tab-size='4'],
.tab-size[data-tab-size='8'],
.inline-review-comment,
.gist table.lines {
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-left: 10px !important;
padding-right: 10px !important;
}
.reaction-summary-item.add-reaction-btn {
padding-right: 0 !important;
}
.reaction-summary-item div,
.reaction-summary-item div img {
display: inline-block;
}
.reaction-summary-item div img,
.reaction-summary-item div span {
width: 20px;
height: 20px;
margin-left: 3px;
vertical-align: middle;
}
.reaction-summary-item div img {
border-radius: 3px;
}
/* hide reaction popover text */
.reaction-popover-form.js-pick-reaction span.js-reaction-description,
.reaction-popover-form.js-pick-reaction .dropdown-divider {
display: none;
}
/* remove "Add your Reaction" tooltips */
.reaction-popover-container .tooltipped::before,
.reaction-popover-container .tooltipped::after {
display: none !important;
}
/*
create invisible content area below/above reactions popover to increase hover target
center popup on add reactions button
*/
.reaction-popover-container.dropdown .dropdown-menu-content {
margin-top: -15px;
position: absolute;
left: -94px;
width: 220px;
height: 15px;
}
/*
remove margin-top from invisible hover target for popover below comment content
add some space below popup so it doesn't cover button
*/
.comment-reactions .reaction-popover-container.dropdown .dropdown-menu-content {
margin-top: 0;
bottom: 20px;
}
/*
show reaction list when hovering over:
popover
Add Reactions button
hidden content area created to increase hover target
*/
.dropdown-menu.add-reaction-popover:hover,
.reaction-popover-container.dropdown:hover .dropdown-menu-content,
.dropdown-menu-content:hover {
display: block;
pointer-events: all;
}
/* remove top/bottom margin from popovers so there's no gap with invisible hover element */
.reaction-popover-container.dropdown .dropdown-menu.add-reaction-popover {
margin-top: 0;
margin-bottom: 0;
}
/* never show loading spinner for reactions */
.reaction-popover-container .reaction-popover-form .loading-spinner {
display: none !important;
}
/* move popup arrow point to center of popup */
.reaction-popover-container.dropdown .dropdown-menu-sw.dropdown-menu::before,
.reaction-popover-container.dropdown .dropdown-menu-sw.dropdown-menu::after,
.reaction-popover-container.dropdown .dropdown-menu-ne.dropdown-menu::before,
.reaction-popover-container.dropdown .dropdown-menu-ne.dropdown-menu::after {
left: 102px; /* 220px / 2 - 8px for popover arrow */
right: auto;
}
/* add colored button when hovering over reaction popover or hidden hover element */
.reaction-popover-container:hover .timeline-comment-action {
color: #4078c0;
text-decoration: none;
opacity: 1;
}
/* collapse multiple discussion items */
.discussion-item + .discussion-item {
padding-top: 0 !important;
border-top: none !important;
}
.comment-full-name {
font-weight: normal;
margin-left: 4px;
}
/* mark as unread */
.btn-mark-unread {
margin-top: 8px;
}
/* +/- pseudo elements on diffs */
td.blob-code.blob-code-addition:before,
td.blob-code.blob-code-deletion:before {
display: inline-block;
position: absolute;
top: 1px;
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
font-size: 11px;
text-indent: -8px;
color: rgba(0, 0, 0, 0.3);
}
td.blob-code.blob-code-addition:before {
content: '+';
}
td.blob-code.blob-code-deletion:before {
content: '-';
}
/* remove "pro tip!" box on profile page (appears when name isn't set) */
.new-user-avatar-cta {
display: none !important;
}
/* fix for diffheader filename */
.diffbar > .diffstat {
float: right;
}
/* copy button for gists margin */
.gist-copy-btn {
margin: 0 10px 0 0;
}