活动: 点击此处获得新年红包
Other activity: Click here to receive your New Year's red envelope
color: transparent;
background-image: url(https://oksgo.com/img/oksgo-2.gif);
-webkit-background-clip: text;
background-clip: text;
/*** 资源中心列表样式 ***/
@resource-grid-gap: 10px;
@resource-grid-width: 330px;
@resource-grid-thumb: 90px; // 调整图标的大小,减少高度
@media (min-width: @xf-responsiveMedium){
@supports(display: grid){
.block[data-type="resource"] .structItemContainer{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(@resource-grid-width, 1fr));
grid-gap: @resource-grid-gap;
padding: @resource-grid-gap;
background-color: @xf-contentAltBg;
}
.structItem--resource {
background-color: @xf-contentBg;
border-radius: 3px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-width: 0px;
display: grid;
grid-template-columns: @resource-grid-thumb 1fr;
grid-template-areas: 'icon text' 'stats stats';
padding: 8px; // 减少整体内边距
.structItem-cell--icon.structItem-cell--iconExpanded{
width: auto;
grid-area: icon;
}
.structItem-cell--main {
grid-area: text;
padding: 4px 10px; // 减少文本区域的内边距
}
.structItem-cell--resourceMeta {
grid-area: stats;
width: auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 4px 10px; // 减少元数据区域的内边距
}
.structItem-cell--iconExpanded .structItem-iconContainer .avatar {
width: 100%;
height: auto;
font-size: 48px; // 调整图标的大小
}
.structItem-secondaryIcon {
display: none;
}
.structItem-metaItem--rating{
flex: 1 0 100%;
}
.structItem-metaItem--downloads,
.structItem-metaItem--lastUpdate{
flex: 0 1 auto;
}
.ratingStarsRow--justified {
border-bottom: 1px solid @xf-borderColorFaint;
margin-bottom: 2px; // 减少下边距
padding-bottom: 2px; // 减少内边距
}
}
}
}
<style type="text/css">
html {
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
-webkit-filter: grayscale(100%);}
</style>
<xf:avatar user="$resource.User" size="s"
href=""
class="avatar--separated structItem-secondaryIcon" />
<!--Remove the resource icon and start with the small icon
<xf:avatar user="$resource.User" size="s"
href=""
class="avatar--separated structItem-secondaryIcon" />
Remove the resource icon and end with the small icon-->
/* 增加特异性 */
body .button.button--link,
body button.button a.button.button--link {
height: 34px; /* 修改按钮高度 */
line-height: 34px; /* 确保文本垂直居中 */
padding: 0 10px; /* 调整内边距,确保按钮的大小合适 */
}