MediaWiki:Gadget-Backtotop.css:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“.backToTop { display: none; width: 20px; padding: 5px 0; background-color: #000; color: #fff; font-size: 12px; text-align: center; po…”
 
Kangkk​(留言 | 贡献)
无编辑摘要
第1行: 第1行:
.backToTop {
.page-scroll-controls {
    display: none;
position: fixed;
    width: 20px;
right: 1.5rem;
    padding: 5px 0;
bottom: 1.5rem;
    background-color: #000;
z-index: 100;
    color: #fff;
display: flex;
    font-size: 12px;
flex-direction: column;
    text-align: center;
gap: 0.5rem;
    position: fixed;
}
    _position: absolute;
 
    right: 0;
.page-scroll-button {
    bottom: 100px;
padding: 0.65rem 0.9rem;
    _bottom: "auto";
border: 1px solid #a2a9b1;
    cursor: pointer;
border-radius: 0.35rem;
    opacity: .6;
background: #fff;
    filter: Alpha(opacity=60);
color: #202122;
font: inherit;
cursor: pointer;
box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}
 
.page-scroll-button:hover {
background: #f8f9fa;
}
 
.page-scroll-button:focus-visible {
outline: 2px solid #36c;
outline-offset: 2px;
}
 
.page-scroll-button[hidden] {
display: none;
}
 
@media (max-width: 640px) {
.page-scroll-controls {
right: 1rem;
bottom: 1rem;
}
}
}

2026年11月29日 (日) 16:15的版本

.page-scroll-controls {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.page-scroll-button {
	padding: 0.65rem 0.9rem;
	border: 1px solid #a2a9b1;
	border-radius: 0.35rem;
	background: #fff;
	color: #202122;
	font: inherit;
	cursor: pointer;
	box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
}

.page-scroll-button:hover {
	background: #f8f9fa;
}

.page-scroll-button:focus-visible {
	outline: 2px solid #36c;
	outline-offset: 2px;
}

.page-scroll-button[hidden] {
	display: none;
}

@media (max-width: 640px) {
	.page-scroll-controls {
		right: 1rem;
		bottom: 1rem;
	}
}