模板:Mainpage/styles.css:修订间差异
来自星露谷物语扩展百科
更多操作
删除的内容 添加的内容
无编辑摘要 |
标签:撤销 |
||
| 第1行: | 第1行: | ||
.mp-wrapper { |
.mp-wrapper { |
||
--button-color-progressive: #9cbf57; |
|||
--mp-surface-0: var( --color-surface-0 ); |
|||
--button-border-color: #68686b; |
|||
--mp-surface-1: var( --color-surface-1 ); |
|||
--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- |
flex-wrap: wrap; |
||
gap: clamp( 12px, 2vw, 20px ); |
|||
width: 100%; |
width: 100%; |
||
gap: 6px; |
|||
color: var( --mp-text ); |
|||
--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- |
.mp-section { |
||
width: 100%; |
|||
color: var( --mp-link ); |
|||
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-wrapper>.mp-section { |
||
width: 100%; |
|||
.mp-wrapper ul { |
|||
margin-top: 0; |
|||
margin-bottom: 0; |
|||
} |
} |
||
.mp- |
.mp-inline-sections { |
||
display: grid; |
|||
padding-left: 1.2rem; |
|||
grid-template-columns: 1fr; |
|||
grid-template-areas: "site" "right" "left"; |
|||
gap: 6px; |
|||
width: 100%; |
|||
} |
} |
||
#mp-section-site { |
|||
grid-area: site; |
|||
display: flex; |
|||
padding: 0 !important; |
|||
flex-direction: column; |
|||
border: 0; |
|||
gap: 8px; |
|||
color: var( --mp-text ); |
|||
align-items: center; |
|||
} |
} |
||
.mp- |
.mp-left { |
||
grid-area: left; |
|||
position: relative; |
|||
} |
|||
overflow: hidden; |
|||
padding: clamp( 16px, 2vw, 24px ); |
|||
.mp-right { |
|||
background: linear-gradient( 180deg, var( --mp-surface-1 ), var( --mp-surface-0 ) ); |
|||
grid-area: right; |
|||
border: 1px solid var( --mp-border ); |
|||
border-radius: var( --border-radius-large ); |
|||
box-shadow: var( --box-shadow-border ); |
|||
} |
} |
||
.mp-left, |
|||
.mp-section-header { |
|||
.mp-right { |
|||
display: flex; |
display: flex; |
||
flex-direction: column; |
flex-direction: column; |
||
gap: 6px; |
gap: 6px; |
||
margin-bottom: 16px; |
|||
} |
} |
||
.mp- |
.mp-right>:last-child { |
||
flex: 1; |
|||
.mp-muted { |
|||
color: var( --mp-subtle ); |
|||
font-size: 0.95rem; |
|||
line-height: 1.7; |
|||
} |
} |
||
.mp- |
.mp-left-row { |
||
flex: 10 10 0; |
|||
padding-block: 14px; |
|||
background: linear-gradient( 135deg, var( --mp-progressive-subtle ), var( --mp-surface-1 ) 65% ); |
|||
} |
} |
||
.mp- |
.mp-sticky { |
||
position: sticky; |
|||
font-size: var( --font-size-small ); |
|||
top: 20px; |
|||
} |
} |
||
@media screen and (min-width: 990px) { |
|||
.mp-hero-grid, |
|||
.mp- |
.mp-inline-sections { |
||
grid-template-columns: 1fr 2fr; |
|||
display: grid; |
|||
grid-template-rows: auto 1fr; |
|||
gap: clamp( 12px, 2vw, 20px ); |
|||
grid-template-areas: "site right" "left right"; |
|||
} |
|||
} |
} |
||
.mp- |
.mp-wrapper h2 { |
||
font-family: revert; |
|||
grid-template-columns: minmax( 0, 1.65fr ) minmax( 280px, 0.9fr ); |
|||
font-weight: bold; |
|||
font-size: 1.2em; |
|||
color: var(--wiki-content-link-color); |
|||
} |
} |
||
.mp- |
.mp-title { |
||
border: none; |
|||
margin: 0; |
|||
grid-template-columns: minmax( 0, 1.05fr ) minmax( 260px, 0.95fr ); |
|||
padding: 0 !important; |
|||
gap: clamp( 16px, 2vw, 24px ); |
|||
padding: clamp( 18px, 2.4vw, 28px ); |
|||
background: linear-gradient( 135deg, var( --mp-progressive-subtle ), var( --mp-surface-0 ) 38%, var( --mp-surface-1 ) 100% ); |
|||
} |
} |
||
.mw-headline { |
|||
.mp-hero__copy, |
|||
font-family: var(--wiki-content-heading-font-family); |
|||
.mp-side-stack, |
|||
.mp-side-card { |
|||
display: flex; |
|||
flex-direction: column; |
|||
gap: 14px; |
|||
} |
} |
||
.mp- |
.mp-button { |
||
width: 100%; |
|||
display: inline-flex; |
|||
gap: 6px; |
|||
align-items: center; |
|||
cursor: pointer; |
|||
width: fit-content; |
|||
position: relative; |
|||
padding: 6px 10px; |
|||
text-align: center; |
|||
background: var( --mp-surface-0 ); |
|||
background-color: var(--button-color); |
|||
color: var(--button-text-color, #000); |
|||
border-radius: 999px; |
|||
font-size: 1em; |
|||
color: var( --mp-progressive ); |
|||
font- |
font-weight: bold; |
||
transition-property: background-color, color, border-color, box-shadow, opacity, padding, margin; |
|||
font-weight: 700; |
|||
transition-duration: .1s; |
|||
text-transform: uppercase; |
|||
} |
} |
||
.mp- |
.mp-button>* { |
||
--content-text-color: #fff; |
|||
font-size: clamp( 2rem, 4vw, 3.2rem ); |
|||
line-height: 1.05; |
|||
} |
} |
||
body.mediawiki .mp-button>* { |
|||
.mp-hero__lead { |
|||
width: calc(100% + 4px); |
|||
font-size: var( --font-size-x-large ); |
|||
height: calc(100% + 4px); |
|||
font-weight: 700; |
|||
margin: -2px; |
|||
text-shadow: 1px 1px 0 var(--button-text-shadow-color); |
|||
} |
|||
.mp-hero__text { |
|||
color: var( --mp-subtle ); |
|||
font-size: var( --font-size-large ); |
|||
line-height: 1.8; |
|||
} |
|||
.mp-pill-row { |
|||
display: flex; |
display: flex; |
||
gap: 6px; |
|||
padding: 8px 10px !important; |
|||
text-align: center; |
|||
} |
|||
.mp-pill { |
|||
display: inline-flex; |
|||
align-items: center; |
align-items: center; |
||
justify-content: center; |
|||
padding: 7px 12px; |
|||
transition-property: padding, margin; |
|||
background: var( --mp-surface-0 ); |
|||
transition-duration: .1s; |
|||
border: 1px solid var( --mp-border ); |
|||
border-radius: 999px; |
|||
color: var( --mp-subtle ); |
|||
font-size: var( --font-size-small ); |
|||
} |
} |
||
body.mediawiki .mp-button span>* { |
|||
.mp-stat-grid { |
|||
color: var(--button-text-color, #000) !important; |
|||
display: grid; |
|||
text-decoration: none; |
|||
grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); |
|||
gap: 10px; |
|||
} |
} |
||
.mp- |
.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; |
||
content: ''; |
|||
text-decoration: none; |
|||
position: absolute; |
|||
} |
|||
top: 0; |
|||
left: 0; |
|||
.mp-stat-card__label, |
|||
width: 100%; |
|||
.mp-monitor-card__label { |
|||
height: 100%; |
|||
color: var( --mp-subtle ); |
|||
z-index: 1; |
|||
font-size: var( --font-size-small ); |
|||
mix-blend-mode: hard-light; |
|||
transition: .4s background-color, box-shadow; |
|||
pointer-events: none; |
|||
} |
} |
||
.mp-button:hover:not(:active)::after, |
|||
.mp-monitor-card__value a { |
|||
.mp-icon:hover:not(:active) .mp-button::after { |
|||
color: var( --mp-progressive ) !important; |
|||
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: |
gap: 4px; |
||
} |
} |
||
.mp-button-wrapper .mp-button { |
|||
.mp-hero__actions, |
|||
flex: 1 0 0; |
|||
.mp-edit-actions { |
|||
min-width: max-content; |
|||
display: grid; |
|||
white-space: nowrap; |
|||
grid-template-columns: repeat( auto-fit, minmax( 172px, 1fr ) ); |
|||
align-items: stretch; |
|||
} |
} |
||
.mp-button { |
.mp-button.mp-button-progressive { |
||
background-color: var(--button-color-progressive); |
|||
position: relative; |
|||
--button-text-color: #fff; |
|||
flex: 1 1 160px; |
|||
--button-text-shadow-color: #157298cf; |
|||
min-width: 0; |
|||
background: |
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 |
.mp-button.mp-social-discord { |
||
--button-color: #5865f2; |
|||
background: var( --mp-quiet-hover ); |
|||
transform: translateY( -2px ); |
|||
} |
} |
||
.mp- |
.mp-button.mp-social-qq { |
||
background-color: #1ebafc; |
|||
display: flex; |
|||
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-wrapper .collapsible-content { |
||
display: grid; |
|||
color: var( --mp-text ) !important; |
|||
grid-template-rows: 1fr; |
|||
text-decoration: none; |
|||
transition: grid-template-rows 300ms, visibility 300ms; |
|||
} |
} |
||
.mp-wrapper .collapsible-content>* { |
|||
.mp-button.mp-button-progressive { |
|||
overflow: hidden; |
|||
background: linear-gradient( 135deg, var( --mp-progressive-hover ), var( --mp-progressive ) ); |
|||
border-color: transparent; |
|||
box-shadow: var( --box-shadow-medium ); |
|||
} |
} |
||
.mp-wrapper .collapsible.collapsed .collapsible-content { |
|||
.mp-button.mp-button-progressive:hover { |
|||
display: grid; |
|||
filter: saturate( 1.08 ); |
|||
grid-template-rows: 0fr; |
|||
visibility: hidden; |
|||
overflow: hidden; |
|||
} |
} |
||
.mp-wrapper . |
.mp-wrapper .collapsible.collapsed .collapsible-content>.mp-section { |
||
padding: 0; |
|||
color: var( --color-inverted-primary ) !important; |
|||
transition: padding 200ms; |
|||
} |
} |
||
.mp-button .collapsetoggle-custom { |
|||
.mp-hero__media { |
|||
position: absolute; |
|||
min-height: clamp( 280px, 32vw, 420px ); |
|||
left: 0; |
|||
aspect-ratio: 16 / 11; |
|||
right: 0; |
|||
background: var( --mp-surface-2 ); |
|||
top: 0; |
|||
border-radius: calc( var( --border-radius-large ) - 4px ); |
|||
bottom: 0; |
|||
box-shadow: var( --box-shadow-large ); |
|||
color: transparent !important; |
|||
overflow: hidden; |
|||
--button-text-color: transparent; |
|||
user-select: none; |
|||
display: flex; |
|||
align-items: center; |
|||
} |
} |
||
body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle>h4, |
|||
.mp-hero__media > *, |
|||
body.mediawiki .collapsible .mp-button.mp-button-collapsetoggle:active>h4 { |
|||
.mp-hero__media > * > * { |
|||
padding-left: 12px !important; |
|||
display: block; |
|||
padding-right: 12px !important; |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
} |
||
.mp-button.mp-button-collapsetoggle>::after { |
|||
.mp-hero__media img { |
|||
content: ""; |
|||
display: block; |
display: block; |
||
pointer-events: none; |
|||
width: 100%; |
|||
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 { |
|||
.mp-link-list { |
|||
transform: rotate(0); |
|||
display: grid; |
|||
gap: 10px; |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style: none; |
|||
} |
} |
||
.mp- |
.mp-icon-wrapper { |
||
display: flex; |
|||
flex-wrap: wrap; |
|||
justify-content: center; |
|||
gap: 8px; |
|||
margin: auto; |
|||
--icon-base-width: 90px; |
|||
--icon-max-width: 200px; |
|||
} |
} |
||
.mp- |
.mp-icon { |
||
flex: 1 1 auto; |
|||
width: var(--icon-base-width); |
|||
max-width: var(--icon-max-width); |
|||
display: flex; |
display: flex; |
||
flex-direction: column; |
|||
align-items: center; |
|||
transition-property: padding, margin; |
|||
justify-content: space-between; |
|||
transition-duration: .1s; |
|||
gap: 12px; |
|||
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- |
.mp-icon-link { |
||
flex: 1; |
|||
margin: -2px 0 0; |
|||
color: var( --mp-progressive ); |
|||
font-size: |
font-size: 14px; |
||
padding-left: 2px; |
|||
padding-right: 2px; |
|||
} |
} |
||
.mp- |
.mp-icon-img { |
||
display: flex; |
|||
.mp-chip-link > a:hover { |
|||
align-items: center; |
|||
background: var( --mp-quiet-hover ); |
|||
justify-content: center; |
|||
transform: translateY( -2px ); |
|||
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( |
background-color: var(--icon-background-hover); |
||
} |
} |
||
.mp- |
.mp-icon-img a { |
||
padding: 12px; |
|||
flex-wrap: wrap; |
|||
gap: 10px; |
|||
} |
} |
||
.mp- |
.mp-icon-img a, |
||
.mp-icon-img span { |
|||
display: inline-flex; |
|||
display: block; |
|||
width: 100%; |
|||
height: 100%; |
|||
text-align: center; |
|||
} |
} |
||
.mp- |
.mp-icon-img img { |
||
max-width: unset !important; |
|||
display: inline-flex; |
|||
width: 40px !important; |
|||
align-items: center; |
|||
height: 40px !important; |
|||
filter: drop-shadow(2px 2px 1px #00000030); |
|||
padding: 10px 12px; |
|||
object-fit: contain; |
|||
background: var( --mp-surface-2 ); |
|||
border: 1px solid var( --mp-border ); |
|||
border-radius: 999px; |
|||
color: var( --mp-text ); |
|||
text-decoration: none; |
|||
transition: background-color 200ms ease, transform 200ms ease; |
|||
} |
} |
||
@media screen and (min-width: 1500px) and (max-width: 2600px) { |
|||
.mp-grid--primary { |
|||
.mp-main-icons { |
|||
grid-template-columns: minmax( 0, 1.12fr ) minmax( 320px, 0.88fr ); |
|||
--icon-base-width: 6vw; |
|||
} |
|||
} |
} |
||
@media screen and (max-width: 950px) { |
|||
.mp-grid--support { |
|||
.mp-icon-wrapper.mp-main-icons { |
|||
grid-template-columns: minmax( 0, 1.18fr ) minmax( 300px, 0.82fr ); |
|||
--icon-base-width: 70px; |
|||
grid-template-areas: |
|||
--icon-max-width: 100px; |
|||
"monitor edit" |
|||
} |
|||
"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- |
.mp-highlight-wrapper { |
||
.mp-support-card { |
|||
display: flex; |
display: flex; |
||
flex- |
flex-wrap: wrap; |
||
gap: |
gap: 8px; |
||
flex: 0 7 0; |
|||
} |
} |
||
.mp-highlight { |
|||
.mp-primary-card .mp-section-header, |
|||
background-size: cover; |
|||
.mp-support-card .mp-section-header { |
|||
background-position: center; |
|||
margin-bottom: 18px; |
|||
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- |
.mp-section.mp-highlight::after { |
||
position: absolute; |
|||
grid-area: monitor; |
|||
content: ''; |
|||
top: 0; |
|||
bottom: 0; |
|||
left: 0; |
|||
right: 0; |
|||
pointer-events: none; |
|||
} |
} |
||
.mp-highlight *:not(a):not(.sprite-text) { |
|||
.mp-support-card--edit { |
|||
color: #fff !important; |
|||
grid-area: edit; |
|||
} |
} |
||
.mp- |
.mp-highlight a { |
||
color: #bed9ff !important; |
|||
grid-area: about; |
|||
} |
} |
||
.mp-highlight .hlist li:after { |
|||
.mp-support-card--monitor .mp-monitor-grid { |
|||
background-color: #fff !important; |
|||
margin-top: 2px; |
|||
} |
} |
||
.mp- |
.mp-highlight .mp-title { |
||
line-height: 1.2; |
|||
margin-bottom: 6px; |
|||
} |
} |
||
.mp-highlight-image, |
|||
.mp-support-card--about .mp-mod-icons { |
|||
.mp-highlight-image img { |
|||
margin-top: 2px; |
|||
object-fit: cover; |
|||
width: 100%; |
|||
height: 100%; |
|||
max-height: 300px; |
|||
user-select: none; |
|||
} |
} |
||
.mp-highlight-top-description, |
|||
.mp-icon-wrapper { |
|||
.mp-highlight-bottom-description { |
|||
display: grid; |
|||
width: 100%; |
|||
} |
} |
||
.mp-highlight-top-description { |
|||
.mp-main-icons, |
|||
background: linear-gradient(180deg, #0008 24px, transparent); |
|||
.mp-sub-icons { |
|||
padding: 12px; |
|||
grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); |
|||
position: absolute; |
|||
top: 0; |
|||
} |
} |
||
.mp- |
.mp-highlight-bottom-description { |
||
background: linear-gradient(to top, #0008 50%, transparent); |
|||
grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); |
|||
padding: 12px; |
|||
position: absolute; |
|||
bottom: 0; |
|||
} |
} |
||
.mp- |
.mp-social-wrapper { |
||
display: flex; |
display: flex; |
||
display: grid; |
|||
flex-direction: column; |
|||
grid-auto-columns: minmax(0, 1fr); |
|||
min-width: 0; |
|||
grid-auto-flow: column; |
|||
transition: transform 200ms ease; |
|||
gap: 4px; |
|||
width: 100%; |
|||
} |
} |
||
.mp- |
.mp-social-wrapper img { |
||
margin: 2px 0; |
|||
user-select: none; |
|||
} |
} |
||
.mp- |
.mp-platform-wrapper { |
||
.mp-icon-link { |
|||
transition: background-color 200ms ease, transform 200ms ease; |
|||
} |
|||
.mp-icon-img { |
|||
display: flex; |
display: flex; |
||
flex-wrap: wrap; |
|||
justify-content: center; |
justify-content: center; |
||
gap: 6px; |
|||
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- |
.mp-platform { |
||
min-width: 260px; |
|||
.mp-icon-img span { |
|||
display: flex; |
display: flex; |
||
gap: 5px; |
|||
flex-direction: row; |
|||
align-items: center; |
align-items: center; |
||
justify-content: center; |
|||
width: 100%; |
|||
height: 100%; |
|||
} |
} |
||
@media screen and (max-width: 989px) { |
|||
.mp-icon-img img { |
|||
.mp-platform { |
|||
width: 56px !important; |
|||
flex-direction: row; |
|||
height: 56px !important; |
|||
flex-wrap: wrap; |
|||
max-width: none !important; |
|||
object-fit: contain; |
|||
filter: drop-shadow( 0 6px 12px rgba( 0, 0, 0, 0.15 ) ); |
|||
} |
|||
.mp-icon-link { |
|||
margin-top: -1px; |
|||
background: var( --mp-surface-0 ); |
|||
border: 1px solid var( --mp-border ); |
|||
border-radius: var( --border-radius-base ); |
|||
box-shadow: var( --box-shadow-border ); |
|||
} |
|||
.mp-wrapper .mp-icon-link > * { |
|||
min-height: 52px; |
|||
padding: 10px 10px !important; |
|||
line-height: 1.35; |
|||
} |
|||
.mp-wrapper .mp-icon-link span * { |
|||
color: var( --mp-text ) !important; |
|||
text-decoration: none; |
|||
} |
|||
.mp-monitor-grid { |
|||
display: grid; |
|||
grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); |
|||
gap: 12px; |
|||
} |
|||
@media screen and ( max-width: 1200px ) { |
|||
.mp-hero-grid, |
|||
.mp-grid--primary { |
|||
grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); |
|||
} |
|||
.mp-grid--support { |
|||
grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); |
|||
grid-template-areas: |
|||
"monitor edit" |
|||
"about about"; |
|||
} |
} |
||
} |
} |
||
.sr-only:not(:focus):not(:active) { |
|||
@media screen and ( max-width: 980px ) { |
|||
clip-path: inset(50%); |
|||
.mp-hero-grid, |
|||
height: 1px; |
|||
.mp-hero, |
|||
overflow: hidden; |
|||
.mp-grid--primary, |
|||
position: absolute; |
|||
.mp-grid--support { |
|||
white-space: nowrap; |
|||
grid-template-columns: 1fr; |
|||
width: 1px; |
|||
} |
|||
.mp-grid--support { |
|||
grid-template-areas: |
|||
"monitor" |
|||
"edit" |
|||
"about"; |
|||
} |
|||
.mp-main-icons, |
|||
.mp-sub-icons { |
|||
grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); |
|||
} |
|||
.mp-hero__actions { |
|||
grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); |
|||
} |
|||
} |
} |
||
.hlist ul { |
|||
@media screen and ( max-width: 820px ) { |
|||
display: inline; |
|||
.mp-main-icons, |
|||
margin: 0; |
|||
.mp-sub-icons, |
|||
padding: 0; |
|||
.mp-mod-icons { |
|||
grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); |
|||
} |
|||
} |
} |
||
.hlist li { |
|||
@media screen and ( max-width: 720px ) { |
|||
display: inline; |
|||
.mp-section { |
|||
padding: 16px; |
|||
} |
|||
.mp-hero__title { |
|||
font-size: var( --font-size-xxx-large ); |
|||
} |
|||
.mp-hero__lead { |
|||
font-size: var( --font-size-large ); |
|||
} |
|||
.mp-stat-grid, |
|||
.mp-monitor-grid { |
|||
grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); |
|||
} |
|||
.mp-hero__media { |
|||
min-height: 240px; |
|||
} |
|||
.mp-icon-img { |
|||
min-height: 92px; |
|||
} |
|||
.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 > * { |
|||
min-height: 48px; |
|||
padding: 9px 8px !important; |
|||
} |
|||
} |
} |
||
.hlist li:not(:last-child) { |
|||
@media screen and ( max-width: 560px ) { |
|||
padding-right: 0.286em; |
|||
.mp-main-icons, |
|||
.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; |
|||
} |
|||
} |
} |
||
.hlist li:not(:last-child)::after { |
|||
@media screen and ( max-width: 480px ) { |
|||
content: ""; |
|||
.mp-button-wrapper { |
|||
display: inline-block; |
|||
flex-direction: column; |
|||
position: relative; |
|||
} |
|||
left: 0.286em; |
|||
bottom: 0.214em; |
|||
.mp-button { |
|||
background-color: #fff; |
|||
flex-basis: auto; |
|||
height: 3px; |
|||
} |
|||
width: 3px; |
|||
border-radius: 16px; |
|||
} |
} |
||
2026年4月24日 (五) 11:36的版本
.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: 8px 10px !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: 90px;
--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;
}