misuzu/assets/misuzu.css/news/preview.css

77 lines
1.3 KiB
CSS

.news__preview {
margin: 2px 0;
padding: 10px 12px;
}
.news__preview__listing {
flex-grow: 1;
flex-shrink: 1;
}
.news__preview__header {
border-bottom: 1px solid var(--accent-colour);
display: flex;
align-items: flex-end;
flex-wrap: wrap;
margin-bottom: 10px;
padding-bottom: 2px;
}
.news__preview__title {
flex-grow: 1;
flex-shrink: 1;
}
.news__preview__title h1 {
font-size: 2em;
line-height: 1.5em;
}
.news__preview__attrs {
flex-grow: 0;
flex-shrink: 0;
display: flex;
gap: 4px;
font-size: .9em;
}
.news__preview__attr {
display: flex;
gap: 4px;
align-items: center;
}
.news__preview__author a {
color: inherit;
text-decoration: none;
}
.news__preview__author__name a {
font-weight: bold;
display: inline-block;
padding-top: 2px;
border-bottom: 2px solid var(--user-colour, #fff);
}
.news__preview__category a {
color: inherit;
text-decoration: none;
}
.news__preview__category a:hover,
.news__preview__category a:focus {
text-decoration: underline;
}
.news__preview__content {
line-height: 1.4em;
word-wrap: break-word;
overflow: hidden;
}
.news__preview__links {
display: flex;
justify-content: space-between;
}
.news__preview__link {
font-size: .9em;
}