Skip to content

Instantly share code, notes, and snippets.

@Phoenix616
Last active May 15, 2023 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phoenix616/cc725e0f417af2f987b92e711ad37a98 to your computer and use it in GitHub Desktop.
Save Phoenix616/cc725e0f417af2f987b92e711ad37a98 to your computer and use it in GitHub Desktop.
Dark Java 9-18 Javadocs Userstyle
/* == UserStyle==
@name Dark Javadocs
@namespace https://phoenix616.dev
@description Dark Java 9-18 Javadocs Userstyle
@author Max Lee aka Phoenix616 (https://phoenix616.dev)
@version 0.1.13
@homepageURL https://gist.github.com/Phoenix616/cc725e0f417af2f987b92e711ad37a98/
@license CC0
@updateURL https://gist.github.com/Phoenix616/cc725e0f417af2f987b92e711ad37a98/raw/27f6db9b5f0dd05930e0b9b8c853d2e35bfe99d0/DarkJavadocs.user.css
==/UserStyle== */
/**
* Dark Javadocs for Java 9-18 by Max Lee (https://github.com/Phoenix616)
* Based on style by saidfgn (https://userstyles.org/styles/136888/)
* Licensed under CC0
*
* Changelog:
* 0.1 - Release for Java 9
* 0.1.1 - Added docs.minebench.de domain
* 0.1.2 - Updated Paper Javadocs domain
* 0.1.3 - Updated Paper Javadocs domain again (now on papermc.io), also added google.github.io docs
* 0.1.4 - Added support for pre.codeblock elements (thanks to Olo for noticing this)
* 0.1.5 - Darken some more elements in some cases (table rows and a[name] on docs.oracle.com) and add some more domains. (Javacord, Typesafe Config)
* 0.1.6 - Added Java 12 support
* 0.1.7 - Added JANITOR support
* 0.1.8 - Added Java 15 support
* 0.1.9 - Added Java 16 support
* 0.1.10 - Added jd.papermc.io
* 0.1.11 - Fix search bar colors
* 0.1.12 - Fix code in pre tags
* 0.1.13 - Fix search background
*/
@-moz-document url-prefix("https://hub.spigotmc.org/javadocs/"), url-prefix("https://moep.tv/apidocs/"), url-prefix("https://papermc.io/javadocs/"), url-prefix("https://lightbend.github.io/config/latest/api/"), url-prefix("https://javadoc.io/static/"), url-prefix("https://kvverti.github.io/Documented-DataFixerUpper/"), url-prefix("https://jd.advntr.dev/"), domain("docs.minebench.de"), domain("google.github.io"), domain("docs.javacord.org"), domain("jd.andross.fr"), domain("docs.phoenix616.dev"), domain("jd.velocitypowered.com"), domain("jd.adventure.kyori.net"), domain("jd.spongepowered.org"), domain("jd.papermc.io"), regexp("http[s]\\:\\/\\/docs\\.oracle\\.com\\/javase\\/\\d*\\/docs\\/.*"), regexp("http[s]\\:\\/\\/docs\\.oracle\\.com\\/en\\/java\\/javase\\/\\d*\\/docs\\/.*"), regexp("http[s]\\:\\/\\/guava\\.dev\\/releases\\/.+/api\\/docs\\/.*") {
body {
background-color: rgb(35, 33, 33);
color: rgb(170, 170, 185);
}
h1,
h2,
h3,
h4,
h5 {
color: #CD9AB1;
}
*::selection {
background: #F8981D;
color: black;
}
*::-webkit-scrollbar {
width: 0.9em;
}
*::-webkit-scrollbar-corner, *::-webkit-resizer {
background-color: #111;
}
*::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #1D1D1D;
}
*::-webkit-scrollbar-thumb {
background-color: #474747;
outline: 1px solid #737373;
}
#TopBar_left {
color: rgba(174, 195, 229, 1);
}
#TopBar {
min-width: 0px;
border-bottom: 1px solid rgba( 0, 30, 255, 1);
border-radius: 3px;
background: linear-gradient( to bottom, rgba( 0, 0, 0, 1) 0%, rgba( 0, 69, 122, 1) 100%) repeat scroll 0% 0% transparent;
}
.header-container {
background-color: rgba( 0, 0, 0, 1);
border-bottom: 1px solid rgba( 0, 143, 255, 1);
box-shadow: 0px 2px 2px rgba( 0, 66, 255, 0.15);
}
#logocover {
width: 0px;
}
.nolinkLESSON,
.nolinkAHEAD,
.nolinkBHEAD,
.nolinkCHEAD,
.nolinkQUESTIONS {
color: rgb(68, 153, 168);
}
#Contents a,
.NavBit a,
#TagNotes a {
color: rgb(66, 178, 228);
}
#BreadCrumbs a {
color: rgb(205, 180, 155);
}
a:link {
text-decoration: none;
color: #76B1E6 !important;
}
a:hover {
color: #deecf9 !important;
}
a:visited,
#Contents a:visited,
.NavBit a:visited,
#TagNotes a:visited {
color: #94D5FF;
}
#productName {
color: rgb(227, 168, 108);
}
code {
color: rgb(186, 210, 255);
}
code.visited {
color: rgb(196, 220, 255);
}
.TutorialLink {
color: #5AA3E8;
}
#homeGetStarted a:link,
#homeGetStarted a:active,
#homeGetStarted a:visited,
.threecolumns a:link,
.threecolumns a:active,
.threecolumns a:visited {
color: #739BC0;
}
.button {
text-align: center;
display: inline-block;
background-color: #525252;
border: none;
box-shadow: none;
border-radius: 2px;
padding: 2px 5px;
margin-left: 5px;
}
.button:hover {
background-color: #626262;
border: none;
box-shadow: none;
}
.treeview li,
.treeview li.submenu {
background-color: rgb(35, 33, 33);
}
.booktitle {
background: none;
border-bottom: 1px solid #898989;
border-radius: 0;
}
#breadcrumb a:link,
#breadcrumb a:visited {
color: #76B1E6;
}
.footer-container,
.footer-containerbook {
background: none;
border-top: 1px solid #656565;
border-radius: 0;
}
footer,
#Footer .footertext {
color: rgb(170, 170, 185);
}
.SourceLink {
border-bottom: 1px solid rgb(186, 190, 255);
}
div.block {
color: rgb(170, 170, 185);
font-family: sans-serif;
}
.title {
color: #93B2C8;
}
.contentContainer .description dl dt,
.contentContainer .details dl dt,
.serializedFormContainer dl dt {
color: #9E9E9E;
}
.summary section[class$="-summary"],
.details section[class$="-details"],
.class-uses .detail,
.serialized-class-details,
ul.blockList ul.blockList li.blockList,
ul.blockList ul.blockListLast li.blockList {
border: 1px solid #444444;
background-color: #303030;
}
.overview-summary table,
.member-summary table,
.type-summary table,
.use-summary table,
.constants-summary table,
.deprecated-summary table,
.requires-summary table,
.packages-summary table,
.provides-summary table,
.uses-summary table,
.system-properties-summary table,
.overviewSummary,
.memberSummary,
.typeSummary,
.useSummary,
.constantsSummary,
.deprecatedSummary {
border-left: 1px solid #737373;
border-right: 1px solid #737373;
border-bottom: 1px solid #737373;
}
.overview-summary table caption,
.member-summary table caption,
.overviewSummary caption,
.memberSummary caption,
.overview-summary table .caption,
.member-summary table .caption,
.overviewSummary .caption,
.memberSummary .caption {
border-bottom: 1px solid #737373;
}
th.col-first,
th.col-second,
th.col-last,
th.col-one,
th.colFirst,
th.colSecond,
th.colLast,
th.colOne,
.constantsSummary th,
.table-header.col-first,
.table-header.col-second,
.table-header.col-last,
.table-header.col-one,
.table-header.colFirst,
.table-header.colSecond,
.table-header.colLast,
.table-header.colOne,
.constantsSummary .table-header,
tr[bgcolor="#ccccff"] {
background: #232323;
color: #CCC;
}
.alt-color, .alt-color th, alt-color .table-header,
.altColor, .altColor th, altColor .table-header,
.even-row-color, .even-row-color .table-header,
tr[bgcolor="#eeeeff"] {
background-color: #171717;
}
.row-color, .row-color th, .row-color .table-header,
.rowColor, .rowColor th, .rowColor .table-header,
.odd-row-color, .odd-row-color .table-header {
background-color: #232323;
}
.inherited-list, section[class$="-details"] .detail,
ul.blockList ul.blockList ul.blockList li.blockList,
ul.blockList ul.blockList ul.blockListLast li.blockList {
background-color: #1D1D1D;
}
ul.blockList ul.blockList ul.blockList li.blockList h3 {
border: 1px solid #292929;
background-color: #333333;
}
body.class-declaration-page .summary h3,
body.class-declaration-page .details h3,
body.class-declaration-page .summary .inherited-list h2,
div.details ul.blockList ul.blockList ul.blockList li.blockList h4,
div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 {
background-color: #2D2D2D;
border: 1px solid #4B4B4B;
}
.top-nav,
.topNav {
background-color: #494949;
}
.subNav {
background-color: #4D4D4D;
}
.summary-table caption span,
.overviewSummary caption span,
.memberSummary caption span,
.typeSummary caption span,
.useSummary caption span,
.constantsSummary caption span,
.deprecatedSummary caption span,
.summary-table .caption span,
.overviewSummary .caption span,
.memberSummary .caption span,
.typeSummary .caption span,
.useSummary .caption span,
.constantsSummary .caption span,
.deprecatedSummary .caption span {
background-color: #474747;
color: rgb(227, 168, 108);
border-left: 1px solid #737373;
border-right: 1px solid #737373;
border-top: 1px solid #737373;
}
.memberSummary caption span.activeTableTab span,
.memberSummary .caption span.activeTableTab span {
background-color: #272727;
color: rgb(227, 168, 108);
border-left: 1px solid #737373;
border-right: 1px solid #737373;
border-top: 1px solid #737373;
}
.memberSummary caption span.tableTab span,
.memberSummary .caption span.tableTab span {
background-color: #363636;
}
.memberSummary caption span.tableTab,
.memberSummary caption span.activeTableTab,
.memberSummary .caption span.tableTab,
.memberSummary .caption span.activeTableTab {
opacity: 0;
}
dd,
h3 {
font-family: sans-serif;
}
.IND div > pre,
.IND dd > pre,
.IND li > pre {
background-color: rgba(238, 238, 238, 0);
}
div.syntaxhighlighter {
background-color: rgba(238, 238, 238, 0) !important;
}
div.syntaxhighlighter .line.alt1,
div.syntaxhighlighter .line.alt2 {
background-color: rgba(238, 238, 238, 0) !important;
}
.syntaxhighlighter code.comments,
.syntaxhighlighter code.comments a,
.syntaxhighlighter code.keyword,
.syntaxhighlighter code.plain,
.syntaxhighlighter code.plain a,
.syntaxhighlighter code.string,
.syntaxhighlighter code.string a {
color: rgb(170, 170, 185) !important;
}
.TableRowColor {
background-color: #434343;
}
.TableSubHeadingColor {
background-color: #5A5A5A;
}
.TableHeadingColor {
background: #525252;
}
body,
th,
td,
p,
pre,
code,
kbd,
tt,
h5,
h5 a,
h6,
h6 a,
h5 span,
h6 span,
h1,
h2,
h3,
h1 span,
h2 span,
h3 span,
h1 a,
h2 a,
h3 a,
h4,
h4 span,
h4 a,
a[name] {
color: #aaaab9;
}
div.maincontent pre,
div.maincontent code,
div.maincontent tt {
color: #aec3e5;
}
pre {
background-color: #303030;
margin-right: 10px;
}
div.bottomNav {
background-color: #222222;
}
li.navBarCell1Rev {
background-color: #E95;
}
.sub-nav,
div.subNav {
background-color: #333333;
}
.indexNav {
background-color: #333333;
}
/* Search */
#search, #search-input {
color: #FFFFFF;
border-width: 1px;
border-color: #a8a8a8;
padding: 3px;
padding-left: 22px;
background-position: 4px 4px;
background-color: #494949;
}
#reset, #reset-button {
background-color: #494949;
left: -5px;
cursor: pointer;
}
.ui-widget::-webkit-scrollbar {
width: 0.35em;
height: 0.3em;
}
.ui-widget-content,
ul.ui-autocomplete {
background: #232121;
}
.ui-state-focus {
background: #494949!important;
border-color: #494949!important;
}
.ui-state-focus a {
color: #FFFFFF;
}
pre.codeblock {
background-color: #363232;
}
/* Java 12 specific changes */
.summary section[class$=Summary],
.details section[class$=Details],
.classUses .detail,
.serializedClassDetails {
border: 1px solid #404040;
background-color: #2b2b2b;
}
body.class-declaration .summary h3,
body.class-declaration .details h3,
body.class-declaration .summary .inheritedList h2 {
background-color: #313131;
border: 1px solid #4c4c4c;
}
.inheritedList,
section[class$=Details] .detail {
background-color: #1f1f1f;
}
.overviewSummary table,
.memberSummary table,
.typeSummary table,
.useSummary table,
.constantsSummary table,
.deprecatedSummary table,
.requiresSummary table,
.packagesSummary table,
.providesSummary table,
.usesSummary table {
border-left: 1px solid #252525;
border-right: 1px solid #252525;
border-bottom: 1px solid #252525;
}
.overviewSummary,
.memberSummary,
.typeSummary,
.useSummary,
.constantsSummary,
.deprecatedSummary {
border-left: 1px solid #313131;
border-right: 1px solid #313131;
border-bottom: 1px solid #313131;
}
.ui-widget-content,
li.resultItem.ui-menu-item {
color: #ddd;
}
a.moduleGraph img {
-webkit-filter: invert(0.866);
filter: invert(0.866);
}
/* JANITOR */
#JANITOR span[title^=Module] span {
color: #a6a6a6!important;
}
#JANITOR span[title^=Package] span {
color: #ea86ea!important;
}
#JANITOR span[title^=Interface] span {
color: #74b0ea!important;
}
#JANITOR span[title^=Class] span {
color: #3ea8ff!important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment