MediaWiki:Common.css:修订间差异

(页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板))
(// Edit via Wikiplus)
 
(未显示3个用户的135个中间版本)
第1行: 第1行:
/* 这里是全站的通用样式 */
/* 本样式表来源于 MCBBS Wiki (https://mcbbs.wiki/wiki/MediaWiki:Common.css) */
/* 以 知识共享 署名-非商业-相同方式共享 4.0 (CC BY-NC-SA 4.0) 协议共享 */
:root {
    --themecolor: #A8CDFF;
    --bgtop: 46px;
    --bgleft: 20px;
    --lightcolor: #FDF6E6;
    --bgcolor: #fbf2dc;
    --bgcolor1: #E9D3AD;
    --bgcolor2: #E7D3B1;
    --bgcolor3: #E9CB97;
    --linecolor: #CFB78E;
    --fontfamily: sans-serif,'Microsoft Yahei',apple color emoji,segoe ui emoji,segoe ui symbol;
    --fontfamily2: 'Linux Libertine','Georgia','Times',serif,sans-serif,Tahoma;
    --articlefont: Lora,'Palatino Linotype','Book Antiqua','New York','DejaVu serif','Source Han Serif','Source Han Serif SC';
}
body {
    background-color: var(--themecolor);
}
/* 删除右上角帮助 */
#mw-indicator-mw-helplink {
    display:none;
}
dfn {
dfn {
     font-style: Sans-serif;
     font-style: Sans-serif;
}
/* LOGO */
#p-logo a{
    background-size: contain;
}
#p-logo{
    margin-top: 24px;
}
}


/* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */
.ns-3100 #bodyContent:not(#siteNotice):before {
table.navbox {
    content: "页面废存";
     border: 1px solid #aaa;
    position: fixed;
     clear: both;
    font-size: 100px;
     margin: auto;
    font-weight: bold;
     padding: 1px;
    color: rgba(0,0,0,0.02);
    top: 42%;
    left: 36%;
     transform: rotate(-45deg);
}
 
 
/* 新版首页DIV */
 
.mainpage-box-title {
     font-size: 20px;
     color: #694B19;
     background: #E9CB97;
     text-align: center;
     text-align: center;
    line-height: 36px;
}
.mainpage-box-content {
    padding:10px;
}
/* 首页DIV移动端兼容 */
.mobile-compatible-box {
    display: none;
}
/* 网格布局方案A */
#grid-a-body {
    display: grid;
     width: 100%;
     width: 100%;
    grid-template-areas: "a a b"
                        "c d e"
                        "f g h";
    grid-template-columns: 1fr 1fr 1fr;
}
}
table.navbox+table.navbox {
 
     margin-top: -1px;
.grid-a-box-title {
}
     font-size: 20px;
.navbox-title,
     color: #694B19;
.navbox-abovebelow,
     background: #E9CB97;
table.navbox th {
     padding-left: 1em;
     padding-right: 1em;
     text-align: center;
     text-align: center;
    line-height: 36px;
}
}
.navbox-group {
 
    font-weight: 700;
.grid-a-box-content {
    padding-left: 1em;
     padding:10px;
     padding-right: 1em;
    white-space: nowrap;
}
}
.navbox,
.navbox-subgroup {
#grid-a-body :nth-child(1) {grid-area: a;}
     background: none repeat scroll 0 0 #fdfdfd;
#grid-a-body :nth-child(2) {grid-area: b;}
#grid-a-body :nth-child(3) {grid-area: c;}
#grid-a-body :nth-child(4) {grid-area: d;}
#grid-a-body :nth-child(5) {grid-area: e;}
#grid-a-body :nth-child(6) {grid-area: f;}
#grid-a-body :nth-child(7) {grid-area: g;}
#grid-a-body :nth-child(8) {grid-area: h;}
 
.mainpage-table-title {
    font-size: 20px;
    color: #694B19;
     background: #E9CB97;
}
}
.navbox-list {
.mainpage-table-box {
     border-color: #fdfdfd;
     padding:10px;
    vertical-align: top;
}
}
.navbox-title,
 
