模板:User:Aunst/sandbox/styles.css
来自RIA | Wiki
更多操作
/* For: [[User:Aunst/sandbox]] */
/* 全宽“欢迎”区域 */
.welcome {
border: 1px solid #bb3e3d;
}
.welcome-head {
background-color: #bb3e3d;
padding: 0.5em;
}
.welcome-head h2 {
margin: 0;
border-bottom: none;
padding: 0;
text-align: center;
font-family: sans-serif;
color: white;
}
/* “欢迎”区域内容使用弹性盒子布局 */
.welcome-body {
padding: 1em;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
.welcome-image, .welcome-text {
padding: 0 1em;
}
/* 移除第一段、最后一段的上、下边距 */
.welcome-text p:first-child {
margin-top: 0;
}
.welcome-text p:last-child {
margin-bottom: 0;
}
.welcome-image {
flex: 0 0 auto;
}
/* “欢迎”区域文本将尽可能占用弹性盒子的可用宽度。
* 如果可用宽度小于20个字,图像(一般先是空岛小片片尾图)将会换行。 */
.welcome-text {
flex: 1 1 20em;
}
/* 页面盒子,就是页面第一级有红色边框的区域(除了“欢迎区域”) */
.page_box {
margin-top: 2em;
border: 1px solid #bb3e3d;
}
/* 页面盒子头部 */
.page_box-header {
padding: 0.3em 0;
}
.page_box-header h2 {
margin: 0;
border-bottom: 0;
text-align: center;
font-family: sans-serif;
}
/* 有背景色的头部 */
.page_box-header-solid {
background-color: #bb3e3d;
}
.page_box-header-solid h2 {
color: white;
}
/* 有边框的头部 */
.page_box-header-border {
border: 4px solid #bb3e3d;
}
.page_box-header-border h2 {
color: #bb3e3d;
}
.page_box-content {
padding: 1em;
}
/* 重设边距,主要是公告栏区域在用。 */
.page_box-content h3 {
margin: 0;
padding: 0;
}
/* 移除盒子中第一段、最后一段的上、下边距 */
.page_box-content p:first-child {
margin-top: 0;
}
.page_box-content p:last-child {
margin-bottom: 0;
}
/* 图像-主题-介绍这类内容,依旧使用弹性盒子布局 */
.hot_page {
margin-bottom: 1.5em;
display: flex;
align-items: center;
}
.hot_page:last-of-type {
margin-bottom: 0;
}
/* 内容不紧挨着图像 */
.hot_page-content {
margin-left: 1em;
}
.hot_page-content h3 {
font-size: 1em;
}
/* 每个盒子的独特样式 */
/* 给告示板那地方的新闻和公告之间添加空白。 */
.notice_board .page_box-content > div {
margin-bottom: 1em;
}
.notice_board .page_box-content > div:last-child {
margin-bottom: 0;
}
/* 将常用链接设为两列 */
.links .page_box-content {
column-count: 2;
text-align: center;
}
/* 各皮肤适配 */
/* 移除Timeless皮肤中2级标题底部的线 */
body.skin-timeless .welcome-head h2::after,
body.skin-timeless .page_box-header h2::after {
content: none;
}