-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathgithub-custom-border-radii.user.css
246 lines (244 loc) · 10.4 KB
/
github-custom-border-radii.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
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
/* ==UserStyle==
@name GitHub Custom Border Radii
@namespace StylishThemes
@version 2.0.12
@description Revert border-radii on GitHub, it also allows user customization on some values.
@author StylishThemes and contributors
@homepageURL https://github.com/StylishThemes/Feature-Override-Styles/
@supportURL https://github.com/StylishThemes/Feature-Override-Styles/issues/new/choose
@updateURL https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/github-custom-border-radii.user.css
@license MIT
@var text general-border-radius "General border radius" 3px
@var text avatar-border-radius "Avatar border radius" 2px
@var text button-border-radius "Button border radius" .25em
@var text pb-border-radius "Progress bar border radius" 2px
@var text color-border-radius "Color swatch border radius" 15%
@var checkbox align-user-status "User status below avatar" 1
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("^https?://((education|gist|graphql|guides|docs|raw|resources|status|developer|support|vscode-auth)\\.)?github\\.com/((?!generated_pages/preview).)*$"),
/*-----------*/regexp('https?://avatars.githubusercontent\.com(/.*)?'), domain("media.githubusercontent.com"), domain("www.githubstatus.com") {
/* Revert New Design Changes */
i = !important
/* tweak GHD opinionated radius */
.js-diff-load-container, .file .data.empty {
border-radius: 0 0 general-border-radius general-border-radius i;
}
.branch-a-b-count .bar-behind, .branch-a-b-count .bar-behind .meter {
border-radius: 0 general-border-radius general-border-radius 0;
}
/* end */
.IssueLabel, .Counter {
border-radius: general-border-radius;
}
.gist-quicksearch-results .gist-quicksearch-result-header:first-child {
border-top-left-radius: general-border-radius;
}
.Progress, .profile-rollup-wrapper .progress-bar, .progress-bar,
.sidebar-progress-bar .progress-bar {
border-radius: pb-border-radius;
}
.user-bar, html .blob-filter {
border-radius: 0;
}
.AvatarStack-body .avatar, .avatar {
border-radius: avatar-border-radius;
}
.rounded-1 .avatar-user, .rounded-1 a[data-octo-dimensions="link_type:profile"],
.avatar.circle, .avatar, .avatar-user {
border-radius: avatar-border-radius i;
}
.btn, .delete-topic-button, .delete-topic-link,
.clone-url-button:first-child .clone-url-link, .rounded-pill,
.btn-mktg-fluid {
border-radius: button-border-radius;
box-shadow: none;
}
.url-box-clippy .zeroclipboard-button {
border-radius: 0 button-border-radius button-border-radius 0;
}
.subnav-item:first-child, .radio-label:first-of-type {
border-top-left-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.subnav-item:last-child, .BtnGroup-item:last-child, .social-count,
.radio-label:last-of-type {
border-top-right-radius: general-border-radius;
border-bottom-right-radius: general-border-radius;
}
.btn-with-count {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.upload-enabled textarea {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.BtnGroup-parent:first-child .BtnGroup-item {
border-top-left-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.BtnGroup-parent:last-child .BtnGroup-item {
border-right-width: 1px;
border-top-right-radius: general-border-radius;
border-bottom-right-radius: general-border-radius;
}
.BtnGroup-item:first-child {
border-top-left-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.Box-row:first-of-type, .Box-header, .SelectMenu-tab, .graph-before-activity-overview,
.file-header, .timeline-comment-header, .uploaded-files.not-populated + .drop-target .drop-target-label,
.Box--overlay .Box-header {
border-top-left-radius: general-border-radius;
border-top-right-radius: general-border-radius;
}
.Box-body:last-of-type {
margin-bottom: -1px;
border-bottom-right-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.full-commit .commit-meta {
border-bottom-right-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.header-search-current .jump-to-suggestions {
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.BtnGroup-item {
border-right-width: 0;
border-radius: 0;
}
.BtnGroup-parent .BtnGroup-item {
border-right-width: 0;
border-radius: 0;
}
.topic-tag-action .add-topic-button {
border-radius: 0;
}
.topic-tag-action .remove-topic-button {
border-radius: 0 general-border-radius general-border-radius 0;
}
.form-control, .form-select, .filter-item, .state, .State, .label,
.Label, .reaction-sort-item, .suggester, .suggester li:first-child,
.suggester li:last-child, .delete-topic-button, .topic-tag, .topic-tag-action, .ColorSwatch,
.label-select-menu .color, kbd, .SelectMenu-modal, .IssueLabel--big.lh-condensed, .menu, .Box,
.flash, .boxed-group, .user-status-circle-badge, .timeline-comment-label,
.signed-commit-badge-large, .signed-commit-badge-medium, .signed-commit-badge-small,
.timeline-comment, .thread-subscription-status, .markdown-body code, .markdown-body tt,
.ajax-pagination-form .ajax-pagination-btn, .issues-reset-query-icon, .dropdown-menu,
.pagination a, .pagination em, .pagination span, .file, .branch-name, .add-line-comment,
.commit-ref, .sidebar-menu, .sidebar-module, pre, .select-menu-modal,
.tooltipped::after, .markdown-body kbd, .select-menu-text-filter input, .btn-mktg,
.ais-SearchBox-input, .branch-action-body, .upload-enabled.focused,
.form-group.errored .error, .form-group.errored .success, .form-group.errored .warning,
.form-group.successed .error, .form-group.successed .success, .form-group.successed .warning,
.form-group.warn .error, .form-group.warn .success, .form-group.warn .warning,
.full-commit, .compare-pr-placeholder, .markdown-body .highlight pre, .markdown-body pre,
.review-comment .reaction-summary-item:not(.add-reaction-btn), .card,
.user-list li .actions .status-modified, .copyable-terminal, .integrations-select-repos,
.review-comment:target, .oauth-permissions-details .permission-summary em.highlight, .range-editor,
image-crop .handle::before, .session-authentication .auth-form-body, .listgroup, .user-key-email,
.user-key-badge, .inline-comment-form, .add-markdown-comment, .highlight, #search-results, code, pre,
.saved-reply-form, .review-comment .is-comment-editing, .ScreenshotCarousel,.markdown-body table code,
.svg-tip, .code-list .file-box, .session-authentication .flash, .markdown-title code,
.file:not(.open) .file-header.file-header--expandable, .pricing-dark-container, .hx_kbd,
[data-target='command-palette-item.hintText'], [class*="Flash-sc-"], .social-reaction-summary-item,
.ActionList-item.ActionList-item--navActive:not(.ActionList-item--danger)::after,
.ActionList-item--navActive.ActionList-item, .UnderlineNav-item {
border-radius: general-border-radius;
}
// docs actions guides consistency https://docs.github.com/en/actions/guides
.border-white[role="button" i], .stale-files-tab { border-radius: button-border-radius }
select.form-select, tracked-issues-progress [style*="border-radius: 40px" i],
button[style*="border-radius:100px" i], .ActionList-item.org-menu-item {
border-radius: general-border-radius i;
}
code span.circle {
border-radius: color-border-radius i;
}
// export logs
input[id="start-time"], input[id="stop-time"] {
border-radius: general-border-radius i;
}
// end docs actions guides
.boxed-group .heading, .boxed-group > h3,
.tabnav-tab.selected, .tabnav-tab[aria-current]:not([aria-current="false"]),
.tabnav-tab[aria-selected="true"], .select-menu-tabs .select-menu-tab-nav, .select-menu-tabs a,
.table-list-header, .oauth-org-access-details .oauth-org-item:first-child {
border-radius: general-border-radius general-border-radius 0 0;
}
.discussion-topic-header, .previewable-comment-form .tabnav {
border-radius: general-border-radius general-border-radius 0 0 i;
}
.select-menu-item.last-visible, .select-menu-list:last-child .select-menu-item:last-child,
.review-thread-reply {
border-radius: 0 0 general-border-radius general-border-radius;
}
.Box--responsive .Box-header {
border-left-width: 1px;
border-right-width: 1px;
border-top-left-radius: general-border-radius;
border-top-right-radius: general-border-radius;
}
.Box-row:last-of-type, .drag-and-drop, .boxed-group-inner {
border-bottom-right-radius: general-border-radius;
border-bottom-left-radius: general-border-radius;
}
.rounded, .rounded-1, .rounded-2, .profile-rollup-content .rounded-1, .rounded-3 {
border-radius: general-border-radius i;
}
.Progress .rounded-2 {
border-radius: avatar-border-radius i;
}
.comment-reactions-options .reaction-summary-item:first-child {
border-bottom-left-radius: general-border-radius;
}
.rounded-bottom-1, .rounded-bottom-2, .rounded-left-1 {
border-bottom-left-radius: general-border-radius i;
border-bottom-right-radius: general-border-radius i;
}
.WorkflowCard-heading::after {
border-bottom-left-radius: general-border-radius;
}
.rounded-left-1 {
border-top-left-radius: general-border-radius i;
}
.container-preview .tabnav-tabs > .selected:first-child {
border-top-left-radius: general-border-radius;
}
.rounded-top-2, .rounded-md-top-1 {
border-top-left-radius: general-border-radius i;
border-top-right-radius: general-border-radius i;
}
.rounded-right-1, .rounded-top-1 {
border-top-right-radius: general-border-radius i;
}
.rounded-top-1 {
border-top-left-radius: general-border-radius i;
}
.rounded-right-1 {
border-bottom-right-radius: general-border-radius i;
}
/* pull user status down and align else default values */
if align-user-status {
.user-status-circle-badge-container {
position: static;
margin-left: 0;
margin-bottom: -10px;
margin-top: 10px;
}
.CircleBadge, .page-profile .user-status-container {
background: transparent;
}
}
else {
.user-status-circle-badge-container {
margin-bottom: 32px;
margin-left: -40px;
}
}
}