Skip to content

Commit

Permalink
task: add github dark border elements closes StylishThemes/GitHub-Dar…
Browse files Browse the repository at this point in the history
  • Loading branch information
the-j0k3r committed Nov 11, 2019
1 parent 47882d5 commit 312c400
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Install [Stylus](https://add0n.com/stylus.html) for either [Firefox](https://add
📦 [Install the Wikipedia Dark Gray Text Colors usercss](https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/wikipedia-dark-gray-text-colors.user.css) Will customize Wikipedia Dark gray text colors, this is a companion script for [Wikipedia Dark](https://github.com/StylishThemes/Wikipedia-Dark) style.<br>
>Note: Not to be used on its own without the Wikipedia Dark style also installed ;)
📦 [Install the GitHub Dark Element Borders usercss](https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/github-dark-element-borders.user.css) [Will remove GitHub Dark's borders in some elements](https://github.com/StylishThemes/GitHub-Dark/issues/1017), this is a companion script for [GitHub Dark](https://github.com/StylishThemes/GitHub-Dark) style.<br>
>Note: Not to be used on its own without the Wikipedia Dark style also installed ;)
<br>

## Contributions
Expand Down
36 changes: 36 additions & 0 deletions github-dark-element-borders.user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* ==UserStyle==
@name GitHub Dark Border Elements
@namespace StylishThemes
@version 0.0.1
@description GitHub Dark opinionated borders removal on various elements
@author StylishThemes
@homepageURL https://github.com/StylishThemes/Feature-Override-Styles/
@supportURL https://github.com/StylishThemes/Feature-Override-Styles/Wikipedia-Dark-Gray-Text-Colors/issues
@updateURL https://raw.githubusercontent.com/StylishThemes/Feature-Override-Styles/master/github-dark-element-borders.user.css
@license CC-BY-SA-4.0
@var checkbox enableBorders "Enable borders" 1
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("^https?://((gist|guides|help|lab|launch-editor|raw|resources|status|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$"),
domain("githubusercontent.com"), domain("graphql-explorer.githubapp.com"),
domain("www.githubstatus.com") {
if ( enableBorders == 0 ) {
html body .markdown-body code,
html body .merge-pr-more-commits,
html body .commit-ref,
html body .commit-link tt,
html body .markdown-body pre {
border: 0 !important;
}
} else {
html body .markdown-body code,
html body .merge-pr-more-commits,
html body .commit-ref,
html body .commit-link tt,
html body .markdown-body pre {
border: inherit;
}
}
}

0 comments on commit 312c400

Please sign in to comment.