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

78 lines
1.3 KiB
CSS
Raw Normal View History

2022-09-13 13:14:49 +00:00
.news__preview {
margin: 2px 0;
padding: 10px 12px;
2022-09-13 13:14:49 +00:00
}
.news__preview__listing {
flex-grow: 1;
flex-shrink: 1;
}
.news__preview__header {
border-bottom: 1px solid var(--accent-colour);
2022-09-13 13:14:49 +00:00
display: flex;
align-items: flex-end;
flex-wrap: wrap;
margin-bottom: 10px;
padding-bottom: 2px;
2022-09-13 13:14:49 +00:00
}
.news__preview__title {
flex-grow: 1;
flex-shrink: 1;
}
.news__preview__title h1 {
font-size: 2em;
line-height: 1.5em;
2022-09-13 13:14:49 +00:00
}
.news__preview__attrs {
flex-grow: 0;
flex-shrink: 0;
2022-09-13 13:14:49 +00:00
display: flex;
gap: 4px;
font-size: .9em;
2022-09-13 13:14:49 +00:00
}
.news__preview__attr {
display: flex;
gap: 4px;
align-items: center;
2022-09-13 13:14:49 +00:00
}
.news__preview__author a {
2022-09-13 13:14:49 +00:00
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);
2022-09-13 13:14:49 +00:00
}
.news__preview__category a {
2022-09-13 13:14:49 +00:00
color: inherit;
text-decoration: none;
}
.news__preview__category a:hover,
.news__preview__category a:focus {
2022-09-13 13:14:49 +00:00
text-decoration: underline;
}
.news__preview__content {
line-height: 1.4em;
2022-09-13 13:14:49 +00:00
word-wrap: break-word;
overflow: hidden;
}
.news__preview__links {
display: flex;
justify-content: space-between;
}
.news__preview__link {
font-size: .9em;
}