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

MediaWiki:Common.css:修订间差异

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


/* 首行缩进 */
 
div.textIndent p {
/* USERNAME */
     text-indent: 2em;
$( function() {
     margin: 0.5em 0;
    if ( mw.user.isNamed() ) {
        $( '.insertusername' ).text( mw.user.getName() );
     } else {
        $( '.insertusername' ).text( '访客' );
     }
} );
 
/* --- Bookshelf Component Styles --- */
/* 组件的顶级包裹器,用于限定所有样式的范围 */
.bookshelf-component-wrapper {
    /* 可以在这里添加组件外围的边距等 */
}
}
 
/* 首字下沉样式 */
/* 书架容器 */
.dropCap::first-letter {
.bookshelf-component-wrapper .bookshelf {
  float: left;
    display: flex;
  font-size: 3.2em !important;
    align-items: flex-end;
  line-height: 0.85em !important;
    gap: 10px;
  margin-right: 0.1em !important;
    width: 80vw;
  font-weight: bold;
    max-width: 900px;
  color: #000;
    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 {
/* 融合维基风格的Infobox角色信息框样式 - 适配维基百科Infobox元模板 */
     display: none; /* Chrome/Safari */
.infobox {
    border: 4vmin solid transparent;
    border-radius: 4vmin;
    border-image:url(https://huiji-public.huijistatic.com/simmc/uploads/8/8a/HomePageBoarderImage.png) 170 round;
    background-color: #fbf2db;
    color: #361d07;
    margin: 0 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 22em;
    font-family: Minecraft, sans-serif;
    image-rendering: pixelated;
     box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
}
/* 信息框标题/顶栏 */
.infobox-header, .infobox-above {
/* 单本书的容器 */
     text-align: center;
.bookshelf-component-wrapper .book {
     font-size: 125%;
     position: relative;
     font-weight: bold;
    display: block;
     padding: 0.2em;
     color: white;
     color: #441f74; /* 复用维基强调色 */
     z-index: 1;
     transition: transform 0.3s ease-out, z-index 0s 0.3s;
     cursor: pointer;
}
}
/* 子标题 */
.bookshelf-component-wrapper .book:hover {
.infobox-subheader {
     transform: translateY(-15px);
     text-align: center;
     z-index: 10;
     font-weight: bold;
     transition: transform 0.3s ease-out, z-index 0s;
     padding: 0.2em;
}
}
/* 标签列 - 右对齐不换行,复用维基配色 */
.infobox-label {
/* 书脊 */
     text-align: right;
.bookshelf-component-wrapper .book-spine {
     padding: 0.2em 0.5em;
     width: 45px;
     white-space: nowrap;
    height: 240px;
     vertical-align: top;
    background-color: #a1887f; /* 默认颜色 */
     color: #361d07;
    border-radius: 4px 4px 0 0;
     background-color: #221b0022; /* 浅半透明背景 */
     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;
}
}
/* 数据列 */
.infobox-data {
/* 弹出的信息卡片 */
     padding: 0.2em 0.5em;
.bookshelf-component-wrapper .book-info {
     vertical-align: top;
    position: absolute;
     color: #361d07;
    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 {
.infobox-image {
     opacity: 1;
     text-align: center;
     transform: translateX(0);
     padding: 0.2em;
    image-rendering: pixelated; /* 图片像素化 */
}
}
.infobox-caption {
.bookshelf-component-wrapper .book-info h3 {
     font-size: 90%;
     margin: 0 0 10px 0;
     text-align: center;
     font-size: 1.1em;
     color: #361d07;
     color: #37474f;
}
}
/* 底部文本 */
.bookshelf-component-wrapper .book-info p {
.infobox-below {
     margin: 0;
     text-align: center;
     font-size: 0.9em;
     font-weight: bold;
     line-height: 1.6;
    padding: 0.2em;
     color: #441f74;
}
}
.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 screen and (max-width: 768px) {
@media (max-width: 600px) {
     .infobox {
     .bookshelf-component-wrapper .bookshelf {
         float: none;
         width: 100%;
         clear: none;
         padding-left: 15px;
         margin: 0 auto;
         padding-right: 15px;
         width: 95%;
        justify-content: flex-start;
         border-width: 2vmin;
        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; /* 鼠标悬停时颜色 */
}
}

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; /* 鼠标悬停时颜色 */
}