Pure GreasyFork

A new userstyle

目前為 2020-08-14 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/* ==UserStyle==
@name           Pure GreasyFork
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         CWorld
==/UserStyle== */

@-moz-document domain("greasyfork.org") {

/* 主色调:#900 */

:root {
	--COLOR1: #20a0ff;
	--COLOR2: #20a0ff52;
	--COLOR3: #8492a6;
	--COLOR4: #eff2f7;
	--AN: .3s ease-in-out;
}

/* :root {
	--COLOR1: #0ba439;
	--COLOR2: #0ba43952;
	--COLOR3: #8492a6;
	--COLOR4: #eff2f7;
	--AN: .3s ease-in-out;
}
 */
body {
	background-color: #f0f2f7;
}
a {
	color: var(--COLOR1);
}
a:visited {
    color: var(--COLOR2);
}
input {
	outline: none;
}


/* --顶栏-- */
#main-header {
	transition: var(--AN);
	background: #fff;
    box-shadow: 0 3px 5px rgba(31,45,61,.05), 0 2px 3px rgba(31,45,61,.08), inset 0 -1px hsla(0,0%,100%,.05);
    padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
}
#main-header .width-constraint {
    padding: 10px 0;
    position: relative;
}

/* 主 Logo */
#site-name img {
    width: 40px;
	margin-right: 10px;
}
#main-header h1 {
	transition: var(--AN);
    font-size: 28px;
	margin-top: 3px;
    color: var(--COLOR3);
}
#main-header h1:hover {
    color: var(--COLOR1);
}
#main-header h1 a {
    color: var(--COLOR3) !important;
}

/* 用户&语言 */
#nav-user-info {
	top: auto;
	bottom: 20px;
}
#nav-user-info #language-selector {
	transition: var(--AN);
    background: linear-gradient(#cad1db,#d8e0ea 70%,#d8e0ea calc(100% - 8px),#eff2f7);
    border-radius: 50px;
    padding: 6px 12px;
    color: #657487;
    text-shadow: 0 1px #fff;
    border: 1px solid #99a9bf;
    box-shadow: 0 2px 4px rgba(31,45,61,.1);
	position: relative;
	overflow: hidden;
}
#nav-user-info #language-selector:hover, #nav-user-info #language-selector:focus {
	transition: var(--AN);
    box-shadow: 0 8px 11px rgba(31,45,61,.1), 0 5px 8px rgba(31,45,61,.1), inset 0 0 0 1px hsla(0,0%,100%,.3);
	position: relative;
	overflow: hidden;
}
#nav-user-info #language-selector:before {
    content: "";
    height: 16px;
    background: linear-gradient(#fff,hsla(0,0%,100%,.2));
    display: block;
    position: absolute;
    left: 7px;
    top: 0;
    right: 7px;
    border-radius: 8px;
}
#nav-user-info select {
	transition: var(--AN);
	border: none;
	background: none;
    color: var(--COLOR3);
	text-shadow: 0 1px #fff;
	position: relative;
	outline: none !important;
}

#nav-user-info>span {
	transition: var(--AN);
	margin-right: 6px;
	color: #fff0;
	background: #fff;
	padding: 8px 14px;
	border-radius: 50px;
	filter: drop-shadow(0 -1px 0 #fff);
}
#nav-user-info>span:hover {
	background: linear-gradient(#eff2f7, #d5dee9 40%, #d8e0ea 80%,#eff2f7);
	box-shadow: inset 0 3px 5px rgba(31, 45, 61, .11);
}
#nav-user-info>span a {
	color: var(--COLOR3);
	text-decoration: none;
	text-shadow: 0 1px #fff;
}
span.sign-out-link {
	padding: 8px 6px !important;
}

/* 导航栏 */
#site-nav>nav {
	bottom: 18px;
	right: auto;
	left: 220px;
}
#main-header a {
	color: var(--COLOR3);
	text-decoration: none;
}
#site-nav>nav>li+li {
    margin-left: 2px;
}
#main-header #site-nav>nav>li a {
	transition: var(--AN);
	border-radius: 50px;
	padding: 6px 16px;
}
#main-header #site-nav>nav>li>a:hover {
	background: var(--COLOR1);
    box-shadow: 0 5px 10px var(--COLOR2);
	color: #fff;
}
#site-nav>nav {
	bottom: 18px;
	right: auto;
	left: 220px;
}
#main-header a {
	color: var(--COLOR3);
	text-decoration: none;
}
#site-nav>nav>li+li {
    margin-left: 2px;
}
#main-header #site-nav>nav>li a {
	transition: var(--AN);
	border-radius: 50px;
	padding: 6px 16px;
}

