Template:首页/styles.css:修订间差异
外观
删除的内容 添加的内容
重写 home-random-btn 样式,与 Codex 搜索按钮完全一致(蓝底白字 700 字重 同大小) 标签:已被回退 |
用 .home-search-row a 直接样式化 wiki 链接,与搜索按钮 cdx-button 完全一致 标签:已被回退 |
||
| 第53行: | 第53行: | ||
} |
} |
||
/* ==== 试试手气按钮 ==== */ |
/* ==== 试试手气按钮(样式直接作用在 a 标签上) ==== */ |
||
.home- |
.home-search-row a { |
||
display: inline-block; |
display: inline-block; |
||
background: #36c; |
background: #36c; |
||
| 第68行: | 第68行: | ||
text-decoration: none !important; |
text-decoration: none !important; |
||
} |
} |
||
.home- |
.home-search-row a:hover { |
||
background: #2a4b8d; |
background: #2a4b8d; |
||
text-decoration: none !important; |
text-decoration: none !important; |
||
2026年7月24日 (五) 17:03的版本
/* _addText: "[[Category:首页模板]]" */
/* ==== 首页布局 ==== */
.home-container {
max-width: 720px;
margin: 0 auto;
padding: 80px 20px 100px;
text-align: center;
}
/* ==== 品牌区 ==== */
.home-title {
font-size: 2.4em;
font-weight: 400;
color: #202122;
letter-spacing: 0.12em;
margin: 0 0 12px;
border: 0;
padding: 0;
font-family: 'Noto Serif SC', 'SimSun', serif;
}
.home-subtitle {
font-size: 1.05em;
color: #72777d;
letter-spacing: 0.2em;
margin: 0;
}
.home-divider {
width: 60px;
height: 3px;
background: #36c;
margin: 24px auto 0;
border-radius: 2px;
}
/* ==== 搜索区 ==== */
.home-search {
margin-top: 52px;
}
.home-desc {
font-size: 1em;
color: #54595d;
margin-bottom: 24px;
}
/* ==== 搜索行弹性布局 ==== */
.home-search-row {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}
/* ==== 试试手气按钮(样式直接作用在 a 标签上) ==== */
.home-search-row a {
display: inline-block;
background: #36c;
color: #fff !important;
border: 1px solid #36c;
border-radius: 2px;
font-weight: 700;
font-size: 1em;
padding: 10px 24px;
cursor: pointer;
white-space: nowrap;
vertical-align: middle;
text-decoration: none !important;
}
.home-search-row a:hover {
background: #2a4b8d;
text-decoration: none !important;
}
/* ==== 搜索框加宽加高 ==== */
.home-search-row .mw-inputbox-centered {
max-width: 560px;
}
.home-container .cdx-text-input__input {
font-size: 1.05em;
padding: 10px 14px;
}
.home-container .cdx-button {
font-size: 1em;
padding: 10px 24px;
vertical-align: middle;
}