我想给这些空白区域上色。
这是我正在使用的 CSS 代码。
/* 字体大小 */
.topic-post {
font-size: 17px;
}
.topic-list-item:nth-child(even) { background-color: #EEE; } .topic-list-item:nth-child(odd) { background-color: #FFF; }
@mixin boxShadow {
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 0 0 0 rgba(0, 0, 0, 0.12);
}
// 在分类和最新视图右侧的主题列表后方添加阴影
// 在分类和最新视图左侧的分类列表后方添加阴影
// 在最新视图中的主题后方添加阴影
.category-list,
.topic-list,
.latest-topic-list {
@include boxShadow;
background-color: lighten($secondary, 10%);
border-radius: 15px;
}
// 创建对话卡片
.topic-body {
@include boxShadow;
background-color: lighten($secondary, 10%);
margin-top: 3px;
padding: 10px;
border-radius: 6px;
}
// 为头像留出更多空间
.topic-avatar {
border-top: 0;
padding-top: 10px;
padding-left: 5px;
.avatar-flair {
right: 4px;
}
}
.topic-avatar {
width: 45px;
height: 45px; // 增加头像容器的宽度
img.avatar { // 增加头像的大小
width: 40px;
height: 40px;
}
}
// 增加帖子元数据与帖子内容之间的间距
.boxed .contents {
padding: 20px 0 0 0;
}
// 移除最后一个帖子底部的多余边框
.topic-status-info {
border-top: 0;
}
.small-action {
border: none;
}
#topic-closing-info {
border: none;
}
// 移除卡片之间的线条
.topic-post article {
border: none;
}
// 为引用也添加阴影
aside.quote {
@include boxShadow;
}
// RTL 覆盖
.rtl {
.topic-avatar {
padding-left: initial;
padding-right: 20px;
.avatar-flair {
right: initial;
left: 4px;
}
}
}
/* 签名插件 */
.user-signature {
display: none;
}
.cooked img {
max-width: 100% !important;
}
