MediaWiki:Citizen.css

来自失传媒体中文维基
跳转到导航 跳转到搜索

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
.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: color-mix(in oklch, var(--color-surface-0), transparent 30%);
    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 0.2s, opacity 0.2s ease 0.2s, transform 0.2s ease 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.6rem;
}

.citizen-page-sidebar:hover:before {
    transition: left 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    transform: translate(-100%,-50%);
    opacity: 0;
}
    
}

tbody tr th{
	background: var(--color-surface-3);
}

html.skin-theme-clientpref-night img.mw-logo-icon{
	    filter: brightness(0) saturate(100%) invert(87%) sepia(12%) saturate(200%) hue-rotate(182deg) brightness(100%) contrast(90%);
}

/*侧栏*/

.citizen-menu__heading{
	background-color: var(--background-color-button-quiet--hover);
}

/* ==================== 统一基础样式 ==================== */
#citizen-main-menu .citizen-menu__content li[id^="n-"] a span:before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 14px;
  opacity: 0.8;
}

/* 所有页面 */
#citizen-main-menu .citizen-menu__content #n-所有页面 a span:before {
  content: "\f07b";
}
/* 最近创建 */
#citizen-main-menu .citizen-menu__content #n-最近创建 a span:before {
  content: "\f017";
}
/* 工作中的页面 */
#citizen-main-menu .citizen-menu__content #n-工作中的页面 a span:before {
  content: "\f0ad";
}
/* 归档记录 */
#citizen-main-menu .citizen-menu__content #n-归档记录 a span:before {
  content: "\f2ed";
}
/* 最近评论 */
#citizen-main-menu .citizen-menu__content #n-最近评论 a span:before {
  content: "\f075";
}
/* 通告 */
#citizen-main-menu .citizen-menu__content #n-通告 a span:before {
  content: "\f0a1";
}
/* 讨论区 */
#citizen-main-menu .citizen-menu__content #n-讨论区 a span:before {
  content: "\f0c0";
}
/* 指导索引 */
#citizen-main-menu .citizen-menu__content #n-指导索引 a span:before {
  content: "\f02d";
}
/* 创建词条 */
#citizen-main-menu .citizen-menu__content #n-创建词条 a span:before {
  content: "\f303";
}
/* 维基语法 */
#citizen-main-menu .citizen-menu__content #n-维基语法 a span:before {
  content: "\f121";
}
/* 编者入门 */
#citizen-main-menu .citizen-menu__content #n-编者入门 a span:before {
  content: "\f19d";
}
/* 站规 */
#citizen-main-menu .citizen-menu__content #n-站规 a span:before {
  content: "\f0e3";
}
/* 词条规范 */
#citizen-main-menu .citizen-menu__content #n-词条规范 a span:before {
  content: "\f46d";
}
/* 反抄袭政策 */
#citizen-main-menu .citizen-menu__content #n-反抄袭政策 a span:before {
  content: "\f1f9";
}
/* 常见问题解答 */
#citizen-main-menu .citizen-menu__content #n-常见问题解答 a span:before {
  content: "\f0eb";
}
/* 标签申请 */
#citizen-main-menu .citizen-menu__content #n-标签申请 a span:before {
  content: "\f02c";
}
/* 文件列表 */
#citizen-main-menu .citizen-menu__content #n-文件列表 a span:before {
  content: "\f1c5";
}
/* 编辑侧栏 */
#citizen-main-menu .citizen-menu__content #n-编辑侧栏 a span:before {
  content: "\f03a";
}
/* 通用CSS */
#citizen-main-menu .citizen-menu__content #n-通用CSS a span:before {
  content: "\f121";
}
/* 主题CSS */
#citizen-main-menu .citizen-menu__content #n-主题CSS a span:before {
  content: "\f121";
}