MediaWiki:Common.css:修订间差异
外观
| (未显示同一用户的44个中间版本) | |||
| 第1行: | 第1行: | ||
/* 这里放置的CSS将应用于所有皮肤 */ | /* 这里放置的CSS将应用于所有皮肤 */ | ||
@import url("https://fontsapi.zeoseven.com/7/main/result.css"); /*朱雀仿宋字体,OFL-1.1*/ | |||
/*配色*/ | |||
/* | |||
--background-color-base 背景颜色 | |||
--color-base 文本颜色 | |||
*/ | |||
:root{ | |||
:root { | |||
/* Image Block */ | /* Image Block */ | ||
--imageblock-border-width: 0.15rem; | --imageblock-border-width: 0.15rem; | ||
--imageblock-caption-background-color: var(-- | --imageblock-caption-background-color: var(--background-color-neutral-subtle , #f8f9fa); | ||
--imageblock-caption-text-color: var(-- | --imageblock-caption-text-color: var(--color-base , #202122); | ||
--imageblock-shadow-color: 0, 0, 0, 0; | --imageblock-shadow-color: 0, 0, 0, 0; | ||
--imageblock-border-color: var(-- | --imageblock-border-color: var(--background-color-neutral, #eaecf0); | ||
--Found-color: #5CB85C; | |||
--Lost-color: #EE3131; | |||
--Partially-Found-color: #FFA500; | |||
--Existence-Unconfirmed-color: #696969; | |||
--Non-Existence-color: var(--darkblock-background-color); | |||
--Unidentified-color: #A9A9A9; | |||
--Partially-Identified-color: #FF7F50; | |||
--Identified-color: var(--Found-color); | |||
} | } | ||
| 第98行: | 第30行: | ||
.lightblock { | .lightblock { | ||
background: | background: var(--background-color-neutral-subtle , #f8f9fa); | ||
color: | color: var( --color-base , #202122); | ||
margin: 1rem 0; | margin: 1rem 0; | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
| 第105行: | 第37行: | ||
.darkblock { | .darkblock { | ||
background: var(--background-color-inverted, #101418); | |||
color: var(--color-inverted, #ffffff); | |||
margin: 1rem 0; | margin: 1rem 0; | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
| 第118行: | 第44行: | ||
.styled-quote { | .styled-quote { | ||
background: | background: var(--background-color-neutral-subtle , #f8f9fa); | ||
color: | color: var( --color-base , #202122); | ||
border-left: | border-left: var(--background-color-inverted, #101418) solid 0.6rem; | ||
margin: 1rem 0; | margin: 1rem 0; | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
| 第126行: | 第52行: | ||
.dark-styled-quote { | .dark-styled-quote { | ||
background: var(--background-color-inverted, #101418); | |||
color: var(--color-inverted, #ffffff); | |||
border-left: var(--background-color-neutral-subtle , #f8f9fa) solid 0.6rem; | |||
- | |||
margin: 1rem 0; | margin: 1rem 0; | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
| 第140行: | 第60行: | ||
/*修底部*/ | /*修底部*/ | ||
| 第194行: | 第78行: | ||
box-shadow: 0.2rem 0.2rem 0.4rem rgba(var(--imageblock-shadow-color)); | box-shadow: 0.2rem 0.2rem 0.4rem rgba(var(--imageblock-shadow-color)); | ||
clear: both; | clear: both; | ||
border: | border: var(--imageblock-border-color) var(--imageblock-border-width) solid; | ||
max-width: 100%; | max-width: 100%; | ||
} | } | ||
.scp-image-caption { | .scp-image-caption { | ||
background: | background: var(--imageblock-caption-background-color); | ||
color: | color: var(--imageblock-caption-text-color); | ||
padding: 0.2em 1em; | padding: 0.2em 1em; | ||
text-align: center; | text-align: center; | ||
| 第237行: | 第121行: | ||
@media only screen and (max-width: 540px) { | @media only screen and (max-width: 540px) { | ||
.scp-image-block | .scp-image-block.block-right, .scp-image-block.block-left { | ||
float: none; | float: none; | ||
margin: 0.1rem auto; | margin: 0.1rem auto; | ||
| 第243行: | 第127行: | ||
} | } | ||
.scp-image-block figure[typeof~='mw:File']{ | |||
margin: 0; | |||
clear: unset; | |||
float: unset; | |||
} | |||
/*个人信息修复*/ | |||
.visualClear { | |||
clear: both; | |||
} | |||
/*修主体高度*/ | |||
#mw-content-text{ | |||
min-height: 90vh; | |||
} | |||
/*底栏按钮CSS*/ | |||
/* | :root{ | ||
/* 给 Vector 2022/Vector 添加默认样式变量(Minerva 已有则兼容) */ | |||
--general-button-text-color: 54, 59, 65; | |||
--general-hover-button-text-color: 0, 0, 0; | |||
--general-button-background-color: 255, 255, 255; | |||
--general-hover-button-background-color: 234, 236, 240; | |||
--general-transition-time-slow: 0.2s; | |||
/* 按钮栏专用变量 */ | |||
--page-option-text-color: var(--general-button-text-color); | |||
--page-option-hover-text-color: var(--general-hover-button-text-color); | |||
--page-option-background-color: var(--general-button-background-color); | |||
--page-option-hover-background-color: var(--general-hover-button-background-color); | |||
} | |||
#custom-wiki-bottom-wrapper { | |||
margin: 2.5rem auto 1rem; | |||
width: 90%; | |||
max-width: min(993.3px, 90vw); | |||
} | |||
#custom-wiki-page-meta { | |||
display: flex; | |||
justify-content: space-between; | |||
align-items: center; | |||
flex-wrap: wrap; | |||
margin-bottom: 1rem; | |||
color: #54595d; | |||
font-size: 0.9rem; | |||
gap: 0.5rem; | |||
} | |||
.custom-wiki-button-row { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.5rem; | |||
margin-bottom: 0.5rem; | |||
width: 100%; | |||
} | |||
#custom-wiki-button-row-more { | |||
display: flex; | |||
overflow: hidden; | |||
max-height: 0; | |||
opacity: 0; | |||
transition: max-height 0.3s ease, opacity 0.3s ease; | |||
} | |||
#custom-wiki-button-row-more.open { | |||
max-height: 500px; | |||
opacity: 1; | |||
} | |||
.custom-wiki-button-row > a, | |||
#custom-wiki-toggle-btn { | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
flex: 2 0 auto; | |||
height: 2rem; | |||
padding: 0 0.25rem; | |||
margin: 0; | |||
min-width: fit-content; | |||
color: rgba(var(--page-option-text-color)); | |||
font-size: 0.95rem; | |||
line-height: 1; | |||
text-decoration: none; | |||
background: rgba(var(--page-option-background-color)); | |||
border: 1px solid #eaecf0; | |||
border-radius: 2px; | |||
cursor: pointer; | |||
transition: background var(--general-transition-time-slow); | |||
} | |||
.custom-wiki-button-row > a:hover, | |||
#custom-wiki-toggle-btn:hover { | |||
background: #eaecf0; | |||
} | |||
/* 段落编辑按钮 */ | |||
/* | |||
.custom-section-edit-btn { | |||
margin-left: 0.5rem; | |||
font-size: 0.8rem; | |||
color: #3366cc; | |||
text-decoration: none; | |||
} | |||
.custom-section-edit-btn:hover { | |||
text-decoration: underline; | |||
} | |||
*/ | |||
/*电脑端我喜欢左右留空*/ | |||
@media screen and (min-width: 1120px) { | |||
.vector-feature-limited-width-clientpref-0 .mw-body, | |||
.vector-feature-limited-width-content-disabled .mw-body { | |||
grid-template: min-content min-content min-content 1fr / minmax(0, 59.25rem) min-content; | |||
grid-template-areas: | |||
'titlebar-cx .' | |||
'titlebar columnEnd' | |||
'toolbar columnEnd' | |||
'content columnEnd'; | |||
} | |||
} | |||
#user-page-right{ | |||
float: unset; | |||
width: 100%; | |||
} | |||
/*电脑端改鼠标指针样式*/ | |||
#minerva-user-menu-checkbox{ | |||
cursor: pointer; | |||
} | |||
/*脚注*/ | |||
.mw-references-wrap::before { | |||
content: "脚注"; | |||
font-size: 150%; | |||
display: block; | |||
margin-bottom: 8px; | |||
font-weight: bold; | |||
border-bottom: 1px solid var(--background-color-neutral, #eaecf0); | |||
} | |||
.mw-references-wrap .references { | |||
margin-top: 0; | |||
padding-left: 0; | |||
} | |||
/*分页优化*/ | |||
.tabber__tab, .tabber__tab:visited { | |||
transition: all ease 0.3s; | |||
color: var(--color-base, #202122); | |||
background: transparent; | |||
position: relative; | |||
padding: 8px 12px; | |||
border: none; | |||
cursor: pointer; | |||
z-index: 1; | |||
} | |||
.tabber__tab[aria-selected='true'], .tabber__tab[aria-selected='true']:visited { | |||
color: var(--background-color-neutral-subtle, #f8f9fa); | |||
background: var(--color-progressive, #36c); | |||
} | |||
.tabber__tab::after { | |||
content: ''; | |||
position: absolute; | |||
top: 0; | |||
left: 0; | |||
width: 0; | |||
height: 100%; | |||
background: var(--box-shadow-color-progressive-selected--hover, #447ff5); | |||
transition: width 0.3s ease; | |||
z-index: -1; | |||
} | |||
.tabber__tab:hover { | |||
color: var(--background-color-neutral-subtle, #f8f9fa) !important; | |||
} | |||
.tabber__tab:hover::after { | |||
width: 100%; | |||
} | |||
.tabber__tab[aria-selected='true']::after { | |||
width: 100%; | |||
background: var(--color-progressive, #36c); | |||
} | |||
.tabber__tab[aria-selected='true']:hover { | |||
color: var(--background-color-neutral-subtle, #f8f9fa); | |||
} | |||
/*维基语法里用的CSS*/ | |||
.table-icon-img{ | |||
display: inline-block; | |||
width: 1em; | |||
height: 1em; | |||
padding: 5px; | |||
background-image: url(data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E table %3C/title%3E%3Cpath d=%22M2 2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 4h7v4H2zm0 10v-4h7v4zm16 0h-7v-4h7zm0-6h-7V6h7z%22/%3E%3C/svg%3E); | |||
background-repeat: no-repeat; | |||
background-size: contain; | |||
margin-bottom: -5px; | |||
} | |||
.pre-style{ | |||
background-color: var(--background-color-neutral-subtle, #f8f9fa); | |||
color: var(--color-emphasized, #101418); | |||
border: 1px solid var(--border-color-muted, #dadde3); | |||
padding: 1em; | |||
} | } | ||
2026年3月3日 (二) 23:06的最新版本
/* 这里放置的CSS将应用于所有皮肤 */
@import url("https://fontsapi.zeoseven.com/7/main/result.css"); /*朱雀仿宋字体,OFL-1.1*/
/*配色*/
/*
--background-color-base 背景颜色
--color-base 文本颜色
*/
:root{
/* Image Block */
--imageblock-border-width: 0.15rem;
--imageblock-caption-background-color: var(--background-color-neutral-subtle , #f8f9fa);
--imageblock-caption-text-color: var(--color-base , #202122);
--imageblock-shadow-color: 0, 0, 0, 0;
--imageblock-border-color: var(--background-color-neutral, #eaecf0);
--Found-color: #5CB85C;
--Lost-color: #EE3131;
--Partially-Found-color: #FFA500;
--Existence-Unconfirmed-color: #696969;
--Non-Existence-color: var(--darkblock-background-color);
--Unidentified-color: #A9A9A9;
--Partially-Identified-color: #FF7F50;
--Identified-color: var(--Found-color);
}
/*DIV块*/
.lightblock {
background: var(--background-color-neutral-subtle , #f8f9fa);
color: var( --color-base , #202122);
margin: 1rem 0;
padding: 0.5rem 1rem;
}
.darkblock {
background: var(--background-color-inverted, #101418);
color: var(--color-inverted, #ffffff);
margin: 1rem 0;
padding: 0.5rem 1rem;
}
.styled-quote {
background: var(--background-color-neutral-subtle , #f8f9fa);
color: var( --color-base , #202122);
border-left: var(--background-color-inverted, #101418) solid 0.6rem;
margin: 1rem 0;
padding: 0.5rem 1rem;
}
.dark-styled-quote {
background: var(--background-color-inverted, #101418);
color: var(--color-inverted, #ffffff);
border-left: var(--background-color-neutral-subtle , #f8f9fa) solid 0.6rem;
margin: 1rem 0;
padding: 0.5rem 1rem;
}
/*修底部*/
/* 图片框 */
#content > img {
margin: 1rem 0;
}
.image-container {
padding: 0;
margin: 1rem 0;
max-width: 100%;
}
.scp-image-block {
display: flex;
flex-direction: column;
box-shadow: 0.2rem 0.2rem 0.4rem rgba(var(--imageblock-shadow-color));
clear: both;
border: var(--imageblock-border-color) var(--imageblock-border-width) solid;
max-width: 100%;
}
.scp-image-caption {
background: var(--imageblock-caption-background-color);
color: var(--imageblock-caption-text-color);
padding: 0.2em 1em;
text-align: center;
width: auto !important;
}
.scp-image-caption p {
font-size: 0.8rem;
font-weight: 700;
}
#content .scp-image-caption p:first-child {
margin-top: 0;
}
#content .scp-image-caption p:last-child {
margin-bottom: 0;
}
.scp-image-block.block-right,
.image-container.floatright {
float: right;
margin: 0.25rem 0 1rem 2rem;
}
.scp-image-block.block-left,
.image-container.floatleft {
float: left;
margin: 0.25rem 2rem 1rem 0;
}
.scp-image-block.block-center {
margin: 1rem auto;
}
@media only screen and (max-width: 540px) {
.scp-image-block.block-right, .scp-image-block.block-left {
float: none;
margin: 0.1rem auto;
}
}
.scp-image-block figure[typeof~='mw:File']{
margin: 0;
clear: unset;
float: unset;
}
/*个人信息修复*/
.visualClear {
clear: both;
}
/*修主体高度*/
#mw-content-text{
min-height: 90vh;
}
/*底栏按钮CSS*/
:root{
/* 给 Vector 2022/Vector 添加默认样式变量(Minerva 已有则兼容) */
--general-button-text-color: 54, 59, 65;
--general-hover-button-text-color: 0, 0, 0;
--general-button-background-color: 255, 255, 255;
--general-hover-button-background-color: 234, 236, 240;
--general-transition-time-slow: 0.2s;
/* 按钮栏专用变量 */
--page-option-text-color: var(--general-button-text-color);
--page-option-hover-text-color: var(--general-hover-button-text-color);
--page-option-background-color: var(--general-button-background-color);
--page-option-hover-background-color: var(--general-hover-button-background-color);
}
#custom-wiki-bottom-wrapper {
margin: 2.5rem auto 1rem;
width: 90%;
max-width: min(993.3px, 90vw);
}
#custom-wiki-page-meta {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-bottom: 1rem;
color: #54595d;
font-size: 0.9rem;
gap: 0.5rem;
}
.custom-wiki-button-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-bottom: 0.5rem;
width: 100%;
}
#custom-wiki-button-row-more {
display: flex;
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height 0.3s ease, opacity 0.3s ease;
}
#custom-wiki-button-row-more.open {
max-height: 500px;
opacity: 1;
}
.custom-wiki-button-row > a,
#custom-wiki-toggle-btn {
display: flex;
justify-content: center;
align-items: center;
flex: 2 0 auto;
height: 2rem;
padding: 0 0.25rem;
margin: 0;
min-width: fit-content;
color: rgba(var(--page-option-text-color));
font-size: 0.95rem;
line-height: 1;
text-decoration: none;
background: rgba(var(--page-option-background-color));
border: 1px solid #eaecf0;
border-radius: 2px;
cursor: pointer;
transition: background var(--general-transition-time-slow);
}
.custom-wiki-button-row > a:hover,
#custom-wiki-toggle-btn:hover {
background: #eaecf0;
}
/* 段落编辑按钮 */
/*
.custom-section-edit-btn {
margin-left: 0.5rem;
font-size: 0.8rem;
color: #3366cc;
text-decoration: none;
}
.custom-section-edit-btn:hover {
text-decoration: underline;
}
*/
/*电脑端我喜欢左右留空*/
@media screen and (min-width: 1120px) {
.vector-feature-limited-width-clientpref-0 .mw-body,
.vector-feature-limited-width-content-disabled .mw-body {
grid-template: min-content min-content min-content 1fr / minmax(0, 59.25rem) min-content;
grid-template-areas:
'titlebar-cx .'
'titlebar columnEnd'
'toolbar columnEnd'
'content columnEnd';
}
}
#user-page-right{
float: unset;
width: 100%;
}
/*电脑端改鼠标指针样式*/
#minerva-user-menu-checkbox{
cursor: pointer;
}
/*脚注*/
.mw-references-wrap::before {
content: "脚注";
font-size: 150%;
display: block;
margin-bottom: 8px;
font-weight: bold;
border-bottom: 1px solid var(--background-color-neutral, #eaecf0);
}
.mw-references-wrap .references {
margin-top: 0;
padding-left: 0;
}
/*分页优化*/
.tabber__tab, .tabber__tab:visited {
transition: all ease 0.3s;
color: var(--color-base, #202122);
background: transparent;
position: relative;
padding: 8px 12px;
border: none;
cursor: pointer;
z-index: 1;
}
.tabber__tab[aria-selected='true'], .tabber__tab[aria-selected='true']:visited {
color: var(--background-color-neutral-subtle, #f8f9fa);
background: var(--color-progressive, #36c);
}
.tabber__tab::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background: var(--box-shadow-color-progressive-selected--hover, #447ff5);
transition: width 0.3s ease;
z-index: -1;
}
.tabber__tab:hover {
color: var(--background-color-neutral-subtle, #f8f9fa) !important;
}
.tabber__tab:hover::after {
width: 100%;
}
.tabber__tab[aria-selected='true']::after {
width: 100%;
background: var(--color-progressive, #36c);
}
.tabber__tab[aria-selected='true']:hover {
color: var(--background-color-neutral-subtle, #f8f9fa);
}
/*维基语法里用的CSS*/
.table-icon-img{
display: inline-block;
width: 1em;
height: 1em;
padding: 5px;
background-image: url(data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E table %3C/title%3E%3Cpath d=%22M2 2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 4h7v4H2zm0 10v-4h7v4zm16 0h-7v-4h7zm0-6h-7V6h7z%22/%3E%3C/svg%3E);
background-repeat: no-repeat;
background-size: contain;
margin-bottom: -5px;
}
.pre-style{
background-color: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-emphasized, #101418);
border: 1px solid var(--border-color-muted, #dadde3);
padding: 1em;
}