Template:首页/style.css
模板页面
更多操作
.latest-article-list {
font-size: 14px;
max-height: calc(32px * 8 + 5px * 7);
overflow: auto;
}
.latest-article-list > ol {
display: flex;
margin: 0 !important;
padding: 0;
flex-wrap: wrap;
gap: 5px;
}
.latest-article-list li {
flex-grow: 1;
display: block;
margin: 0 !important;
max-width: 100%;
min-width: 6em;
}
.latest-article-list a {
display: flex;
justify-content: center; /* JS未加载时有用 */
box-sizing: border-box;
height: 32px;
padding: 0 8px;
color: #333;
background: #fff;
border-radius: 6px;
align-items: center;
border: 1px solid #dde;
overflow: hidden;
text-decoration: none !important;
white-space: nowrap;
}
.latest-article-list a:hover,
.latest-article-list a:focus {
filter: brightness(0.97);
}
.latest-article-list a:active {
filter: brightness(0.94);
}
.latest-article-list a.has-image::after {
content: "";
flex: 0 1 16px;
}
.latest-article-image {
align-self: stretch;
margin: 0 2px 0 -8px;
font-size: 24px; /* 被行内样式 mask-image: linear-gradient(90deg, #fff 1em, transparent) 所使用 */
}
.latest-article-image img {
display: block;
width: 40px;
height: 100%;
object-fit: cover;
}
.latest-article-title {
flex-grow: 1;
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
}
.has-image > .latest-article-title {
flex-shrink: 0;
max-width: calc(100% - 34px);
}
/* [[分类:在模板命名空间下的CSS页面]] */