-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgithub-compact-feed.user.css
153 lines (153 loc) · 4.69 KB
/
github-compact-feed.user.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
/* ==UserStyle==
@name GitHub Compact Feed
@version 1.2.3
@description Compact and hide details in the news feed
@namespace StylishThemes
@author StylishThemes
@homepageURL https://github.com/StylishThemes/GitHub-Compact-Feed
@supportURL https://github.com/StylishThemes/GitHub-Compact-Feed/issues
@updateURL https://raw.githubusercontent.com/StylishThemes/GitHub-Compact-Feed/master/github-compact-feed.user.css
@license CC-BY-SA-4.0
@advanced checkbox hide_comments "Hide All Comments" 0
@advanced checkbox hide_branches "Hide Branch Edits" 0
@advanced checkbox hide_closed "Hide Closing" 0
@advanced checkbox hide_follows "Hide Follows" 0
@advanced checkbox hide_forks "Hide Forks" 0
@advanced checkbox hide_new "Hide New Repos" 0
@advanced checkbox hide_open "Hide Open/Reopen" 0
@advanced checkbox hide_stars "Hide Stars" 0
@advanced checkbox hide_tags "Hide Tags" 0
@advanced checkbox hide_pushes "Hide Pushes" 0
@advanced checkbox hide_wiki "Hide Wiki Events" 0
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("^https?:\\/\\/github\\.com(\\/)?$"), regexp("^https?:\\/\\/github\\.com\\/(orgs\\/.*\\/)?dashboard(\\/)?$") {
if hide_comments {
.news .issues_comment, .news .commit_comment {
display: none !important;
}
}
if hide_branches {
.news .git-branch {
display: none !important;
}
}
if hide_closed {
.news .issues_closed {
display: none !important;
}
}
if hide_follows {
.news .follow {
display: none !important;
}
}
if hide_forks {
.news .fork {
display: none !important;
}
}
if hide_stars {
.news .watch_started {
display: none !important;
}
}
if hide_new {
.news .repo, .news .create, .news .public {
display: none !important;
}
}
if hide_open {
.news .issues_opened, .news .issues_reopened {
display: none !important;
}
}
if hide_pushes {
.news .push {
display: none !important;
}
}
if hide_tags {
.news .tag {
display: none !important;
}
}
if hide_wiki {
.news .gollum {
display: none !important;
}
}
/* Hide expand button */
.news div > .Details .js-details-target,
/* Hide star repo details */
.news .watch_started .Box,
/* Hide text with 2+ stars */
.news .watch_started .text-gray,
/* .fork .border not using .Box yet */
.news .fork .border, .news .fork .Box,
.news .tag .Box, .news .git-branch .Box,
/* Hide created repo update date */
.news .repo .Box .f6,
.news .public .border .f6,
/* .public .border not using .Box yet */
.news .public .Box .f6,
.news .issues_comment .message, .news .commit_comment .message,
/* Multiple comments */
.news .issues_comment .Details .mt-2,
/* Multiple comments */
.news .commit_comment .Details .mt-2,
/* Hide issue text */
.news .issues_opened .Box div.lh-condensed,
.news .issues_closed .Box div.lh-condensed, .news .issues_closed .Box .f6,
.news .issues_closed .border .f6, .news .issues_reopened .Box div.lh-condensed,
.news .issues_reopened .Box .f6,
/* Hide PR diff stats */
.news .border .diffstat, .news .follow .Box {
display: none !important;
}
.news > div .Details:not(.Details--on) div.Details-content--hidden,
/* Show multiple star repo names */
.news .fork .Details .Box,
.news .watch_started .Details .Box,
.news .create .Details .d-flex .Box,
/* Show star on created/public repos */
.news .create .starring-container button[data-hydro-click] {
display: block !important;
}
.news .watch_started .Details .d-flex .Box, .news .issues_opened .Box,
.news .issues_closed .Box, .news .issues_reopened .Box {
border: 0 !important;
background: transparent !important;
padding: 0 !important;
margin-bottom: 0 !important;
}
/* Remove extra padding after comment is hidden */
.news .p-3,
/* Padding after PR diff-stat hidden */
.news .border.p-3,
.news .repo .Box.p-3, .news .public .border.p-3, .news .public .Box.p-3 {
padding-bottom: 5px !important;
padding-top: 5px !important;
}
.news p {
margin-bottom: 0 !important;
}
/* Limit issue title width */
.news .issues_opened .Box a, .news .issues_closed .Box a {
display: inline-block !important;
white-space: nowrap !important;
max-width: 500px !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
/* Edited wiki, move "View the diff" inline */
.news .gollum .text-gray .mt-2 {
display: inline-block !important;
}
/* Move "# more commits" to bottom right */
.news .push .link-gray {
float: right !important;
top: -2em !important;
position: relative !important;
}
}