MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
| 第24行: | 第24行: | ||
top:calc(40px); | top:calc(40px); | ||
background: rgba(250, 250, 250, 0.7); | background: rgba(250, 250, 250, 0.7); | ||
transition: left 0.2s ease, opacity 0.2s ease; | transition: left 0.2s ease 0.2s, opacity 0.2s ease 0.2s; | ||
z-index: 99; | z-index: 99; | ||
cursor: pointer; | cursor: pointer; | ||
| 第40行: | 第40行: | ||
left: 100%; | left: 100%; | ||
top: 50%; | top: 50%; | ||
transform: | transform: translate(0%,-50%); | ||
height: 14rem; | height: 14rem; | ||
width: 1rem; | width: 1rem; | ||
| 第47行: | 第47行: | ||
border-radius: 0 0.75rem 0.75rem 0; | border-radius: 0 0.75rem 0.75rem 0; | ||
opacity: 1; | opacity: 1; | ||
transition: left 0.2s ease, opacity 0.2s ease; | transition: left 0.2s ease, opacity 0.2s ease, transform 0.2s ease; | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
| 第55行: | 第55行: | ||
.citizen-page-sidebar:hover:before { | .citizen-page-sidebar:hover:before { | ||
transform: translate(-100%,-50%); | |||
opacity: 0; | |||
} | } | ||
} | } | ||
2026年4月10日 (五) 23:09的版本
.mw-ui-icon-wikimedia-language:before{
-webkit-mask-image: url(https://lostmediawiki.cn/images/0/03/Icon_%E7%AE%80%E7%B9%81%E8%BD%AC%E6%8D%A2.svg);
mask-image: url(https://lostmediawiki.cn/images/0/03/Icon_%E7%AE%80%E7%B9%81%E8%BD%AC%E6%8D%A2.svg);
}
.citizen-page-languages .citizen-dropdown-summary::after{
visibility: hidden;
}
/*优化电脑端*/
@media screen and (min-width: 1120px) {
.citizen-toc-enabled .citizen-body-container {
grid-template-areas:
'content'
'footer';
grid-template-columns: minmax(0, var(--width-layout));
}
.citizen-page-sidebar {
position: fixed;
width: var(--width-toc);
height: 100%;
left: calc(-1 * var(--width-toc));
top:calc(40px);
background: rgba(250, 250, 250, 0.7);
transition: left 0.2s ease 0.2s, opacity 0.2s ease 0.2s;
z-index: 99;
cursor: pointer;
contain: unset;
box-shadow: -2px 0 5px 0 var(--border-color-base);
}
.citizen-page-sidebar:hover {
left: 0;
}
.citizen-page-sidebar:before {
content: "◀";
position: absolute;
left: 100%;
top: 50%;
transform: translate(0%,-50%);
height: 14rem;
width: 1rem;
color: var(--color-surface-0);
background: var(--color-base);
border-radius: 0 0.75rem 0.75rem 0;
opacity: 1;
transition: left 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
display: flex;
justify-content: center;
align-items: center;
font-size: 0.6rem;
}
.citizen-page-sidebar:hover:before {
transform: translate(-100%,-50%);
opacity: 0;
}
}