table.navbox th {
/* 勋章列表样式 */
     background: none repeat scroll 0 0 #a5e4a5;
ul.gallery.medal{
     text-align: left;
}
}
.navbox-abovebelow,
li.gallerybox {
.navbox-group,
    /*float: left;*/
.navbox-subgroup .navbox-title {
    text-align: center;
     background: none repeat scroll 0 0 #c0ecc0;
     /* width: 132px!important; */
}
}
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
.medal li.gallerybox {
     background: none repeat scroll 0 0 #e6f6e6;
     margin: 0 -9px 10px;
}
}
.navbox-even {
 
     background: none repeat scroll 0 0 #f5fcf5;
.medal .gallerytext {
     padding: 2px 10px;
}
}
.navbox-odd {
 
     background: none repeat scroll 0 0 transparent;
.medal div.thumb {
    box-shadow: inset 0 0 10px 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    width: 76px!important;
    height: 76px!important;
     background: url(https://upload.mcbbs.wiki/images/a/ac/magic_imgbg.gif) no-repeat 0 0;
    margin: auto!important;
}
}
.collapseButton {
 
     float: right;
.medal, li.gallerybox div.thumb img {
     font-weight: 400;
     display: block;
     text-align: right;
     margin: 0 auto;
     height: auto;
     width: auto;
     width: auto;
}
}
.navbox .collapseButton {
 
     width: 6em;
/* 编辑工具栏 */
a[data-mw-charinsert-start] {
     display: inline-block!important;
    border: #0645ad 1px solid!important;
    padding: 1px 5px;
}
}
/* Fix by case : Rev 1327309 ([[Special:Permalink/1327309]])
 
     Address alignment issue of nested tabs in Navbox */
/* 网页特效 */
.navbox .TabLabel {
.saturation0 { /*黑白*/
     text-align: left;
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: gray(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}
 
/*制作一个很像 pre 的 div ,帮助:注释 页面要用*/
div.pre-like{
    border: 1px solid var(--linecolor)!important;
    background-color: var(--lightcolor);
     padding: 1em;
}
/* center 替代 */
.mwcenter {
     text-align: center;
}
.mwcenter > div, .mwcenter > table {
    margin-left: auto;
    margin-right: auto;
}
}

2024年3月3日 (日) 17:01的最新版本

/* 这里是全站的通用样式 */
/* 本样式表来源于 MCBBS Wiki (https://mcbbs.wiki/wiki/MediaWiki:Common.css) */
/* 以 知识共享 署名-非商业-相同方式共享 4.0 (CC BY-NC-SA 4.0) 协议共享 */

:root {
    --themecolor: #A8CDFF;
    --bgtop: 46px;
    --bgleft: 20px;
    --lightcolor: #FDF6E6;
    --bgcolor: #fbf2dc;
    --bgcolor1: #E9D3AD;
    --bgcolor2: #E7D3B1;
    --bgcolor3: #E9CB97;
    --linecolor: #CFB78E;
    --fontfamily: sans-serif,'Microsoft Yahei',apple color emoji,segoe ui emoji,segoe ui symbol;
    --fontfamily2: 'Linux Libertine','Georgia','Times',serif,sans-serif,Tahoma;
    --articlefont: Lora,'Palatino Linotype','Book Antiqua','New York','DejaVu serif','Source Han Serif','Source Han Serif SC';
}

body {
    background-color: var(--themecolor);
}

/* 删除右上角帮助 */
#mw-indicator-mw-helplink {
    display:none;
}

dfn {
    font-style: Sans-serif;
}
/* LOGO */
#p-logo a{
    background-size: contain;
}
#p-logo{
    margin-top: 24px;
}

.ns-3100 #bodyContent:not(#siteNotice):before {
    content: "页面废存";
    position: fixed;
    font-size: 100px;
    font-weight: bold;
    color: rgba(0,0,0,0.02);
    top: 42%;
    left: 36%;
    transform: rotate(-45deg);
}


/* 新版首页DIV */

.mainpage-box-title {
    font-size: 20px;
    color: #694B19;
    background: #E9CB97;
    text-align: center;
    line-height: 36px;
}

.mainpage-box-content {
    padding:10px;
}
			
/* 首页DIV移动端兼容 */
.mobile-compatible-box {
    display: none;
}


/* 网格布局方案A */
#grid-a-body {
    display: grid;
    width: 100%;
    grid-template-areas: "a a b"
                         "c d e"
                         "f g h";
    grid-template-columns: 1fr 1fr 1fr;
}

.grid-a-box-title {
    font-size: 20px;
    color: #694B19;
    background: #E9CB97;
    text-align: center;
    line-height: 36px;
}

.grid-a-box-content {
    padding:10px;
}
			
#grid-a-body :nth-child(1) {grid-area: a;}
#grid-a-body :nth-child(2) {grid-area: b;}
#grid-a-body :nth-child(3) {grid-area: c;}
#grid-a-body :nth-child(4) {grid-area: d;}
#grid-a-body :nth-child(5) {grid-area: e;}
#grid-a-body :nth-child(6) {grid-area: f;}
#grid-a-body :nth-child(7) {grid-area: g;}
#grid-a-body :nth-child(8) {grid-area: h;}

.mainpage-table-title {
    font-size: 20px;
    color: #694B19;
    background: #E9CB97;
}
.mainpage-table-box {
    padding:10px;
    vertical-align: top;
}

/* 勋章列表样式 */
ul.gallery.medal{
    text-align: left;
}
li.gallerybox {
    /*float: left;*/
    text-align: center;
    /* width: 132px!important; */
}

.medal li.gallerybox {
    margin: 0 -9px 10px;
}

.medal .gallerytext {
    padding: 2px 10px;
}

.medal div.thumb {
    box-shadow: inset 0 0 10px 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 10px;
    width: 76px!important;
    height: 76px!important;
    background: url(https://upload.mcbbs.wiki/images/a/ac/magic_imgbg.gif) no-repeat 0 0;
    margin: auto!important;
}

.medal, li.gallerybox div.thumb img {
    display: block;
    margin: 0 auto;
    height: auto;
    width: auto;
}

/* 编辑工具栏 */
a[data-mw-charinsert-start] {
    display: inline-block!important;
    border: #0645ad 1px solid!important;
    padding: 1px 5px;
}

/* 网页特效 */
.saturation0 { /*黑白*/
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: gray(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
}

/*制作一个很像 pre 的 div ,帮助:注释 页面要用*/
div.pre-like{
    border: 1px solid var(--linecolor)!important;
    background-color: var(--lightcolor);
    padding: 1em;
}
/* center 替代 */
.mwcenter {
    text-align: center;
}
.mwcenter > div, .mwcenter > table {
    margin-left: auto;
    margin-right: auto;
}