MediaWiki:Common.css:修订间差异
外观
删除的内容 添加的内容
小 导入1个版本:恢复 |
Maintenance script(留言 | 贡献) 调整首页快捷卡片为嵌套网格对齐 |
||
| (未显示2个用户的77个中间版本) | |||
| 第1行: | 第1行: | ||
/* 全局字体设置,覆盖中文、日文、韩文等东亚语言 */ |
|||
body { |
body { |
||
font-family: var(--font-family-citizen-base), var(--font-family-language-base), |
|||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP", "Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei", "Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic"; |
|||
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", |
|||
"Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif; |
|||
} |
} |
||
.mw-redirect { |
|||
/* 横幅标语样式 */ |
|||
color: #14866d; |
|||
.banner { |
|||
font-weight: 500; |
|||
height: 100px; /* 高度设置为100px */ |
|||
display: flex; /* 使用Flexbox布局 */ |
|||
flex-direction: column; /* 子元素垂直排列 */ |
|||
justify-content: center; /* 垂直方向居中 */ |
|||
/* background-color: #ffffe0; 背景颜色设置为淡黄色 */ |
|||
color: #ff0000; /* 文字颜色设置为红色 */ |
|||
font-weight: bold; /* 字体加粗 */ |
|||
border-radius: 10px; /* 圆角 */ |
|||
padding: 0 20px; /* 内边距 */ |
|||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */ |
|||
} |
} |
||
.mw-redirect:hover { |
|||
.banner-text { |
|||
color: #0f6f59; |
|||
margin: 0; /* 外边距设置为0 */ |
|||
text-decoration: underline; |
|||
line-height: 1.2; /* 行高 */ |
|||
} |
} |
||
#p-lang ul { |
|||
.banner .chinese-text { |
|||
list-style: none; |
|||
text-align: left; /* 左对齐 */ |
|||
padding: 0; |
|||
font-size: 24px; /* 字体大小 */ |
|||
margin: 10px 0; |
|||
} |
} |
||
#p-lang li { |
|||
.banner .english-text { |
|||
display: inline-block; |
|||
text-align: right; /* 右对齐 */ |
|||
margin-right: 10px; |
|||
font-size: 16px; /* 字体大小 */ |
|||
} |
} |
||
.mw-parser-output .mw-mainpage { |
|||
/* 内容块样式 */ |
|||
--mainpage-blue: #2f6fe4; |
|||
.content-box { |
|||
--mainpage-red: #e43d30; |
|||
margin: 10px; /* 外边距 */ |
|||
--mainpage-green: #00a878; |
|||
padding: 20px; /* 内边距 */ |
|||
--mainpage-yellow: #f2b705; |
|||
border-radius: 10px; /* 圆角 */ |
|||
--mainpage-ink: var(--color-emphasized, #202122); |
|||
background: linear-gradient(135deg, #ffffff, #f0f0f0); /* 渐变背景 */ |
|||
--mainpage-text: var(--color-base, #202122); |
|||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */ |
|||
--mainpage-muted: var(--color-subtle, #54595d); |
|||
border: 1px solid #e0e0e0; /* 边框 */ |
|||
--mainpage-line: var(--border-color-base, #c8ccd1); |
|||
transition: transform 0.3s ease, box-shadow 0.3s ease; /* 过渡效果 */ |
|||
--mainpage-surface: var(--color-surface-1, #fff); |
|||
--mainpage-surface-soft: var(--color-surface-2, #f8f9fa); |
|||
display: flex; |
|||
flex-direction: column; |
|||
gap: 1.25rem; |
|||
} |
} |
||
.mw-parser-output .mw-mainpage a { |
|||
.content-box:hover { |
|||
font-weight: 650; |
|||
transform: translateY(-5px); /* 向上移动5px */ |
|||
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */ |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-portal { |
|||
.content-box h2 { |
|||
display: grid; |
|||
position: relative; /* 相对定位 */ |
|||
grid-template-columns: 7rem minmax(0, 1fr); |
|||
padding-bottom: 10px; /* 下内边距 */ |
|||
gap: 1.25rem; |
|||
margin-bottom: 10px; /* 下外边距 */ |
|||
align-items: center; |
|||
border-bottom: 2px solid #ff0000; /* 下边框 */ |
|||
padding: 1.75rem; |
|||
color: #333; /* 字体颜色 */ |
|||
border: 1px solid var(--mainpage-line); |
|||
border-radius: 8px; |
|||
background: |
|||
linear-gradient(135deg, rgba(47, 111, 228, 0.14), transparent 38%), |
|||
linear-gradient(315deg, rgba(0, 168, 120, 0.12), transparent 38%), |
|||
linear-gradient(45deg, rgba(242, 183, 5, 0.10), transparent 30%), |
|||
var(--mainpage-surface); |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-logo-mark { |
|||
.content-box p { |
|||
width: 6.25rem; |
|||
line-height: 1.6; /* 行高 */ |
|||
height: 6.25rem; |
|||
color: #666; /* 字体颜色 */ |
|||
background-image: url("/images/logos/icon.png"); |
|||
background-repeat: no-repeat; |
|||
background-position: center; |
|||
background-size: contain; |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-kicker { |
|||
/* Flex容器样式 */ |
|||
margin: 0 0 0.25rem; |
|||
.flex-container { |
|||
color: var(--mainpage-blue); |
|||
display: flex; /* 使用Flexbox布局 */ |
|||
font-size: 0.9rem; |
|||
justify-content: space-between; /* 子元素均匀分布 */ |
|||
font-weight: 800; |
|||
gap: 20px; /* 子元素间距 */ |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-title { |
|||
.flex-container .content-box { |
|||
margin: 0; |
|||
flex: 1; /* 伸缩性 */ |
|||
color: var(--mainpage-ink); |
|||
max-width: 33.33%; /* 最大宽度 */ |
|||
font-size: clamp(2rem, 5vw, 3.4rem); |
|||
box-sizing: border-box; /* 包括内边距和边框在内计算宽度 */ |
|||
font-weight: 850; |
|||
line-height: 1.1; |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-subtitle { |
|||
/* 移动设备优化 */ |
|||
max-width: 44rem; |
|||
margin: 0.75rem 0 0; |
|||
.flex-container { |
|||
color: var(--mainpage-text); |
|||
flex-direction: column; /* 子元素垂直排列 */ |
|||
font-size: 1.05rem; |
|||
line-height: 1.7; |
|||
} |
|||
.mw-parser-output .mw-mainpage-quote { |
|||
margin: 1rem 0 0; |
|||
color: var(--mainpage-muted); |
|||
font-size: 0.95rem; |
|||
line-height: 1.7; |
|||
} |
|||
.mw-parser-output .mw-mainpage-quote-source { |
|||
margin: 0.15rem 0 0; |
|||
color: var(--mainpage-muted); |
|||
font-size: 0.85rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-row { |
|||
display: grid; |
|||
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr); |
|||
gap: 1.25rem; |
|||
align-items: stretch; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-main { |
|||
display: grid; |
|||
grid-template-columns: repeat(3, minmax(0, 1fr)); |
|||
gap: 0.75rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-main .mw-mainpage-search-card:first-child { |
|||
grid-column: span 2; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card, |
|||
.mw-parser-output .mw-mainpage-project, |
|||
.mw-parser-output .mw-mainpage-feature, |
|||
.mw-parser-output .mw-mainpage-panel { |
|||
border: 1px solid var(--mainpage-line); |
|||
border-radius: 8px; |
|||
background: var(--mainpage-surface); |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card { |
|||
padding: 1rem 1.25rem 1.05rem; |
|||
background: var(--mainpage-surface-soft); |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-label { |
|||
display: block; |
|||
margin-bottom: 0.7rem; |
|||
color: var(--mainpage-muted); |
|||
font-size: 0.78rem; |
|||
font-weight: 700; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .searchbox, |
|||
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-form { |
|||
display: flex; |
|||
gap: 0; |
|||
align-items: center; |
|||
margin: 0; |
|||
width: 100%; |
|||
font-size: 0; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-centered { |
|||
margin: 0; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .cdx-text-input { |
|||
flex: 1 1 14rem; |
|||
min-width: 0; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .searchboxInput, |
|||
.mw-parser-output .mw-mainpage-search-card .mw-searchInput { |
|||
flex: 1 1 14rem; |
|||
min-width: 0; |
|||
max-width: 100%; |
|||
min-height: 2.35rem; |
|||
box-sizing: border-box; |
|||
font-size: 1rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .mw-ui-button, |
|||
.mw-parser-output .mw-mainpage-search-card .cdx-button, |
|||
.mw-parser-output .mw-mainpage-search-card input[type="submit"] { |
|||
flex: 0 0 auto; |
|||
min-height: 2.35rem; |
|||
padding-inline: 0.8rem; |
|||
font-size: 1rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-search-card .cdx-text-input + input[type="submit"], |
|||
.mw-parser-output .mw-mainpage-search-card input[type="submit"] + input[type="submit"] { |
|||
margin-left: 0.55rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-layout { |
|||
display: grid; |
|||
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr); |
|||
gap: 1.25rem; |
|||
align-items: stretch; |
|||
} |
|||
.mw-parser-output .mw-mainpage-main, |
|||
.mw-parser-output .mw-mainpage-aside { |
|||
display: flex; |
|||
flex-direction: column; |
|||
gap: 1.25rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-main { |
|||
min-height: 100%; |
|||
} |
|||
.mw-parser-output .mw-mainpage-aside { |
|||
min-height: 100%; |
|||
} |
|||
.mw-parser-output .mw-mainpage-recent-panel { |
|||
flex: 1; |
|||
min-height: 100%; |
|||
} |
|||
.mw-parser-output .mw-mainpage-section-heading h2, |
|||
.mw-parser-output .mw-mainpage-panel h2, |
|||
.mw-parser-output .mw-mainpage-feature h2 { |
|||
margin-top: 0; |
|||
color: var(--mainpage-ink); |
|||
} |
|||
.mw-parser-output .mw-mainpage-section-heading p, |
|||
.mw-parser-output .mw-mainpage-feature p, |
|||
.mw-parser-output .mw-mainpage-panel p { |
|||
color: var(--mainpage-muted); |
|||
line-height: 1.7; |
|||
} |
|||
.mw-parser-output .mw-mainpage-project-grid { |
|||
display: grid; |
|||
grid-template-columns: repeat(3, minmax(0, 1fr)); |
|||
gap: 0.75rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-project, |
|||
.mw-parser-output .mw-mainpage-feature, |
|||
.mw-parser-output .mw-mainpage-panel { |
|||
padding: 1rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-project, |
|||
.mw-parser-output .mw-mainpage-search-card { |
|||
border-top-width: 4px; |
|||
} |
|||
.mw-parser-output .mw-mainpage-accent-blue { |
|||
border-top-color: var(--mainpage-blue); |
|||
} |
|||
.mw-parser-output .mw-mainpage-accent-red { |
|||
border-top-color: var(--mainpage-red); |
|||
} |
|||
.mw-parser-output .mw-mainpage-accent-green { |
|||
border-top-color: var(--mainpage-green); |
|||
} |
|||
.mw-parser-output .mw-mainpage-accent-yellow { |
|||
border-top-color: var(--mainpage-yellow); |
|||
} |
|||
.mw-parser-output .mw-mainpage-project h3 { |
|||
margin: 0 0 0.45rem; |
|||
font-size: 1.05rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-project p { |
|||
margin: 0; |
|||
color: var(--mainpage-muted); |
|||
font-size: 0.92rem; |
|||
line-height: 1.6; |
|||
} |
|||
.mw-parser-output .mw-mainpage-link-cloud { |
|||
display: flex; |
|||
flex-wrap: wrap; |
|||
column-gap: 0.65rem; |
|||
row-gap: 0.7rem; |
|||
align-items: flex-start; |
|||
margin-top: 0.1rem; |
|||
padding-top: 0.15rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-link-cloud a { |
|||
display: inline-flex; |
|||
align-items: center; |
|||
min-height: 2.15rem; |
|||
padding: 0.28rem 0.85rem; |
|||
border: 1px solid var(--mainpage-line); |
|||
border-radius: 999px; |
|||
background: var(--mainpage-surface-soft); |
|||
color: var(--mainpage-ink); |
|||
line-height: 1.25; |
|||
text-decoration: none; |
|||
} |
|||
.mw-parser-output .mw-mainpage-link-cloud a:hover { |
|||
border-color: var(--mainpage-blue); |
|||
color: var(--mainpage-blue); |
|||
} |
|||
.mw-parser-output .mw-mainpage-feature-grid { |
|||
display: grid; |
|||
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr); |
|||
gap: 1rem; |
|||
align-items: stretch; |
|||
} |
|||
.mw-parser-output .mw-mainpage-feature-pair { |
|||
display: grid; |
|||
grid-template-columns: repeat(2, minmax(0, 1fr)); |
|||
gap: 1rem; |
|||
align-items: stretch; |
|||
} |
|||
.mw-parser-output .mw-mainpage-feature { |
|||
min-height: 100%; |
|||
} |
|||
.mw-parser-output .mw-mainpage-feature ul, |
|||
.mw-parser-output .mw-mainpage-panel ul { |
|||
margin-bottom: 0; |
|||
} |
|||
.mw-parser-output .mw-mainpage-feature li, |
|||
.mw-parser-output .mw-mainpage-panel li { |
|||
margin: 0.25rem 0; |
|||
} |
|||
.mw-parser-output .mw-mainpage-aside .mw-changeslist { |
|||
font-size: 0.88rem; |
|||
} |
|||
.mw-parser-output .mw-mainpage-aside .mw-changeslist-legend { |
|||
display: none; |
|||
} |
|||
@media (max-width: 980px) { |
|||
.mw-parser-output .mw-mainpage-layout, |
|||
.mw-parser-output .mw-mainpage-search-row, |
|||
.mw-parser-output .mw-mainpage-search-main, |
|||
.mw-parser-output .mw-mainpage-project-grid, |
|||
.mw-parser-output .mw-mainpage-feature-grid, |
|||
.mw-parser-output .mw-mainpage-feature-pair { |
|||
grid-template-columns: 1fr; |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-search-main .mw-mainpage-search-card:first-child { |
|||
.flex-container .content-box { |
|||
grid-column: auto; |
|||
max-width: 100%; /* 最大宽度 */ |
|||
} |
|||
margin-bottom: 20px; /* 下外边距 */ |
|||
} |
|||
@media (max-width: 640px) { |
|||
.mw-parser-output .mw-mainpage-portal { |
|||
grid-template-columns: 1fr; |
|||
padding: 1.2rem; |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-logo-mark { |
|||
.banner .chinese-text, .banner .english-text { |
|||
width: 4.75rem; |
|||
text-align: center; /* 居中对齐 */ |
|||
height: 4.75rem; |
|||
font-size: 18px; /* 字体大小 */ |
|||
} |
} |
||
.mw-parser-output .mw-mainpage-search-card .searchbox, |
|||
.banner .english-text { |
|||
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-form { |
|||
font-size: 14px; /* 字体大小 */ |
|||
flex-direction: column; |
|||
align-items: stretch; |
|||
} |
} |
||
} |
} |
||
2026年7月16日 (四) 19:31的最新版本
body {
font-family: var(--font-family-citizen-base), var(--font-family-language-base),
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
"Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mw-redirect {
color: #14866d;
font-weight: 500;
}
.mw-redirect:hover {
color: #0f6f59;
text-decoration: underline;
}
#p-lang ul {
list-style: none;
padding: 0;
margin: 10px 0;
}
#p-lang li {
display: inline-block;
margin-right: 10px;
}
.mw-parser-output .mw-mainpage {
--mainpage-blue: #2f6fe4;
--mainpage-red: #e43d30;
--mainpage-green: #00a878;
--mainpage-yellow: #f2b705;
--mainpage-ink: var(--color-emphasized, #202122);
--mainpage-text: var(--color-base, #202122);
--mainpage-muted: var(--color-subtle, #54595d);
--mainpage-line: var(--border-color-base, #c8ccd1);
--mainpage-surface: var(--color-surface-1, #fff);
--mainpage-surface-soft: var(--color-surface-2, #f8f9fa);
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.mw-parser-output .mw-mainpage a {
font-weight: 650;
}
.mw-parser-output .mw-mainpage-portal {
display: grid;
grid-template-columns: 7rem minmax(0, 1fr);
gap: 1.25rem;
align-items: center;
padding: 1.75rem;
border: 1px solid var(--mainpage-line);
border-radius: 8px;
background:
linear-gradient(135deg, rgba(47, 111, 228, 0.14), transparent 38%),
linear-gradient(315deg, rgba(0, 168, 120, 0.12), transparent 38%),
linear-gradient(45deg, rgba(242, 183, 5, 0.10), transparent 30%),
var(--mainpage-surface);
}
.mw-parser-output .mw-mainpage-logo-mark {
width: 6.25rem;
height: 6.25rem;
background-image: url("/images/logos/icon.png");
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
.mw-parser-output .mw-mainpage-kicker {
margin: 0 0 0.25rem;
color: var(--mainpage-blue);
font-size: 0.9rem;
font-weight: 800;
}
.mw-parser-output .mw-mainpage-title {
margin: 0;
color: var(--mainpage-ink);
font-size: clamp(2rem, 5vw, 3.4rem);
font-weight: 850;
line-height: 1.1;
}
.mw-parser-output .mw-mainpage-subtitle {
max-width: 44rem;
margin: 0.75rem 0 0;
color: var(--mainpage-text);
font-size: 1.05rem;
line-height: 1.7;
}
.mw-parser-output .mw-mainpage-quote {
margin: 1rem 0 0;
color: var(--mainpage-muted);
font-size: 0.95rem;
line-height: 1.7;
}
.mw-parser-output .mw-mainpage-quote-source {
margin: 0.15rem 0 0;
color: var(--mainpage-muted);
font-size: 0.85rem;
}
.mw-parser-output .mw-mainpage-search-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
gap: 1.25rem;
align-items: stretch;
}
.mw-parser-output .mw-mainpage-search-main {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
}
.mw-parser-output .mw-mainpage-search-main .mw-mainpage-search-card:first-child {
grid-column: span 2;
}
.mw-parser-output .mw-mainpage-search-card,
.mw-parser-output .mw-mainpage-project,
.mw-parser-output .mw-mainpage-feature,
.mw-parser-output .mw-mainpage-panel {
border: 1px solid var(--mainpage-line);
border-radius: 8px;
background: var(--mainpage-surface);
}
.mw-parser-output .mw-mainpage-search-card {
padding: 1rem 1.25rem 1.05rem;
background: var(--mainpage-surface-soft);
}
.mw-parser-output .mw-mainpage-search-label {
display: block;
margin-bottom: 0.7rem;
color: var(--mainpage-muted);
font-size: 0.78rem;
font-weight: 700;
}
.mw-parser-output .mw-mainpage-search-card .searchbox,
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-form {
display: flex;
gap: 0;
align-items: center;
margin: 0;
width: 100%;
font-size: 0;
}
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-centered {
margin: 0;
}
.mw-parser-output .mw-mainpage-search-card .cdx-text-input {
flex: 1 1 14rem;
min-width: 0;
}
.mw-parser-output .mw-mainpage-search-card .searchboxInput,
.mw-parser-output .mw-mainpage-search-card .mw-searchInput {
flex: 1 1 14rem;
min-width: 0;
max-width: 100%;
min-height: 2.35rem;
box-sizing: border-box;
font-size: 1rem;
}
.mw-parser-output .mw-mainpage-search-card .mw-ui-button,
.mw-parser-output .mw-mainpage-search-card .cdx-button,
.mw-parser-output .mw-mainpage-search-card input[type="submit"] {
flex: 0 0 auto;
min-height: 2.35rem;
padding-inline: 0.8rem;
font-size: 1rem;
}
.mw-parser-output .mw-mainpage-search-card .cdx-text-input + input[type="submit"],
.mw-parser-output .mw-mainpage-search-card input[type="submit"] + input[type="submit"] {
margin-left: 0.55rem;
}
.mw-parser-output .mw-mainpage-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
gap: 1.25rem;
align-items: stretch;
}
.mw-parser-output .mw-mainpage-main,
.mw-parser-output .mw-mainpage-aside {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.mw-parser-output .mw-mainpage-main {
min-height: 100%;
}
.mw-parser-output .mw-mainpage-aside {
min-height: 100%;
}
.mw-parser-output .mw-mainpage-recent-panel {
flex: 1;
min-height: 100%;
}
.mw-parser-output .mw-mainpage-section-heading h2,
.mw-parser-output .mw-mainpage-panel h2,
.mw-parser-output .mw-mainpage-feature h2 {
margin-top: 0;
color: var(--mainpage-ink);
}
.mw-parser-output .mw-mainpage-section-heading p,
.mw-parser-output .mw-mainpage-feature p,
.mw-parser-output .mw-mainpage-panel p {
color: var(--mainpage-muted);
line-height: 1.7;
}
.mw-parser-output .mw-mainpage-project-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.75rem;
}
.mw-parser-output .mw-mainpage-project,
.mw-parser-output .mw-mainpage-feature,
.mw-parser-output .mw-mainpage-panel {
padding: 1rem;
}
.mw-parser-output .mw-mainpage-project,
.mw-parser-output .mw-mainpage-search-card {
border-top-width: 4px;
}
.mw-parser-output .mw-mainpage-accent-blue {
border-top-color: var(--mainpage-blue);
}
.mw-parser-output .mw-mainpage-accent-red {
border-top-color: var(--mainpage-red);
}
.mw-parser-output .mw-mainpage-accent-green {
border-top-color: var(--mainpage-green);
}
.mw-parser-output .mw-mainpage-accent-yellow {
border-top-color: var(--mainpage-yellow);
}
.mw-parser-output .mw-mainpage-project h3 {
margin: 0 0 0.45rem;
font-size: 1.05rem;
}
.mw-parser-output .mw-mainpage-project p {
margin: 0;
color: var(--mainpage-muted);
font-size: 0.92rem;
line-height: 1.6;
}
.mw-parser-output .mw-mainpage-link-cloud {
display: flex;
flex-wrap: wrap;
column-gap: 0.65rem;
row-gap: 0.7rem;
align-items: flex-start;
margin-top: 0.1rem;
padding-top: 0.15rem;
}
.mw-parser-output .mw-mainpage-link-cloud a {
display: inline-flex;
align-items: center;
min-height: 2.15rem;
padding: 0.28rem 0.85rem;
border: 1px solid var(--mainpage-line);
border-radius: 999px;
background: var(--mainpage-surface-soft);
color: var(--mainpage-ink);
line-height: 1.25;
text-decoration: none;
}
.mw-parser-output .mw-mainpage-link-cloud a:hover {
border-color: var(--mainpage-blue);
color: var(--mainpage-blue);
}
.mw-parser-output .mw-mainpage-feature-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
gap: 1rem;
align-items: stretch;
}
.mw-parser-output .mw-mainpage-feature-pair {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
align-items: stretch;
}
.mw-parser-output .mw-mainpage-feature {
min-height: 100%;
}
.mw-parser-output .mw-mainpage-feature ul,
.mw-parser-output .mw-mainpage-panel ul {
margin-bottom: 0;
}
.mw-parser-output .mw-mainpage-feature li,
.mw-parser-output .mw-mainpage-panel li {
margin: 0.25rem 0;
}
.mw-parser-output .mw-mainpage-aside .mw-changeslist {
font-size: 0.88rem;
}
.mw-parser-output .mw-mainpage-aside .mw-changeslist-legend {
display: none;
}
@media (max-width: 980px) {
.mw-parser-output .mw-mainpage-layout,
.mw-parser-output .mw-mainpage-search-row,
.mw-parser-output .mw-mainpage-search-main,
.mw-parser-output .mw-mainpage-project-grid,
.mw-parser-output .mw-mainpage-feature-grid,
.mw-parser-output .mw-mainpage-feature-pair {
grid-template-columns: 1fr;
}
.mw-parser-output .mw-mainpage-search-main .mw-mainpage-search-card:first-child {
grid-column: auto;
}
}
@media (max-width: 640px) {
.mw-parser-output .mw-mainpage-portal {
grid-template-columns: 1fr;
padding: 1.2rem;
}
.mw-parser-output .mw-mainpage-logo-mark {
width: 4.75rem;
height: 4.75rem;
}
.mw-parser-output .mw-mainpage-search-card .searchbox,
.mw-parser-output .mw-mainpage-search-card .mw-inputbox-form {
flex-direction: column;
align-items: stretch;
}
}