/* ==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; } } }