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

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

来自星露谷物语扩展百科
Sizau留言 | 贡献
创建页面
 
Sizau留言 | 贡献
无编辑摘要
第65行: 第65行:
.mp-section {
.mp-section {
padding: 12px;
padding: 12px;
box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 5px 0px;
background: #f7fbfc;
    border: 2px solid #e1e8ed;
box-shadow: rgba(0, 0, 0, 0.08) 2px 2px 5px 0px;
}
 
html.skin-theme-clientpref-night .mp-section {
background: #1c1b1b;
background: #1c1b1b;
border: 2px solid #212121;
border: 2px solid #212121;
box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 5px 0px;
}
}



2026年1月17日 (六) 16:46的版本

.mp-wrapper {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 6px;
}

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

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

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

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

.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;
}

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

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

.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-section {
	padding: 12px;
	background: #f7fbfc;
    border: 2px solid #e1e8ed;
	box-shadow: rgba(0, 0, 0, 0.08) 2px 2px 5px 0px;
}

html.skin-theme-clientpref-night .mp-section {
	background: #1c1b1b;
	border: 2px solid #212121;
	box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 5px 0px;
}

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

.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;
	/* Hide one pixel container when collapsed */
	overflow: hidden;
}

/* Remove padding when collapsed */
.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-wrapper {
	--button-color: #4e4f51;
	--button-color-progressive: #9cbf57;
	--button-text-color: #fff;
	--button-border-color: #68686b;
}

.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.mp-button-progressive {
	background-color: var(--button-color-progressive);
	--button-text-color: #FFF;
	--button-text-shadow-color: #2b69115c;
	background: linear-gradient(to bottom right, rgb(123 214 80), rgb(81 135 44));
}

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>* {
	--content-text-color: #fff;
}

.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-social-wrapper {
	display: flex;
	/** fallback when grid is not supported */
	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-button.mp-social-discord {
	--button-color: #5865f2;
}

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

.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;
}

/* responsive icon size */
@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 {
	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: #ffffff10;
	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: #ffffff20;
}

.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: 60px !important;
	height: 60px !important;
	filter: drop-shadow(2px 2px 1px #00000030);
	object-fit: contain;
}


@media screen and (max-width: 950px) {
	.mp-icon-link {
		font-size: 12px;
	}

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

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

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

/* Highlights panel */
.mp-highlight-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mp-highlight {
	max-height: 300px;
}

.mp-highlight-image img,
.mp-highlight-image {
	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-highlight {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	flex: 1 1 0;
	min-width: 300px;
	min-height: calc(150px + 5vh);
	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-wrapper {
	flex: 0 7 0;
}

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

.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-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;
	}
}

/* grow last tile in right column if left column is larger */
.mp-right> :last-child {
	flex: 1;
}

.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;
}

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

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

/**
 * [[Category:模板样式]]
 **/