li.with-submenu nav {
    position: absolute;
    right: 5px;
    border: 1px solid #cad1db;
    background: linear-gradient(#f0f2f7,#fff);
    text-shadow: 0 1px #fff;
    text-shadow: 0 1px var(--white_default);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 10px #1f2d3d1a, 0 1px #ffffff inset;
    transition: .25s;
    display: none;
    padding: 5px 0;
    z-index: 10;
}
li.with-submenu nav {
	transition: var(--AN);
    position: absolute;
    right: 5px;
    border: 1px solid #cad1db;
    background: linear-gradient(#f0f2f7,#fff);
    text-shadow: 0 1px #fff;
    text-shadow: 0 1px var(--white_default);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 10px #1f2d3d1a, 0 1px #ffffff inset;
    padding: 5px 0;
    z-index: 10;
	display: block !important;
	opacity: 0;
	height: 0;
}
nav a:hover+nav, li.with-submenu nav:hover {
	margin-top: 10px;
	opacity: 1;
	height: 140px;
}
li.with-submenu nav li a:hover {
	color: var(--COLOR3) !important;
}
li.with-submenu nav li a:active {
	color: #cad1db !important;
}

/* --主内容-- */
.sidebarred {
	margin-top: 60px;
}
section.text-content {
	margin-top: 80px;
}
section#script-info {
	margin-top: 80px;
}
.script-list, .user-list, .text-content, .discussion-list, section#script-info {
	border: none;
	box-shadow: 0 10px 13px rgba(31,45,61,.1), 0 0 1px rgba(31,45,61,.1);
	border-radius: 10px;
	overflow: hidden;
	padding: 1em;
}

