summaryrefslogtreecommitdiff
path: root/source/refined-github.css
diff options
context:
space:
mode:
Diffstat (limited to 'source/refined-github.css')
-rw-r--r--source/refined-github.css116
1 files changed, 116 insertions, 0 deletions
diff --git a/source/refined-github.css b/source/refined-github.css
new file mode 100644
index 00000000..8d7a5592
--- /dev/null
+++ b/source/refined-github.css
@@ -0,0 +1,116 @@
+:root {
+ --github-green: #28a745;
+ --github-red: #cb2431;
+ --github-gray-background: #fafbfc;
+ --github-gray-text: #6a737d;
+ --github-faint-yellow: #fffbdd;
+}
+
+/* Fade out the file icons */
+.file-wrap .files .octicon {
+ opacity: 0.6;
+}
+
+/* Make tab indented code more readable on GitHub and Gist */
+* {
+ -moz-tab-size: 4 !important;
+ tab-size: 4 !important;
+}
+
+/* For `open-all-selected` and `pr-filters`: set a reduced padding for all buttons for #1830 and #1904 */
+#js-issues-toolbar .table-list-header-toggle details {
+ padding: 0 !important;
+}
+
+#js-issues-toolbar .table-list-header-toggle summary {
+ padding: 0 8px !important;
+}
+
+#js-issues-toolbar .table-list-header-toggle > :last-child > summary {
+ padding-right: 0 !important;
+}
+
+/* Hide empty description of repo */
+.repository-meta.mb-3 > .repository-meta-content > em {
+ display: none !important;
+}
+
+/* Remove user avatar from new comment form on threads */
+.review-thread-reply .avatar {
+ display: none;
+}
+.review-thread-reply .review-thread-reply-button {
+ margin-left: 0;
+}
+
+/* Hide `New pull request button` near file list */
+.file-navigation .new-pull-request-btn {
+ display: none;
+}
+
+@keyframes fade-in {
+ from {
+ opacity: 0;
+ }
+}
+
+/* Smoothen mouse animation on 404 pages */
+.js-plaxify {
+ transition: transform 0.1s;
+}
+
+/* Remove "Seeing something unexpected?" from user profiles */
+#js-contribution-activity .js-show-more-timeline-form > p {
+ display: none;
+}
+
+/* Remove the 'Review Summary' header from the form */
+.pull-request-review-menu label[for='pull_request_review_body'] {
+ display: none !important;
+}
+
+/* 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;
+}
+
+/* Remove the "New repository" button in the dashboard sidebar */
+.dashboard-sidebar a[href='/new'] {
+ display: none;
+}
+.dashboard-sidebar .Box-title {
+ padding-top: 4px !important;
+ padding-bottom: 4px !important;
+}
+
+/* Expand empty diffs in PRs */
+:root .file .data.empty {
+ padding: 54px;
+ text-align: center;
+}
+
+/* Improve dropdown expansion animation (e.g. top-right dropdown in comments) */
+/* It normally pops in from the center */
+.dropdown-menu-sw {
+ transform-origin: 90% top;
+}
+
+/* Improve spacing in discussion lists meta, made feel crowded by:
+highlight-collaborators-and-own-discussions
+parse-backticks
+pr-branches
+*/
+.js-issue-row .text-small.text-gray {
+ line-height: 1.8;
+}