SteamStat.us - Zwift Cycling Game Theme

Custom theme inspired by Zwift cycling game

目前为 2024-12-04 提交的版本。查看 最新版本

/* ==UserStyle==
@name         SteamStat.us - Zwift Cycling Game Theme
@version      20241119.00.01
@namespace    https://github.com/Nick2bad4u/UserStyles
@description  Custom theme inspired by Zwift cycling game
@homepageURL  https://github.com/Nick2bad4u/UserStyles
@author       Nick2bad4u
@license      UnLicense
==/UserStyle== */
@-moz-document domain("steamstat.us") {
	/* Main title styling with Zwift colors */
	.title {
		margin: 10px 0;
		background: linear-gradient(
			135deg,
			#ffffff 30%,
			#ff7f00 70%
		);
		color: #ff7f00;
		font-weight: 700;
		font-size: 2.6em;
		text-align: center;
		/* Zwift Orange */
		text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
		/* White to Orange */
		-webkit-text-stroke-width: 1px;
		-webkit-text-stroke-color: #000000;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		display: flex;
		position: relative;
		justify-content: center;
		align-items: center;
		animation: title-animation 3s ease-in-out
			infinite alternate;
	}

	/* Animation for the title */
	@keyframes title-animation {
		0% {
			transform: scale(1);
		}

		100% {
			transform: scale(1.08);
		}
	}

	/* Logo addition with Zwift emblem */
	.title::after {
		display: inline-block;
		clip-path: circle();
		transition: transform 0.3s ease;
		margin-left: 10px;
		background: url('https://i.gyazo.com/2a07deee44f8b2da87394d4393fcff0b.jpg')
			no-repeat center;
		background-size: contain;
		width: 150px;
		height: 60px;
		content: '';
	}

	.title:hover::after {
		transform: scale(1.5);
	}

	/* Link styling with hover effect */
	a {
		transition:
			color 0.3s ease,
			text-shadow 0.3s ease;
		color: #ff7f00;
		font-weight: bold;
		/* Zwift Orange */
		text-decoration: none;
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
	}

	a:hover {
		color: #ffffff;
		/* White */
		text-decoration: underline;
		text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
	}

	/* Status colors with Zwift theme */
	.good {
		transition: color 0.3s ease;
		color: #ffffff;
		/* White */
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	}

	.minor {
		transition: color 0.3s ease;
		color: #ff7f00;
		font-weight: bold;
		/* Orange */
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	}

	.major {
		transition: color 0.3s ease;
		color: #0073e6;
		font-weight: bold;
		/* Bright Blue */
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	}

	/* Refresh button styling */
	#js-refresh {
		transition:
			color 0.3s ease,
			transform 0.3s ease;
		color: #ff7f00;
		font-weight: bolder;
		/* Orange */
		text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	}

	#js-refresh:hover {
		/* White */
		transform: scale(1.1);
		color: #ffffff;
	}

	/* Container with Zwift-inspired accents */
	.services,
	#psa,
	noscript,
	footer {
		position: relative;
		transition:
			box-shadow 0.3s ease,
			background 0.3s ease;
		box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.8);
		border: 1px solid #ff7f00;
		border-radius: 4px;
		background: linear-gradient(
			135deg,
			rgba(255, 127, 0, 0.8) 30%,
			rgba(255, 255, 255, 0.8) 70%
		);
		color: #000000;
		font-size: 1em;
		line-height: 1.5;
		text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.9);
	}

	.services:hover,
	#psa:hover,
	noscript:hover,
	footer:hover {
		box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.9);
		background: rgba(0, 0, 0, 0.95);
		color: #ffffff;
	}

	/* Body styling with Zwift cycling backdrop */
	body {
		transition: background 0.3s ease;
		margin: 0;
		background: url('https://i.gyazo.com/8eb3d105728604bc85421637d6605692.jpg')
			no-repeat center center fixed;
		/* Zwift background URL */
		background-size: cover;
		color: #ff7f00;
		font-weight: 300;
		font-size: 16px;
		/* Orange */
		font-family: 'Lato', sans-serif;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	}

	/* Tooltip customization */
	[data-tooltip]:before {
		position: absolute;
		top: 0;
		left: 2%;
		visibility: hidden;
		opacity: 0;
		z-index: 1;
		transition:
			visibility 0s,
			opacity 0.3s ease-in-out;
		border-radius: 8px;
		background: rgba(255, 127, 0, 0.9);
		padding: 8px;
		width: 96%;
		content: attr(data-tooltip);
		/* Orange */
		color: #000000;
		font-size: 0.9em;
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	}

	[data-tooltip]:hover:before {
		visibility: visible;
		opacity: 1;
	}
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址