Skip to content

Instantly share code, notes, and snippets.

@Kaleidosium
Last active July 2, 2020 20:47
Show Gist options
  • Save Kaleidosium/5e7c3fb8f9ab969b050a665f28877116 to your computer and use it in GitHub Desktop.
Save Kaleidosium/5e7c3fb8f9ab969b050a665f28877116 to your computer and use it in GitHub Desktop.
Fix New GitHub Design Issues
/* ==UserStyle==
@name Fix New GitHub Design Issues
@namespace iamrifki
@version 1.0.1
@description Fixes several things I dislike about the new GitHub redesign
@author Dania Rifki <iamrifki0@gmail.com>
==/UserStyle== */
@-moz-document url-prefix("https://github.com/"), url-prefix("https://gist.github.com/") {
/* Add separators back to the file list. */
div[role="grid"] > div[role="row"]:not(:last-child) {
border-bottom: 1px solid #e1e4e8;
}
/* Add separators back to the line numbers. */
.blob-num:not(.pinned-gist-blob-num) {
border-right: 1px solid #e1e4e8;
}
.CodeMirror-gutters > .CodeMirror-linenumbers {
border-right: 1px solid #e1e4e8;
}
/* Zebra table */
.repository-content > table.highlight tr:nth-child(odd) {
background-color: #f6f8fa;
}
/* Remove margins between the file header and the edit box */
.file-header.mb-2 {
margin-bottom: 0 !important;
}
/* Gray README header */
#readme > .Box-header.d-flex.flex-items-center.flex-justify-between.bg-white {
background-color: #f6f8fa !important;
border-bottom: 1px solid #e1e4e8 !important;
}
/* Fix text contrast */
.text-gray,
.muted-link,
.text-gray-light,
.link-gray,
.table-list-header-toggle .btn-link,
.subnav-search-input,
.subnav-search-context .btn,
.commit .commit-title,
.commit .commit-title a,
.commit-group-title,
.drag-and-drop,
.file .data.empty,
.link-gray-dark,
.full-commit .sha-block,
.full-commit .sha-block > .sha,
.blob-num,
.gh-header-meta,
.timeline-comment-header,
.discussion-sidebar-heading,
.discussion-sidebar-item {
color: #222222 !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment