打开/关闭菜单
322
1.7K
132
12.6K
星露谷物语扩展百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Mainpage/styles.css:修订间差异

来自星露谷物语扩展百科
Sizau留言 | 贡献
无编辑摘要
Sizau留言 | 贡献
细节优化
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
.mp-wrapper {
.mp-wrapper {
--mp-surface-0: var( --color-surface-0 );
--button-color-progressive: #9cbf57;
--mp-surface-1: var( --color-surface-1 );
--button-border-color: #68686b;
--mp-surface-2: var( --color-surface-2 );
--mp-surface-3: var( --color-surface-3, var( --color-surface-2 ) );
--mp-border: var( --border-color-base );
--mp-text: var( --color-emphasized );
--mp-subtle: var( --color-subtle );
--mp-link: var( --color-link );
--mp-progressive: var( --color-progressive );
--mp-progressive-hover: var( --color-progressive--hover );
--mp-progressive-subtle: var( --background-color-progressive-subtle );
--mp-quiet-hover: var( --background-color-button-quiet--hover );
display: flex;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: clamp( 12px, 2vw, 20px );
width: 100%;
width: 100%;
color: var( --mp-text );
gap: 6px;
    --button-color: #d7f3ff;
    --button-text-color: #0095d3;
    --icon-background: #e4faffa1;
    --icon-background-hover: #e0f9ff;
    --section-background: #00000008;
    --section-border: transparent;
    --hover-mask: #7f7c7c1a;
}
 
html.skin-theme-clientpref-night .mp-wrapper {
--button-color: #4e4f51;
--button-text-color: #fff;
--icon-background: #ffffff10;
--icon-background-hover: #ffffff20;
--section-background: #1c1b1b;
--section-border: #212121;
--hover-mask:#ffffff1a;
}
 
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .mp-section {
--button-color: #4e4f51;
--button-text-color: #fff;
--icon-background: #ffffff10;
--icon-background-hover: #ffffff20;
--section-background: #1c1b1b;
--section-border: #212121;
--hover-mask:#ffffff1a;
}
}
}


第25行: 第43行:
}
}


.mp-wrapper a {
.mp-section {
color: var( --mp-link );
width: 100%;
padding: 12px;
background: var(--section-background);
border: 2px solid var(--section-border);
    box-shadow: inset rgba(0, 0, 0, 0.08) 0px 0px 0px 2px;
}
}


.mp-wrapper p,
.mp-wrapper>.mp-section {
.mp-wrapper ul {
width: 100%;
margin-top: 0;
margin-bottom: 0;
}
}


.mp-wrapper ul {
.mp-inline-sections {
padding-left: 1.2rem;
display: grid;
grid-template-columns: 1fr;
grid-template-areas: "site" "right" "left";
gap: 6px;
width: 100%;
}
}


.mp-title {
#mp-section-site {
margin: 0;
grid-area: site;
padding: 0 !important;
display: flex;
border: 0;
flex-direction: column;
color: var( --mp-text );
gap: 8px;
align-items: center;
}
 
.mp-left {
grid-area: left;
}
}


.mp-section {
.mp-right {
position: relative;
grid-area: right;
overflow: hidden;
padding: clamp( 16px, 2vw, 24px );
background: linear-gradient( 180deg, var( --mp-surface-1 ), var( --mp-surface-0 ) );
border: 1px solid var( --mp-border );
border-radius: var( --border-radius-large );
box-shadow: var( --box-shadow-border );
}
}


.mp-section-header {
.mp-left,
.mp-right {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 6px;
gap: 6px;
margin-bottom: 16px;
}
}


.mp-section-header p,
.mp-right>:last-child {
.mp-muted {
flex: 1;
color: var( --mp-subtle );
font-size: 0.95rem;
line-height: 1.7;
}
}


.mp-notice {
.mp-left-row {
padding-block: 14px;
flex: 10 10 0;
background: linear-gradient( 135deg, var( --mp-progressive-subtle ), var( --mp-surface-1 ) 65% );
}
}


.mp-notice p {
.mp-sticky {
font-size: var( --font-size-small );
position: sticky;
line-height: 1.7;
top: 20px;
}
}


.mp-hero-grid,
@media screen and (min-width: 990px) {
.mp-grid {
.mp-inline-sections {
display: grid;
grid-template-columns: 1fr 2fr;
gap: clamp( 12px, 2vw, 20px );
grid-template-rows: auto 1fr;
grid-template-areas: "site right" "left right";
}
}
}


.mp-hero-grid {
.mp-wrapper h2 {
grid-template-columns: minmax( 0, 1.65fr ) minmax( 280px, 0.9fr );
font-family: revert;
align-items: stretch;
font-weight: bold;
font-size: 1.2em;
color: var(--wiki-content-link-color);
}
}


.mp-hero {
.mp-title {
display: grid;
border: none;
grid-template-columns: minmax( 0, 1.05fr ) minmax( 260px, 0.95fr );
margin: 0;
gap: clamp( 16px, 2vw, 24px );
padding: 0 !important;
padding: clamp( 18px, 2.4vw, 28px );
background: linear-gradient( 135deg, var( --mp-progressive-subtle ), var( --mp-surface-0 ) 38%, var( --mp-surface-1 ) 100% );
}
}


.mp-hero__copy,
.mw-headline {
.mp-side-stack,
font-family: var(--wiki-content-heading-font-family);
.mp-side-card {
display: flex;
flex-direction: column;
gap: 14px;
}
}


.mp-kicker {
.mp-button {
display: inline-flex;
width: 100%;
align-items: center;
gap: 6px;
width: fit-content;
cursor: pointer;
padding: 6px 10px;
position: relative;
background: var( --mp-surface-0 );
text-align: center;
border: 1px solid var( --mp-border );
background-color: var(--button-color);
border-radius: 999px;
color: var(--button-text-color, #000);
color: var( --mp-progressive );
font-size: 1em;
font-size: var( --font-size-small );
font-weight: bold;
font-weight: 700;
transition-property: background-color, color, border-color, box-shadow, opacity, padding, margin;
letter-spacing: 0.02em;
transition-duration: .1s;
text-transform: uppercase;
}
 
.mp-hero__title {
font-size: clamp( 2rem, 4vw, 3.2rem );
line-height: 1.05;
}
}


.mp-hero__lead {
.mp-button>* {
font-size: var( --font-size-x-large );
--content-text-color: #fff;
font-weight: 700;
line-height: 1.5;
}
}


.mp-hero__text {
body.mediawiki .mp-button>* {
color: var( --mp-subtle );
width: calc(100% + 4px);
font-size: var( --font-size-large );
height: calc(100% + 4px);
line-height: 1.8;
margin: -2px;
}
text-shadow: 1px 1px 0 var(--button-text-shadow-color);
 
.mp-pill-row {
display: flex;
display: flex;
flex-wrap: wrap;
gap: 6px;
gap: 8px;
padding: 0 !important;
}
text-align: center;
 
.mp-pill {
display: inline-flex;
align-items: center;
align-items: center;
padding: 7px 12px;
justify-content: center;
background: var( --mp-surface-0 );
transition-property: padding, margin;
border: 1px solid var( --mp-border );
transition-duration: .1s;
border-radius: 999px;
color: var( --mp-subtle );
font-size: var( --font-size-small );
}
}


.mp-stat-grid {
body.mediawiki .mp-button span>* {
display: grid;
color: var(--button-text-color, #000) !important;
grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
text-decoration: none;
gap: 10px;
}
}


.mp-stat-card,
.mp-button::after {
.mp-monitor-card {
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 8px;
min-height: 96px;
padding: 14px;
background: linear-gradient( 180deg, var( --mp-surface-0 ), var( --mp-surface-2 ) );
border: 1px solid var( --mp-border );
border-radius: var( --border-radius-medium );
box-shadow: var( --box-shadow-border );
}
 
.mp-stat-card__value,
.mp-monitor-card__value {
font-size: clamp( 1.35rem, 2.1vw, 1.85rem );
font-weight: 700;
line-height: 1.15;
word-break: break-word;
}
 
.mp-stat-card__value a,
.mp-monitor-card__value a {
display: block;
display: block;
text-decoration: none;
content: '';
}
position: absolute;
 
top: 0;
.mp-stat-card__label,
left: 0;
.mp-monitor-card__label {
width: 100%;
color: var( --mp-subtle );
height: 100%;
font-size: var( --font-size-small );
z-index: 1;
mix-blend-mode: hard-light;
transition: .4s background-color, box-shadow;
pointer-events: none;
}
}


.mp-monitor-card__value a {
.mp-button:hover:not(:active)::after,
color: var( --mp-progressive ) !important;
.mp-icon:hover:not(:active) .mp-button::after {
background-color: var(--hover-mask);
}
}


.mp-button-wrapper {
.mp-button-wrapper {
display: flex;
display: flex;
flex-direction: row;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 10px;
gap: 4px;
}
}


.mp-hero__actions,
.mp-button-wrapper .mp-button {
.mp-edit-actions {
flex: 1 0 0;
display: grid;
min-width: max-content;
grid-template-columns: repeat( auto-fit, minmax( 172px, 1fr ) );
white-space: nowrap;
align-items: stretch;
}
}


.mp-button {
.mp-button.mp-button-progressive {
position: relative;
background-color: var(--button-color-progressive);
flex: 1 1 160px;
--button-text-color: #fff;
min-width: 0;
--button-text-shadow-color: #157298cf;
background: var( --mp-surface-2 );
background: linear-gradient(to bottom right, var(--color-progressive--hover), var(--color-progressive));
border: 1px solid var( --mp-border );
border-radius: var( --border-radius-base );
box-shadow: var( --box-shadow-border );
transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
}


.mp-button:hover {
.mp-button.mp-social-discord {
background: var( --mp-quiet-hover );
--button-color: #5865f2;
transform: translateY( -2px );
}
}


.mp-wrapper .mp-button > * {
.mp-button.mp-social-qq {
display: flex;
background-color: #1ebafc;
align-items: center;
justify-content: center;
min-height: 52px;
padding: 0 18px !important;
text-align: center;
font-weight: 700;
line-height: 1.35;
}
}


.mp-wrapper .mp-button span * {
.mp-wrapper .collapsible-content {
color: var( --mp-text ) !important;
display: grid;
text-decoration: none;
grid-template-rows: 1fr;
transition: grid-template-rows 300ms, visibility 300ms;
}
}


.mp-button.mp-button-progressive {
.mp-wrapper .collapsible-content>* {
background: linear-gradient( 135deg, var( --mp-progressive-hover ), var( --mp-progressive ) );
overflow: hidden;
border-color: transparent;
box-shadow: var( --box-shadow-medium );
}
}


.mp-button.mp-button-progressive:hover {
.mp-wrapper .collapsible.collapsed .collapsible-content {
filter: saturate( 1.08 );
display: grid;
grid-template-rows: 0fr;
visibility: hidden;
overflow: hidden;
}
}


.mp-wrapper .mp-button.mp-button-progressive span * {
.mp-wrapper .collapsible.collapsed .collapsible-content>.mp-section {
color: var( --color-inverted-primary ) !important;
padding: 0;
transition: padding 200ms;
}
}


.mp-hero__media {
.mp-button .collapsetoggle-custom {
min-height: clamp( 280px, 32vw, 420px );
position: absolute;
aspect-ratio: 16 / 11;
left: 0;
background: var( --mp-surface-2 );
right: 0;
border-radius: calc( var( --border-radius-large ) - 4px );
top: 0;
box-shadow: var( --box-shadow-large );
bottom: 0;
overflow: hidden;
color: transparent !important;
--button-text-color: transparent;
user-select: none;
display: flex;
align-items: center;
}
}


.mp-hero__media > *,
body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle>h4,
.mp-hero__media > * > * {
body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle:active>h4 {
display: block;
padding-left: 12px !important;
width: 100%;
padding-right: 12px !important;
height: 100%;
}
}


.mp-hero__media img {
.mp-button.mp-button-collapsetoggle>::after {
content: "";
display: block;
display: block;
width: 100%;
pointer-events: none;
height: 100%;
width: 16px;
object-fit: cover;
height: 16px;
margin-left: auto;
--mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-chevron-down' width='24' height='24' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpath d='M6 9l6 6l6 -6'%3E%3C/path%3E%3C/svg%3E") no-repeat;
mask: var(--mask);
mask-size: 100% 100%;
mask-position: center center;
background-color: var(--content-text-color);
transform: rotate(180deg);
transition: 300ms transform;
}
}


.mp-link-list {
.collapsible.collapsed .mp-button.mp-button-collapsetoggle>::after {
display: grid;
transform: rotate(0);
gap: 10px;
margin: 0;
padding: 0;
list-style: none;
}
}


.mp-link-list li {
.mp-icon-wrapper {
margin: 0;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin: auto;
--icon-base-width: 120px;
--icon-max-width: 200px;
}
}


.mp-link-list li > a {
.mp-icon {
flex: 1 1 auto;
width: var(--icon-base-width);
max-width: var(--icon-max-width);
display: flex;
display: flex;
align-items: center;
flex-direction: column;
justify-content: space-between;
transition-property: padding, margin;
gap: 12px;
transition-duration: .1s;
min-height: 52px;
padding: 12px 14px;
background: var( --mp-surface-2 );
border: 1px solid var( --mp-border );
border-radius: var( --border-radius-base );
color: var( --mp-text );
text-decoration: none;
transition: background-color 200ms ease, transform 200ms ease;
}
}


.mp-link-list li > a::after {
.mp-icon-link {
content: "›";
flex: 1;
color: var( --mp-progressive );
margin: -2px 0 0;
font-size: 1.2em;
font-size: 14px;
line-height: 1;
padding-left: 2px;
padding-right: 2px;
}
}


.mp-link-list li > a:hover,
.mp-icon-img {
.mp-chip-link > a:hover {
display: flex;
background: var( --mp-quiet-hover );
align-items: center;
transform: translateY( -2px );
justify-content: center;
background-color: var(--icon-background);
transition-property: background-color, color, border-color, box-shadow, opacity, padding, margin;
transition-duration: .4s;
user-select: none;
}
}


.mp-icon:hover .mp-icon-link,
.mp-icon:hover .mp-icon-img {
.mp-icon:hover .mp-icon-img {
background: var( --mp-quiet-hover );
background-color: var(--icon-background-hover);
}
}


.mp-chip-links {
.mp-icon-img a {
display: flex;
padding: 12px;
flex-wrap: wrap;
gap: 10px;
}
}


.mp-chip-link {
.mp-icon-img a,
display: inline-flex;
.mp-icon-img span {
display: block;
width: 100%;
height: 100%;
text-align: center;
}
}


.mp-chip-link > a {
.mp-icon-img img {
display: inline-flex;
max-width: unset !important;
align-items: center;
width: 40px !important;
min-height: 42px;
height: 40px !important;
padding: 10px 12px;
filter: drop-shadow(2px 2px 1px #00000030);
background: var( --mp-surface-2 );
object-fit: contain;
border: 1px solid var( --mp-border );
border-radius: 999px;
color: var( --mp-text );
text-decoration: none;
transition: background-color 200ms ease, transform 200ms ease;
}
}


.mp-grid--primary {
@media screen and (min-width: 1500px) and (max-width: 2600px) {
grid-template-columns: minmax( 0, 1.12fr ) minmax( 320px, 0.88fr );
.mp-main-icons {
--icon-base-width: 6vw;
}
}
}


.mp-grid--support {
@media screen and (max-width: 950px) {
grid-template-columns: minmax( 0, 1.18fr ) minmax( 300px, 0.82fr );
.mp-icon-wrapper.mp-main-icons {
grid-template-areas:
--icon-base-width: 70px;
"monitor edit"
--icon-max-width: 100px;
"monitor about";
}
align-items: start;
 
.mp-icon-link {
font-size: 12px;
}
 
.mp-icon-img a {
padding: 6px;
}
 
.mp-icon-img img {
width: 40px !important;
height: 40px !important;
}
}
}


.mp-primary-card,
.mp-highlight-wrapper {
.mp-support-card {
display: flex;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 0;
gap: 8px;
flex: 0 7 0;
}
}


.mp-primary-card .mp-section-header,
.mp-highlight {
.mp-support-card .mp-section-header {
background-size: cover;
margin-bottom: 18px;
background-position: center;
background-repeat: no-repeat;
flex: 1 1 0;
min-width: 300px;
min-height: calc(150px + 5vh);
max-height: 300px;
position: relative;
padding: 0;
color: #fff !important;
font-size: small;
text-shadow: 1px 1px 8px #333, -1px -1px 8px #333;
}
}


.mp-support-card--monitor {
.mp-section.mp-highlight::after {
grid-area: monitor;
position: absolute;
content: '';
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
}
}


.mp-support-card--edit {
.mp-highlight *:not(a):not(.sprite-text) {
grid-area: edit;
color: #fff !important;
}
}


.mp-support-card--about {
.mp-highlight a {
grid-area: about;
color: #bed9ff !important;
}
}


.mp-support-card--monitor .mp-monitor-grid {
.mp-highlight .hlist li:after {
margin-top: 2px;
background-color: #fff !important;
}
}


.mp-support-card--edit .mp-edit-actions {
.mp-highlight .mp-title {
margin-top: auto;
line-height: 1.2;
padding-top: 18px;
margin-bottom: 6px;
}
}


.mp-support-card--about .mp-mod-icons {
.mp-highlight-image,
margin-top: 2px;
.mp-highlight-image img {
object-fit: cover;
width: 100%;
height: 100%;
max-height: 300px;
user-select: none;
}
}


.mp-icon-wrapper {
.mp-highlight-top-description,
display: grid;
.mp-highlight-bottom-description {
gap: 12px;
width: 100%;
}
}


.mp-main-icons,
.mp-highlight-top-description {
.mp-sub-icons {
background: linear-gradient(180deg, #0008 24px, transparent);
grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
padding: 12px;
position: absolute;
top: 0;
}
}


.mp-mod-icons {
.mp-highlight-bottom-description {
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
background: linear-gradient(to top, #0008 50%, transparent);
padding: 12px;
position: absolute;
bottom: 0;
}
}


.mp-icon {
.mp-social-wrapper {
display: flex;
display: flex;
flex-direction: column;
display: grid;
min-width: 0;
grid-auto-columns: minmax(0, 1fr);
transition: transform 200ms ease;
grid-auto-flow: column;
gap: 4px;
width: 100%;
}
}


.mp-icon:hover {
.mp-social-wrapper img {
transform: translateY( -2px );
margin: 2px 0;
user-select: none;
}
}


.mp-icon-img,
.mp-platform-wrapper {
.mp-icon-link {
transition: background-color 200ms ease, transform 200ms ease;
}
 
.mp-icon-img {
display: flex;
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
justify-content: center;
min-height: 110px;
gap: 6px;
padding: 14px;
margin-top: 5px;
background: linear-gradient( 180deg, var( --mp-progressive-subtle ), var( --mp-surface-2 ) );
border: 1px solid var( --mp-border );
border-radius: var( --border-radius-large ) var( --border-radius-large ) var( --border-radius-base ) var( --border-radius-base );
box-shadow: var( --box-shadow-border );
}
}


.mp-icon-img a,
.mp-platform {
.mp-icon-img span {
min-width: 260px;
display: flex;
display: flex;
gap: 5px;
flex-direction: row;
align-items: center;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
}


.mp-icon-img img {
@media screen and (max-width: 989px) {
width: 56px !important;
.mp-platform {
height: 56px !important;
flex-direction: row;
max-width: none !important;
flex-wrap: wrap;
object-fit: contain;
}
filter: drop-shadow( 0 6px 12px rgba( 0, 0, 0, 0.15 ) );
}
}


.mp-icon-link {
.sr-only:not(:focus):not(:active) {
margin-top: -1px;
clip-path: inset(50%);
background: var( --mp-surface-0 );
height: 1px;
border: 1px solid var( --mp-border );
overflow: hidden;
border-radius: var( --border-radius-base );
position: absolute;
box-shadow: var( --box-shadow-border );
white-space: nowrap;
width: 1px;
}
}


.mp-wrapper .mp-icon-link > * {
.hlist ul {
min-height: 52px;
display: inline;
padding: 10px 10px !important;
margin: 0;
line-height: 1.35;
padding: 0;
}
}


.mp-wrapper .mp-icon-link span * {
.hlist li {
color: var( --mp-text ) !important;
display: inline;
text-decoration: none;
}
}


.mp-monitor-grid {
.hlist li:not(:last-child) {
display: grid;
padding-right: 0.286em;
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
gap: 12px;
}
}


@media screen and ( max-width: 1200px ) {
.hlist li:not(:last-child)::after {
.mp-hero-grid,
content: "";
.mp-grid--primary {
display: inline-block;
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
position: relative;
}
left: 0.286em;
bottom: 0.214em;
background-color: #fff;
height: 3px;
width: 3px;
border-radius: 16px;
}


.mp-grid--support {
/* Monitor */
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
.mp-monitor-grid {
grid-template-areas:
    display: flex;
"monitor edit"
    gap: 8px;
"about about";
    flex-wrap: wrap;
}
    text-align: center;
    margin-top: 10px;
}
}


@media screen and ( max-width: 980px ) {
.mp-monitor-card {
.mp-hero-grid,
    flex: 1 1 calc(50% - 4px);
.mp-hero,
    background-color: var(--background-color-quiet, rgba(128, 128, 128, 0.05));
.mp-grid--primary,
    border: 1px solid var(--border-color-subtle, rgba(128, 128, 128, 0.15));
.mp-grid--support {
    border-radius: var(--border-radius-base, 4px);
grid-template-columns: 1fr;
    padding: 12px 0;
}
    transition: background-color 0.2s ease, border-color 0.2s ease;
}


.mp-grid--support {
.mp-monitor-card:hover {
grid-template-areas:
    background-color: var(--background-color-interactive, rgba(128, 128, 128, 0.08));
"monitor"
    border-color: var(--border-color-interactive, rgba(128, 128, 128, 0.3));
"edit"
}
"about";
}


.mp-main-icons,
.mp-monitor-count {
.mp-sub-icons {
    font-weight: bold;
grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
    font-size: 1.5em;
}
    line-height: 1.2;
}


.mp-hero__actions {
.mp-monitor-count a {
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    color: var(--color-primary, #3a8ee6);
}
    text-decoration: none;
}
}


@media screen and ( max-width: 820px ) {
.mp-monitor-count a:hover {
.mp-main-icons,
    text-decoration: underline;
.mp-sub-icons,
.mp-mod-icons {
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}
}
}


@media screen and ( max-width: 720px ) {
.mp-monitor-label {
.mp-section {
    font-size: 0.9em;
padding: 16px;
    margin-top: 4px;
}
}


.mp-hero__title {
.mp-monitor-label a {
font-size: var( --font-size-xxx-large );
    color: var(--color-subtle, #777777);
}
    text-decoration: none;
}


.mp-hero__lead {
.mp-monitor-label a:hover {
font-size: var( --font-size-large );
    text-decoration: underline;
}
}


.mp-stat-grid,
/* 按钮和板块样式简化 */
.mp-monitor-grid {
.mp-button-group {
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
    display: flex;
}
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}


.mp-hero__media {
.mp-button {
min-height: 240px;
    padding: 8px;
}
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none !important;
    transition: opacity 0.2s;
}


.mp-icon-img {
.mp-button-primary {
min-height: 92px;
    background: var(--color-primary);
}
    color: #fff !important;
 
}
.mp-icon-img img {
width: 44px !important;
height: 44px !important;
}
 
.mp-wrapper .mp-button > * {
min-height: 48px;
padding: 0 14px !important;
}


.mp-wrapper .mp-icon-link > * {
.mp-button-secondary {
min-height: 48px;
    background: var(--background-color-interactive);
padding: 9px 8px !important;
    border: 1px solid var(--border-color-base);
}
    color: var(--color-base) !important;
}
}


@media screen and ( max-width: 560px ) {
.mp-icon-img {
.mp-main-icons,
    border-radius: 6px 6px 0 0;
.mp-sub-icons,
.mp-mod-icons,
.mp-monitor-grid {
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}
 
.mp-hero__actions,
.mp-edit-actions {
grid-template-columns: 1fr;
}
}
}


@media screen and ( max-width: 480px ) {
.mp-section {
.mp-button-wrapper {
    border: none !important;
flex-direction: column;
    box-shadow: none!important;
}
    border-radius: 6px;
 
.mp-button {
flex-basis: auto;
}
}
}

2026年4月27日 (一) 11:55的最新版本

.mp-wrapper {
	--button-color-progressive: #9cbf57;
	--button-border-color: #68686b;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 6px;
    --button-color: #d7f3ff;
    --button-text-color: #0095d3;
    --icon-background: #e4faffa1;
    --icon-background-hover: #e0f9ff;
    --section-background: #00000008;
    --section-border: transparent;
    --hover-mask: #7f7c7c1a;
}

html.skin-theme-clientpref-night .mp-wrapper {
	--button-color: #4e4f51;
	--button-text-color: #fff;
	--icon-background: #ffffff10;
	--icon-background-hover: #ffffff20;
	--section-background: #1c1b1b;
	--section-border: #212121;
	--hover-mask:#ffffff1a;
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .mp-section {
		--button-color: #4e4f51;
		--button-text-color: #fff;
		--icon-background: #ffffff10;
		--icon-background-hover: #ffffff20;
		--section-background: #1c1b1b;
		--section-border: #212121;
		--hover-mask:#ffffff1a;
	}
}

.mp-wrapper *,
.mp-wrapper *::before,
.mp-wrapper *::after {
	box-sizing: border-box;
}

.mp-section {
	width: 100%;
	padding: 12px;
	background: var(--section-background);
	border: 2px solid var(--section-border);
	    box-shadow: inset rgba(0, 0, 0, 0.08) 0px 0px 0px 2px;
}

.mp-wrapper>.mp-section {
	width: 100%;
}

.mp-inline-sections {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas: "site" "right" "left";
	gap: 6px;
	width: 100%;
}

#mp-section-site {
	grid-area: site;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.mp-left {
	grid-area: left;
}

.mp-right {
	grid-area: right;
}

.mp-left,
.mp-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mp-right>:last-child {
	flex: 1;
}

.mp-left-row {
	flex: 10 10 0;
}

.mp-sticky {
	position: sticky;
	top: 20px;
}

@media screen and (min-width: 990px) {
	.mp-inline-sections {
		grid-template-columns: 1fr 2fr;
		grid-template-rows: auto 1fr;
		grid-template-areas: "site right" "left right";
	}
}

.mp-wrapper h2 {
	font-family: revert;
	font-weight: bold;
	font-size: 1.2em;
	color: var(--wiki-content-link-color);
}

.mp-title {
	border: none;
	margin: 0;
	padding: 0 !important;
}

.mw-headline {
	font-family: var(--wiki-content-heading-font-family);
}

.mp-button {
	width: 100%;
	gap: 6px;
	cursor: pointer;
	position: relative;
	text-align: center;
	background-color: var(--button-color);
	color: var(--button-text-color, #000);
	font-size: 1em;
	font-weight: bold;
	transition-property: background-color, color, border-color, box-shadow, opacity, padding, margin;
	transition-duration: .1s;
}

.mp-button>* {
	--content-text-color: #fff;
}

body.mediawiki .mp-button>* {
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	margin: -2px;
	text-shadow: 1px 1px 0 var(--button-text-shadow-color);
	display: flex;
	gap: 6px;
	padding: 0 !important;
	text-align: center;
	align-items: center;
	justify-content: center;
	transition-property: padding, margin;
	transition-duration: .1s;
}

body.mediawiki .mp-button span>* {
	color: var(--button-text-color, #000) !important;
	text-decoration: none;
}

.mp-button::after {
	display: block;
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	mix-blend-mode: hard-light;
	transition: .4s background-color, box-shadow;
	pointer-events: none;
}

.mp-button:hover:not(:active)::after,
.mp-icon:hover:not(:active) .mp-button::after {
	background-color: var(--hover-mask);
}

.mp-button-wrapper {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px;
}

.mp-button-wrapper .mp-button {
	flex: 1 0 0;
	min-width: max-content;
	white-space: nowrap;
}

.mp-button.mp-button-progressive {
	background-color: var(--button-color-progressive);
	--button-text-color: #fff;
	--button-text-shadow-color: #157298cf;
	background: linear-gradient(to bottom right, var(--color-progressive--hover), var(--color-progressive));
}

.mp-button.mp-social-discord {
	--button-color: #5865f2;
}

.mp-button.mp-social-qq {
	background-color: #1ebafc;
}

.mp-wrapper .collapsible-content {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 300ms, visibility 300ms;
}

.mp-wrapper .collapsible-content>* {
	overflow: hidden;
}

.mp-wrapper .collapsible.collapsed .collapsible-content {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	overflow: hidden;
}

.mp-wrapper .collapsible.collapsed .collapsible-content>.mp-section {
	padding: 0;
	transition: padding 200ms;
}

.mp-button .collapsetoggle-custom {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	color: transparent !important;
	--button-text-color: transparent;
	user-select: none;
	display: flex;
	align-items: center;
}

body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle>h4,
body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle:active>h4 {
	padding-left: 12px !important;
	padding-right: 12px !important;
}

.mp-button.mp-button-collapsetoggle>::after {
	content: "";
	display: block;
	pointer-events: none;
	width: 16px;
	height: 16px;
	margin-left: auto;
	--mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-chevron-down' width='24' height='24' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpath d='M6 9l6 6l6 -6'%3E%3C/path%3E%3C/svg%3E") no-repeat;
	mask: var(--mask);
	mask-size: 100% 100%;
	mask-position: center center;
	background-color: var(--content-text-color);
	transform: rotate(180deg);
	transition: 300ms transform;
}

.collapsible.collapsed .mp-button.mp-button-collapsetoggle>::after {
	transform: rotate(0);
}

.mp-icon-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: auto;
	--icon-base-width: 120px;
	--icon-max-width: 200px;
}

.mp-icon {
	flex: 1 1 auto;
	width: var(--icon-base-width);
	max-width: var(--icon-max-width);
	display: flex;
	flex-direction: column;
	transition-property: padding, margin;
	transition-duration: .1s;
}

.mp-icon-link {
	flex: 1;
	margin: -2px 0 0;
	font-size: 14px;
	padding-left: 2px;
	padding-right: 2px;
}

.mp-icon-img {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--icon-background);
	transition-property: background-color, color, border-color, box-shadow, opacity, padding, margin;
	transition-duration: .4s;
	user-select: none;
}

.mp-icon:hover .mp-icon-img {
	background-color: var(--icon-background-hover);
}

.mp-icon-img a {
	padding: 12px;
}

.mp-icon-img a,
.mp-icon-img span {
	display: block;
	width: 100%;
	height: 100%;
	text-align: center;
}

.mp-icon-img img {
	max-width: unset !important;
	width: 40px !important;
	height: 40px !important;
	filter: drop-shadow(2px 2px 1px #00000030);
	object-fit: contain;
}

@media screen and (min-width: 1500px) and (max-width: 2600px) {
	.mp-main-icons {
		--icon-base-width: 6vw;
	}
}

@media screen and (max-width: 950px) {
	.mp-icon-wrapper.mp-main-icons {
		--icon-base-width: 70px;
		--icon-max-width: 100px;
	}

	.mp-icon-link {
		font-size: 12px;
	}

	.mp-icon-img a {
		padding: 6px;
	}

	.mp-icon-img img {
		width: 40px !important;
		height: 40px !important;
	}
}

.mp-highlight-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 7 0;
}

.mp-highlight {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	flex: 1 1 0;
	min-width: 300px;
	min-height: calc(150px + 5vh);
	max-height: 300px;
	position: relative;
	padding: 0;
	color: #fff !important;
	font-size: small;
	text-shadow: 1px 1px 8px #333, -1px -1px 8px #333;
}

.mp-section.mp-highlight::after {
	position: absolute;
	content: '';
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	pointer-events: none;
}

.mp-highlight *:not(a):not(.sprite-text) {
	color: #fff !important;
}

.mp-highlight a {
	color: #bed9ff !important;
}

.mp-highlight .hlist li:after {
	background-color: #fff !important;
}

.mp-highlight .mp-title {
	line-height: 1.2;
	margin-bottom: 6px;
}

.mp-highlight-image,
.mp-highlight-image img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	max-height: 300px;
	user-select: none;
}

.mp-highlight-top-description,
.mp-highlight-bottom-description {
	width: 100%;
}

.mp-highlight-top-description {
	background: linear-gradient(180deg, #0008 24px, transparent);
	padding: 12px;
	position: absolute;
	top: 0;
}

.mp-highlight-bottom-description {
	background: linear-gradient(to top, #0008 50%, transparent);
	padding: 12px;
	position: absolute;
	bottom: 0;
}

.mp-social-wrapper {
	display: flex;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 4px;
	width: 100%;
}

.mp-social-wrapper img {
	margin: 2px 0;
	user-select: none;
}

.mp-platform-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 5px;
}

.mp-platform {
	min-width: 260px;
	display: flex;
	gap: 5px;
	flex-direction: row;
	align-items: center;
}

@media screen and (max-width: 989px) {
	.mp-platform {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

.sr-only:not(:focus):not(:active) {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.hlist ul {
	display: inline;
	margin: 0;
	padding: 0;
}

.hlist li {
	display: inline;
}

.hlist li:not(:last-child) {
	padding-right: 0.286em;
}

.hlist li:not(:last-child)::after {
	content: "";
	display: inline-block;
	position: relative;
	left: 0.286em;
	bottom: 0.214em;
	background-color: #fff;
	height: 3px;
	width: 3px;
	border-radius: 16px;
}

/* Monitor */
.mp-monitor-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 10px;
}

.mp-monitor-card {
    flex: 1 1 calc(50% - 4px);
    background-color: var(--background-color-quiet, rgba(128, 128, 128, 0.05));
    border: 1px solid var(--border-color-subtle, rgba(128, 128, 128, 0.15));
    border-radius: var(--border-radius-base, 4px);
    padding: 12px 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mp-monitor-card:hover {
    background-color: var(--background-color-interactive, rgba(128, 128, 128, 0.08));
    border-color: var(--border-color-interactive, rgba(128, 128, 128, 0.3));
}

.mp-monitor-count {
    font-weight: bold;
    font-size: 1.5em;
    line-height: 1.2;
}

.mp-monitor-count a {
    color: var(--color-primary, #3a8ee6);
    text-decoration: none;
}

.mp-monitor-count a:hover {
    text-decoration: underline;
}

.mp-monitor-label {
    font-size: 0.9em;
    margin-top: 4px;
}

.mp-monitor-label a {
    color: var(--color-subtle, #777777);
    text-decoration: none;
}

.mp-monitor-label a:hover {
    text-decoration: underline;
}

/* 按钮和板块样式简化 */
.mp-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.mp-button {
    padding: 8px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.mp-button-primary {
    background: var(--color-primary);
    color: #fff !important;
}

.mp-button-secondary {
    background: var(--background-color-interactive);
    border: 1px solid var(--border-color-base);
    color: var(--color-base) !important;
}

.mp-icon-img {
    border-radius: 6px 6px 0 0;
}

.mp-section {
    border: none !important;
    box-shadow: none!important;
    border-radius: 6px;
}