veloviewer.com - Dark Mode

Dark theme for VeloViewer

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

/* ==UserStyle==
@name           veloviewer.com - Dark Mode
@namespace      typpi.online
@version        1.6.1
@description    Dark theme for VeloViewer
@author         Nick2bad4u
@license        UnLicense
@homepageURL    https://github.com/Nick2bad4u/UserStyles
@supportURL     https://github.com/Nick2bad4u/UserStyles/issues

@var color      primary-color    "Primary Color" #FF032E
@var color      header-color     "Header Color" #ff8bc1
@var color      secondary-color  "Secondary Color" #0099c6
@var color      table-alternate-row "Table Alternate Row Background Color" #fff
@var color      background-color "Background Color" black
@var text       invert-filter    "Invert Filter" "invert(1) hue-rotate(180deg)"
==/UserStyle== */
@-moz-document domain("veloviewer.com") {
	:root {
		--header-color: var(header-color);
		--secondary-color: var(secondary-color);
		--background-color: var(background-color);
		--table-alternate-row: var(table-alternate-row);
		--primary-color: var(primary-color);
		--invert-filter: var(invert-filter);
	}

	a:hover,
	a:focus {
		color: #3aad7d !important;
		text-decoration: underline;
	}

	a:any-link {
		cursor: pointer;
		color: var(--primary-color);
		text-decoration: underline;
	}

	/* Invert colors except images and videos */
	html:not([stylus-iframe]),
	img,
	svg,
	video,
	.navbar-fixed-top,
	.open > .dropdown-menu,
	.table-bordered caption + thead tr:first-child th,
	.table-bordered caption + tbody tr:first-child th,
	.table-bordered caption + tbody tr:first-child td,
	.table-bordered colgroup + thead tr:first-child th,
	.table-bordered colgroup + tbody tr:first-child th,
	.table-bordered colgroup + tbody tr:first-child td,
	.table-bordered thead:first-child tr:first-child th,
	.table-bordered tbody:first-child tr:first-child th,
	.table-bordered tbody:first-child tr:first-child td,
	header#masthead,
	#socialPlaceholder,
	.tab-content,
	#dataContainer,
	.accordion-group#mapChartContainer2,
	#chartsTab > div > .span10,
	select,
	.tableWrapper.st,
	textarea:focus,
	input[type='text']:focus,
	input[type='password']:focus,
	input[type='datetime']:focus,
	input[type='datetime-local']:focus,
	input[type='date']:focus,
	input[type='month']:focus,
	input[type='time']:focus,
	input[type='week']:focus,
	input[type='number']:focus,
	input[type='email']:focus,
	input[type='url']:focus,
	input[type='search']:focus,
	input[type='tel']:focus,
	input[type='color']:focus,
	.uneditable-input:focus,
	.row-fluid [class*='span']:first-child,
	#addSplitValue,
	#summaryTab > div:nth-child(n),
	.day,
	#mainContent > div:nth-child(n),
	#mainContent > div:nth-child(n) > div > div > div > table,
	#gearSummary > div > div,
	#charts,
	#mainContent > .awards > div:nth-child(1) > div,
	#wheel,
	#graphic
		> div:nth-child(2)
		> div:nth-child(2)
		> div:nth-child(2),
	#optionsAcc,
	.form-search input,
	.form-inline input,
	.form-horizontal input,
	.form-search textarea,
	.form-inline textarea,
	.form-horizontal textarea,
	.form-search select,
	.form-inline select,
	.form-horizontal select,
	.form-search .help-inline,
	.form-inline .help-inline,
	.form-horizontal .help-inline,
	.form-search .uneditable-input,
	.form-inline .uneditable-input,
	.form-horizontal .uneditable-input,
	.form-search .input-prepend,
	.form-inline .input-prepend,
	.form-horizontal .input-prepend,
	.form-search .input-append,
	.form-inline .input-append,
	.form-horizontal .input-append,
	#imageUrl,
	#linkPageText,
	#htmlCode,
	#bbCode,
	.leaflet-map-pane,
	#mapContainer2,
	#activitiesTab > div > div:nth-child(1) > table > thead,
	#activitiesTab > div > div:nth-child(1) > table > tbody,
	.table-bordered,
	.leaflet-container,
	#stravaEmbed,
	#filterAcc,
	#prDiv,
	#mwsWrapper,
	#mapChartContainer3,
	.tab-content .span6 #mapContainer {
		filter: var(--invert-filter);
	}

	.nav-tabs .active a,
	.nav-tabs .active a:hover {
		color: var(--secondary-color) !important;
	}

	.nvd3 .nv-axis .nv-axisMaxMin text {
		fill: var(--header-color) !important;
	}

	.nav > li > a > img,
	#addFilterSelect,
	#configSelect,
	.chartSelect,
	#typeFlipper,
	#datum,
	#calDisplayValue,
	#actSummaryYBG,
	#timeDisplayValue,
	#segStats,
	#scores,
	#tableContainer,
	#monthYear select,
	#rowCount,
	#splitsTab
		> .tableWrapper.st
		> .st-body.splitsDiv
		> table,
	#splitsTab > .tableWrapper.st > .st-head > table,
	#overview > div > .span8 > h1 > img,
	#tableWrapper table,
	.tableWrapper
		table:not(
			#breakdownTab
				> div.tableWrapper.breakdownTotalTable
				> table
		) {
		filter: unset !important;
	}

	#mainContent > .tab-content,
	.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom,
	.tab-content > .active,
	.pill-content > .active,
	body > .container-fluid > .tab-content,
	#completedChallenges > div:nth-child(n),
	#partChallenges > div:nth-child(n),
	#otherChallenges > div:nth-child(n) {
		background: var(--background-color) !important;
	}

	html,
	#tableContainer,
	.table td {
		background: var(--table-alternate-row);
	}

	.axis text {
		fill: var(--header-color);
	}

	.activityDetails circle {
		fill: rgb(0 0 0);
		stroke: var(--header-color);
		stroke-opacity: 20%;
		stroke-width: 0.75;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	#list > p:nth-child(n),
	.form-horizontal .control-label {
		margin: 10px 0;
		color: var(--header-color);
		font-weight: 600;
		line-height: 16px;
		font-family: inherit;
		text-rendering: optimizelegibility;
	}
}