Template:Prev/style.css

模板页面
< Template:Prev
Aurora Lemon讨论 | 贡献2024年3月31日 (日) 18:02的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
.template-prevnext {
	margin-top: 0.6rem;
	margin-bottom: 0.8rem;
	padding: var( --space-xs );
	background-color: var( --color-surface-2 );
	border-radius: var( --border-radius--medium );
	font-size: 0.875rem;
	line-height: 1.375;
	display: grid;
	align-items: center;
	grid-template-areas: 'prev current next';
	grid-template-columns: 1fr 2fr 1fr;
}

.template-prevnext__prev,
.template-prevnext__next {
	position: relative;
	border-radius: var( --border-radius--small );
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.template-prevnext__prev,
.template-prevnext__current,
.template-prevnext__next {
	padding: var( --space-sm );
}

.template-prevnext__prev {
	grid-area: prev;
}

.template-prevnext__current {
	grid-area: current;
	text-align: center;
}

.template-prevnext__next {
	grid-area: next;
	justify-content: flex-end;
	text-align: end;
}
	
.template-prevnext__prev,
.template-prevnext__next {
	height: 100%;
}

.template-prevnext__link:hover {
	background-color: var( --background-color-quiet--hover );
}

.template-prevnext__link:hover > .template-prevnext__icon {
	opacity: var( --opacity-icon-base--hover );
}

.template-prevnext__prev:hover > .template-prevnext__icon {
	transform: translateX( -2px );
}

.template-prevnext__next:hover > .template-prevnext__icon {
	transform: translateX( 2px );
}

.template-prevnext__link:active {
	background-color: var( --background-color-quiet--active );
}

.template-prevnext__link:active > .template-prevnext__icon {
	opacity: var( --opacity-icon-base--active );
}

.template-prevnext__icon {
	opacity: var( --opacity-icon-base );
	transition: transform 250ms ease;
}

.template-prevnext__title {
	color: var( --color-base--emphasized );
	font-weight: 500;
}

.template-prevnext__link .template-prevnext__title {
	color: var( --color-primary );
}

.template-prevnext__link--new .template-prevnext__title {
	color: var( --color-link-new );
}

.template-prevnext__desc {
	color: var( --color-base--subtle );
	font-size: 0.8125rem;
}

.template-prevnext__linkoverlay {
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.template-prevnext__linkoverlay > a {
    display: block;
    font-size: 0;
    height: 100%;
}

html.skin-citizen-dark .template-prevnext__icon img {
	filter: invert( 1 );
}


@media screen and (max-width: 720px) {
	.template-prevnext {
		grid-template-areas:
			'current current'
			'prev next';
		grid-template-columns: repeat(2, 1fr);
	}
	
	.template-prevnext__current {
		border-bottom: 1px solid var( --border-color-base );
	}
}
为了让您的浏览体验更加高效、方便和个性化,遵照《中华人民共和国网络安全法》和《信息安全技术个人信息安全规范》,我们需要您允许本站使用Cookies。在某些情况下,Cookies是使网站正常运行的必要条件。