/* 首页优化 */
#home-script-nav {
    padding: 0;
    border-bottom: none;
    margin: 40px auto 10px auto;
}
#home-script-nav:after {
    content: '';
	display: block;
	background: var(--COLOR4);
	height: 2px;
	width: 50px;
	margin: 0 auto;
	margin-top: 30px;
	border-radius: 50px;
}
.home-search input[type=search] {
	padding: 6px 40px 6px 12px;
    background: linear-gradient(#f0f2f7,#fff);
    box-shadow: inset 0 -2px #1f2d3d08, 0 2px #ffffff9e inset, 0 2px 4px #1f2d3d0f;
    border: 1px solid #cad1db;
	border-radius: 50px;
	font-size: medium;
	outline: none;
}
.home-search input[type=submit] {
    right: 5px;
    top: 2px;
    background: none;
    opacity: 1;
}
#home-top-sites {
    overflow: visible;
    margin: 10px 10px;
	color: var(--COLOR3);
}
#home-top-sites a {
	transition: var(--AN);
	text-decoration: none;
    margin: 0 2px;
	padding: 1.5px 6px;
	background-color: var(--COLOR4);
	color: var(--COLOR3);
	border-radius: 8px;
    box-shadow: inset 0 -2px 2px #1f2d3d1a, 0 1px 2px #1f2d3d5e;
}
#home-top-sites a:hover {
    box-shadow: inset 0 2px 2px #1f2d3d1a;
}
#home-top-sites a:active {
	color: #cad1db;
}
figure {
    padding: 5px;
	position: relative;
	background: linear-gradient(#e2e6ed,#e9f2ff 70%,#d3dae5 calc(100% - 8px),#fdfdff);
    box-shadow: inset 0 -4px 6px #1f2d3d26, 0 2px 6px 0 #00000045;
    border-radius: 10px;
}
figure:before {
    content: "";
    height: 25px;
    background: linear-gradient(#ffffffba,#ffffff1a);
    display: block;
    position: absolute;
    left: 4px;
    top: 0;
    right: 4px;
    border-radius: 50px;
}
figure:after {
    content: "";
    height: 125px;
    background: linear-gradient(#fff0,#ffffff87 70%, #ffffff63);
    display: block;
    position: absolute;
    left: 4px;
    top: 40px;
    right: 4px;
    border-radius: 0 0 0 100%;
}
figure figcaption {
	color: var(--COLOR3);
    text-shadow: 0 1px #fff;
}
figure img {
    border-radius: 6px;
}

/* 搜索结果 */
.sidebarred-main-content>p {
	margin-left: 1em;
	margin-right: 1em;
}
.script-list li:not(.ad-entry) {
    border-bottom: 1px solid var(--COLOR4);
    padding: 1em;
}
.script-list li:not(.ad-entry) article h2>a {
	text-decoration: none;
    font-weight: normal;
}
.script-list .description {
    font-weight: normal;
    margin: .5em 0;
    font-size: smaller;
	color: var(--COLOR3);
	word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
     overflow: hidden;
}
.inline-script-stats dt {
    font-weight: normal;
	color: var(--COLOR3);
}
.good-rating-count, .ok-rating-count, .bad-rating-count {
    padding: 0 0.4em;
    border: none;
    border-radius: 5px;
}

.sidebar {
    width: 220px;
    margin-top: 56px;
    padding: 0;
}
.sidebar .sidebar-search input[type=search] {
    background: #fff;
    box-shadow: 0 2px 4px #1f2d3d0f;
    border: none;
	border-radius: 50px;
	padding: 5px 35px 5px 12px;
	outline: none;
	font-size: 15px;
}
.sidebar .sidebar-search input[type=submit] {
    position: absolute;
    -moz-appearance: none;
    -webkit-appearance: none;
    right: 4px;
    top: 4px;
    opacity: 1;
}
.list-option-group {
	color: var(--COLOR3);
}
.list-option-group ul {
    background: #fff;
    box-shadow: 0 10px 15px rgba(31,45,61,.1), inset 0 0 0 1px hsla(0,0%,100%,.06);
    border-radius: 10px;
	border: none;
    perspective: 650px;
    position: relative;
    margin-bottom: 30px;
}
.list-option-group .list-current {
    border-left: 7px solid var(--COLOR1);
    box-shadow: 0 2px 5px rgba(31,45,61,.1), 0 0 0 -1px var(--COLOR2), 0 0 0 -25px var(--COLOR2);
    transition: all .25s, box-shadow 0s;
	background: linear-gradient(#fff,#f0f2f794);
    border-radius: 100px;
    border: 1px solid #cad1db;
	margin: 0 8px;
}
.list-option-group:hover .list-current {
	color: var(--COLOR1);
    border-color: var(--COLOR1);
    box-shadow: 0 2px 5px var(--COLOR2), 0 0 0 25px rgba(32,160,255,0), 0 0 0 25px rgba(32,160,255,0);
    transition: all 1s,box-shadow 1s ease-out .1s;
}
.list-option-group li+li {
    margin: .35em 0;
}
.list-option-group a {
	transition: var(--AN);
    padding: .35em 1.5em;
	text-decoration: none;
	color: var(--COLOR3);
}
.list-option-group a:hover {
	background: none;
	box-shadow: inset 0 -2px #dddddd6e, inset 0 2px #eeeeee91;
}

/* 脚本详情 */
#script-info header h2 {
    margin: 0.25em 0 0 0;
    font-size: xx-large;
	font-weight: normal;
	color: var(--COLOR1);
}
#script-description {
	color: var(--COLOR3);
}
.install-link {
	transition: var(--AN);
    width: 136px;
    height: 50px;
    position: relative;
    background: var(--COLOR1);
    border-radius: 100px;
    box-shadow: inset 0 -5px 8px #00000014, 0 4px 6px var(--COLOR2);
	padding: 0 !important;
	text-align: center;
	line-height: 50px !important;
	overflow: hidden;
}
.install-link:before {
	transition: var(--AN);
    content: "";
    height: 17px;
    background: linear-gradient(#ffffff59,#fff0);
    display: block;
    position: absolute;
    left: 12px;
    top: 0;
    right: 12px;
    border-radius: 40px;
}
.install-link:after {
	transition: var(--AN);
    content: "";
    height: 16px;
    background: linear-gradient(#fff0,#ffffff38);
    display: block;
    position: absolute;
    left: 30px;
    bottom: 0;
    right: 0;
    border-radius: 0 0 0 100%;
}
.install-link:hover {
    background: var(--COLOR1);
    box-shadow: 0 4px 6px var(--COLOR2) !important;
}
.install-link:hover:before {
    height: 17px;
    background: linear-gradient(#fff6,#fff0);
    left: 15px;
    top: 1px;
    right: 15px;
}
.install-link:hover:after {
    background: linear-gradient(#fff0,#ffffff36);
}
.install-link:active {
    background: var(--COLOR1);
    box-shadow: inset 0 8px 13px #00000030 !important;
}
.install-link:active:before {
    height: 17px;
    background: linear-gradient(#c9c9c966,#fff0);
    left: 14px;
    top: 1px;
    right: 14px;
}
.install-link:active:after {
    background: linear-gradient(#fff0,#ffffff17);
}
.install-link:focus {
    box-shadow: inset 0 8px 13px #00000030 !important;
}
.install-help-link {
	transition: var(--AN);
    width: 30px;
    height: 30px;
    position: relative;
    background: var(--COLOR2) !important;
	color: var(--COLOR1) !important;
    border-radius: 100px;
    box-shadow: none !important;
	padding: 0 !important;
	text-align: center;
	line-height: 30px !important;
	overflow: hidden;
	margin: 10px;
}
form.script-in-sets {
	color: var(--COLOR3);
}
form.script-in-sets select, form.script-in-sets input[type="submit"] {
    height: 30px;
	color: var(--COLOR3);
    border-radius: 7px;
    box-shadow: inset 0 -2px 1px #00000030;
	border: solid 1px #00000030;
	margin: 2.5px;
	outline: none;
	background: #fff0;
}
form.script-in-sets select:active, form.script-in-sets input[type="submit"]:active {
    box-shadow: inset 0 2px 1px #00000030;
	border: solid 1px #00000030;
	outline: none;
}
div#script-feedback-suggestion a, div#script-meta a {
	color: var(--COLOR3);
}

.user-content {
    background: var(--COLOR4);
    border-left: none;
    padding: 1.5em;
	border-radius: 10px;
}

.jslghtbx-nooverflow {
	transition: var(--AN);
}
.jslghtbx.jslghtbx-active {
    background-color: #000000b3;
}
@media screen and (min-width: 451px) {
	.jslghtbx-next.jslghtbx-no-img {
		border-top: 20px solid transparent;
		border-bottom: 20px solid transparent;
		border-left: 32px solid #ffffffd4;
		top: 50% !important;
	}
	.jslghtbx-prev.jslghtbx-no-img {
	    border-top: 20px solid transparent;
	    border-bottom: 20px solid transparent;
	    border-right: 32px solid #ffffffd4;
		top: 50% !important;
	}
}
.jslghtbx-contentwrapper>img {
    background: #ffffff21;
    padding: .5em;
    padding-top: 0.5em;
    padding-right: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
	border-radius: 6px;
}

ul#script-links.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    top: 0;
}
ul#script-links.tabs>li {
    height: 41px;
}
.tabs .current {
    box-shadow: none;
    border-top: none;
	background: none;
}
.tabs>li>a, .tabs>span>a, .tabs>li>span {
	background: linear-gradient(#f3f9fe,#e6ecf5 70%, #f8faff);
	margin-right: 12px;
	margin-top: 0 !important;
    padding: 0 18px !important;
	color: var(--COLOR3);
	text-shadow: 0 1px #fff;
	line-height: 41px;
	border-radius: 8px;
	box-shadow: inset 0 1px 0 #fff, inset 0 -3px 2px #abb7bf, 0 1px 7px #0000000d;
	border: none;
	height: 41px;
}
.tabs>li>a:active, .tabs>span>a:active {
	background: linear-gradient(#d2dadf,#dde2ea 90%,#f2f5fb);
	box-shadow: inset 0 3px 2px #0000001c;
}
.tabs>li.current>span, .tabs>span.current>a {
	background: linear-gradient(#f3f3f3,#fbfcff 90%,#fff);
	box-shadow: inset 0 1px 0 #fff, inset 0 -3px 2px #c4d5e1;
}

.script-discussion-list .discussion-list-item {
    border: none !important;
}
.discussion-list-container.discussion-not-read {
	border-bottom: solid 1px var(--COLOR4);
}

.rating-icon {
    border: none;
    border-radius: 5px;
    font-weight: 800;
    padding: 3px 0;
    position: relative;
    top: 0;
}

.pagination {
	margin-top: 15px;
}
.pagination>a {
    background-color: var(--COLOR4);
	color: var(--COLOR3);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
	box-shadow: inset 0 -2px 1px #00000030;
	border: solid 1px #00000030;
}
.pagination>a:hover {
    background-color: var(--COLOR4);
}
.pagination>a:active {
    background-color: var(--COLOR4);
	box-shadow: inset 0 2px 1px #00000030;
	border: solid 1px #00000030;
}
.pagination>a:focus {
    background-color: #d7e0e7;
}

.previewable textarea {
	margin-top: 10px;
	border: solid 1px #d7e0e7;
    border-radius: 8px;
}

/* --修复-- */
#main-header, #main-header a, #main-header a:visited, #main-header a:active {
	color: var(--COLOR3);
}

}