打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
OnlyOTO留言 | 贡献
无编辑摘要
OnlyOTO留言 | 贡献
无编辑摘要
 
(未显示同一用户的12个中间版本)
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 这里放置的CSS将应用于所有皮肤 */


/* 首行缩进 */
div.textIndent p {
    text-indent: 2em;
    margin: 0.5em 0;
}


/* 首字下沉样式 */
/* USERNAME */
.dropCap::first-letter {
$( function() {
  float: left;
    if ( mw.user.isNamed() ) {
  font-size: 3.2em !important;
        $( '.insertusername' ).text( mw.user.getName() );
  line-height: 0.85em !important;
    } else {
  margin-right: 0.1em !important;
        $( '.insertusername' ).text( '访客' );
  font-weight: bold;
    }
  color: #000;
} );
 
/* --- Bookshelf Component Styles --- */
/* 组件的顶级包裹器,用于限定所有样式的范围 */
.bookshelf-component-wrapper {
    /* 可以在这里添加组件外围的边距等 */
}
}
 
 
/* 书架容器 */
/* 角色信息框 - 基于Infobox元模板 适配SimmcWIKI专属风格 */
.bookshelf-component-wrapper .bookshelf {
.infobox {
     display: flex;
     /* 复用首页同款透明边框+像素化渲染 */
     align-items: flex-end;
    border: 4vmin solid transparent;
     gap: 10px;
    border-radius: 4vmin;
     width: 80vw;
     border-image:url(https://huiji-public.huijistatic.com/simmc/uploads/8/8a/HomePageBoarderImage.png) 170 round;
     max-width: 900px;
     background-color: #fbf2db;
     padding: 20px 20px 15px 20px; /* 底部增加padding以容纳滑动条(即使隐藏) */
     color: #361d07;
     border-bottom: 10px solid #8d6e63;
     /* 基础布局 */
    margin: 0 0 0.5em 1em;
     padding: 0.5em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.6em;
    width: 22em;
    /* MC专属字体+像素化 */
     font-family: Minecraft, sans-serif;
    image-rendering: pixelated;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
     box-sizing: border-box;
     box-sizing: border-box;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
}
/* 信息框外标题 title */
.bookshelf-component-wrapper .bookshelf::-webkit-scrollbar {
.infobox-title {
     display: none; /* Chrome/Safari */
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    color: #441f74;
    margin-bottom: 0.5em;
     font-family: Minecraft, sans-serif;
}
}
/* 信息框内标题 above + 子标题subheader */
.infobox-above {
/* 单本书的容器 */
     text-align: center;
.bookshelf-component-wrapper .book {
     font-size: 1.3em;
     position: relative;
     font-weight: bold;
     display: block;
     padding: 0.3em;
     color: white;
     color: #441f74;
     z-index: 1;
    border-bottom: 2px solid #361d0733;
     transition: transform 0.3s ease-out, z-index 0s 0.3s;
     margin-bottom: 0.5em;
     cursor: pointer;
}
}
.infobox-subheader {
.bookshelf-component-wrapper .book:hover {
     text-align: center;
     transform: translateY(-15px);
     font-weight: bold;
     z-index: 10;
     padding: 0.2em;
     transition: transform 0.3s ease-out, z-index 0s;
    color: #361d07;
    margin: 0.3em 0;
}
}
/* 顶栏header - 区分于标题的强调样式 */
.infobox-header {
/* 书脊 */
     text-align: center;
.bookshelf-component-wrapper .book-spine {
     padding: 0.4em;
     width: 45px;
     background-color: #221b0066;
     height: 240px;
    color: #f6c628;
     background-color: #a1887f; /* 默认颜色 */
     border-radius: 2vmin;
     border-radius: 4px 4px 0 0;
     margin: 0.6em 0 0.3em;
     box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.2);
     font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 16px;
     font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}
}
/* 标签label + 数据data 行样式 */
.infobox-label {
/* 弹出的信息卡片 */
     text-align: right;
.bookshelf-component-wrapper .book-info {
     padding: 0.3em 0.8em;
     position: absolute;
     white-space: nowrap;
    left: 100%;
     vertical-align: top;
     bottom: 20px;
     color: #361d07;
     width: 250px;
     background-color: #221b0022;
     background-color: #fff;
     border-radius: 1vmin;
     color: #424242;
     font-weight: 500;
     padding: 20px;
    border-radius: 0 6px 6px 0;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
     box-sizing: border-box;
    opacity: 0;
    transform: translateX(-10px);
     pointer-events: none;
    transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s;
}
}
.infobox-data {
.bookshelf-component-wrapper .book:hover .book-info {
    padding: 0.3em 0.5em;
     opacity: 1;
    vertical-align: top;
     transform: translateX(0);
     color: #361d07;
     width: 100%;
}
}
/* 图片+说明文字 - 像素化渲染适配MC图片 */
.bookshelf-component-wrapper .book-info h3 {
.infobox-image {
     margin: 0 0 10px 0;
     text-align: center;
     font-size: 1.1em;
     padding: 0.5em 0;
     color: #37474f;
     image-rendering: pixelated;
}
}
.infobox-caption {
.bookshelf-component-wrapper .book-info p {
    font-size: 85%;
     margin: 0;
    text-align: center;
     font-size: 0.9em;
     color: #361d07;
     line-height: 1.6;
     margin-top: 0.3em;
     font-style: italic;
}
}
/* 信息框底部below */
.infobox-below {
.bookshelf-component-wrapper .book:nth-child(1) .book-spine { background-color: #78909c; }
     text-align: center;
.bookshelf-component-wrapper .book:nth-child(2) .book-spine { background-color: #8d6e63; }
    font-weight: bold;
.bookshelf-component-wrapper .book:nth-child(3) .book-spine { background-color: #66bb6a; }
     padding: 0.5em;
.bookshelf-component-wrapper .book:nth-child(4) .book-spine { background-color: #5c6bc0; }
    color: #441f74;
.bookshelf-component-wrapper .book:nth-child(5) .book-spine { background-color: #f06292; }
     border-top: 2px solid #361d0733;
.bookshelf-component-wrapper .book:nth-child(6) .book-spine { background-color: #FFFAFA; }
     margin-top: 0.5em;
.bookshelf-component-wrapper .book:nth-child(7) .book-spine { background-color: #FFE4C4; }
.bookshelf-component-wrapper .book:nth-child(8) .book-spine { background-color: #6495ED; }
.bookshelf-component-wrapper .book:nth-child(9) .book-spine { background-color: #B0E0E6; }
.bookshelf-component-wrapper .book:nth-child(10) .book-spine { background-color: #00FF7F; }
.bookshelf-component-wrapper .book:nth-child(11) .book-spine { background-color: #DEB887; }
.bookshelf-component-wrapper .book:nth-child(12) .book-spine { background-color: #FF6347; }
.bookshelf-component-wrapper .book:nth-child(13) .book-spine { background-color: #66bb6a; }
.bookshelf-component-wrapper .book:nth-child(14) .book-spine { background-color: #5c6bc0; }
.bookshelf-component-wrapper .book:nth-child(15) .book-spine { background-color: #f06292; }
/* 移动端适配 */
@media (max-width: 600px) {
    .bookshelf-component-wrapper .bookshelf {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
        gap: 8px;
     }
    .bookshelf-component-wrapper .book-spine {
        width: 40px;
        height: 200px;
        font-size: 14px;
     }
    .bookshelf-component-wrapper .book:hover {
        transform: translateY(-10px);
    }
    .bookshelf-component-wrapper .book-info {
        width: 200px;
        bottom: 10px;
        padding: 15px;
     }
    .bookshelf-component-wrapper .book-info h3 { font-size: 1em; }
     .bookshelf-component-wrapper .book-info p { font-size: 0.85em; }
}
.bookshelf-component-wrapper a:link {
    color: white;  
}
}
/* 适配Infobox元模板的自定义样式参数(覆盖默认) */
.bookshelf-component-wrapper a:visited {
.infobox [style] {
     color: lightgray;
    font-family: Minecraft, sans-serif !important;
     image-rendering: pixelated !important;
}
}
/* 移动端适配 - 取消浮动,自适应宽度 */
.bookshelf-component-wrapper a:hover {
@media screen and (max-width: 768px) {
     color: #ffffff;  
     .infobox {
    text-decoration: underline;  
        float: none;
}
        clear: none;
.bookshelf-component-wrapper a.new {
        margin: 1em auto;
    color: red;  
        width: 95%;
        border-width: 2vmin;
        font-size: 85%;
    }
}
}
/* 兼容表格内嵌套样式,避免冲突 */
.JieYueDengJi a:link {
.infobox table {
     color: white;  
     width: 100%;
    border-collapse: collapse;
}
}
.infobox tr {
     margin: 0.2em 0;
.JieYueDengJi a:visited {
     color: white;  
}
}
.infobox td {
     border: 0 !important;
.JieYueDengJi a:hover {
     color: #ffffff; /* 鼠标悬停时颜色 */
}
}

2026年3月30日 (一) 20:35的最新版本

/* 这里放置的CSS将应用于所有皮肤 */


/* USERNAME */
$( function() {
    if ( mw.user.isNamed() ) {
        $( '.insertusername' ).text( mw.user.getName() );
    } else {
        $( '.insertusername' ).text( '访客' );
    }
} );

/* --- Bookshelf Component Styles --- */
 
/* 组件的顶级包裹器,用于限定所有样式的范围 */
.bookshelf-component-wrapper {
    /* 可以在这里添加组件外围的边距等 */
}
 
/* 书架容器 */
.bookshelf-component-wrapper .bookshelf {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 80vw;
    max-width: 900px;
    padding: 20px 20px 15px 20px; /* 底部增加padding以容纳滑动条(即使隐藏) */
    border-bottom: 10px solid #8d6e63;
    box-sizing: border-box;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-width: none; /* Firefox */
}
.bookshelf-component-wrapper .bookshelf::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
 
/* 单本书的容器 */
.bookshelf-component-wrapper .book {
    position: relative;
    display: block;
    color: white;
    z-index: 1;
    transition: transform 0.3s ease-out, z-index 0s 0.3s;
    cursor: pointer;
}
.bookshelf-component-wrapper .book:hover {
    transform: translateY(-15px);
    z-index: 10;
    transition: transform 0.3s ease-out, z-index 0s;
}
 
/* 书脊 */
.bookshelf-component-wrapper .book-spine {
    width: 45px;
    height: 240px;
    background-color: #a1887f; /* 默认颜色 */
    border-radius: 4px 4px 0 0;
    box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}
 
/* 弹出的信息卡片 */
.bookshelf-component-wrapper .book-info {
    position: absolute;
    left: 100%;
    bottom: 20px;
    width: 250px;
    background-color: #fff;
    color: #424242;
    padding: 20px;
    border-radius: 0 6px 6px 0;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s;
}
.bookshelf-component-wrapper .book:hover .book-info {
    opacity: 1;
    transform: translateX(0);
}
.bookshelf-component-wrapper .book-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #37474f;
}
.bookshelf-component-wrapper .book-info p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.6;
}
 
.bookshelf-component-wrapper .book:nth-child(1) .book-spine { background-color: #78909c; } 
.bookshelf-component-wrapper .book:nth-child(2) .book-spine { background-color: #8d6e63; }
.bookshelf-component-wrapper .book:nth-child(3) .book-spine { background-color: #66bb6a; }
.bookshelf-component-wrapper .book:nth-child(4) .book-spine { background-color: #5c6bc0; }
.bookshelf-component-wrapper .book:nth-child(5) .book-spine { background-color: #f06292; }
.bookshelf-component-wrapper .book:nth-child(6) .book-spine { background-color: #FFFAFA; } 
.bookshelf-component-wrapper .book:nth-child(7) .book-spine { background-color: #FFE4C4; }
.bookshelf-component-wrapper .book:nth-child(8) .book-spine { background-color: #6495ED; }
.bookshelf-component-wrapper .book:nth-child(9) .book-spine { background-color: #B0E0E6; }
.bookshelf-component-wrapper .book:nth-child(10) .book-spine { background-color: #00FF7F; }
.bookshelf-component-wrapper .book:nth-child(11) .book-spine { background-color: #DEB887; } 
.bookshelf-component-wrapper .book:nth-child(12) .book-spine { background-color: #FF6347; }
.bookshelf-component-wrapper .book:nth-child(13) .book-spine { background-color: #66bb6a; }
.bookshelf-component-wrapper .book:nth-child(14) .book-spine { background-color: #5c6bc0; }
.bookshelf-component-wrapper .book:nth-child(15) .book-spine { background-color: #f06292; }
/* 移动端适配 */
@media (max-width: 600px) {
    .bookshelf-component-wrapper .bookshelf {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start;
        gap: 8px;
    }
    .bookshelf-component-wrapper .book-spine {
        width: 40px;
        height: 200px;
        font-size: 14px;
    }
    .bookshelf-component-wrapper .book:hover {
        transform: translateY(-10px);
    }
    .bookshelf-component-wrapper .book-info {
        width: 200px;
        bottom: 10px;
        padding: 15px;
    }
    .bookshelf-component-wrapper .book-info h3 { font-size: 1em; }
    .bookshelf-component-wrapper .book-info p { font-size: 0.85em; }
}
 
 
 
.bookshelf-component-wrapper a:link {
    color: white; 
}
.bookshelf-component-wrapper a:visited {
    color: lightgray;
}
.bookshelf-component-wrapper a:hover {
    color: #ffffff; 
    text-decoration: underline; 
}
.bookshelf-component-wrapper a.new {
    color: red; 
}
.JieYueDengJi a:link {
    color: white; 
}
 
.JieYueDengJi a:visited {
    color: white; 
}
 
.JieYueDengJi a:hover {
    color: #ffffff; /* 鼠标悬停时颜色 */
}