misuzu/assets/misuzu.css/news/post.css

104 lines
2.2 KiB
CSS
Raw Normal View History

2022-09-13 13:14:49 +00:00
.news__post {
display: flex;
margin-bottom: 2px;
flex-direction: row-reverse;
}
.news__post__info__content {
width: 200px;
text-align: center;
display: flex;
flex-direction: column;
padding: 15px;
flex: 0 0 auto;
margin-right: 4px;
}
.news__post__info__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
mask-image: linear-gradient(90deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(90deg, transparent 10%, var(--background-colour) 100%);
background: var(--background-pattern);
background-color: var(--accent-colour);
background-blend-mode: multiply;
}
.news__post__user {
display: flex;
text-align: left;
align-items: center;
margin-bottom: 10px;
}
.news__post__user__details {
display: flex;
flex-direction: column;
}
.news__post__avatar {
width: 60px;
height: 60px;
margin-right: 10px;
}
.news__post__username {
color: inherit;
font-size: 1.4em;
line-height: 1.5em;
text-decoration: none;
}
.news__post__username[href]:hover {
text-decoration: underline;
}
.news__post__date {
font-size: 1.1em;
line-height: 1.5em;
}
.news__post__category {
color: inherit;
text-decoration: none;
font-size: 1.1em;
line-height: 1.5em;
margin: 6px 0;
}
.news__post__category:hover {
text-decoration: underline;
}
.news__post__text {
line-height: 1.2em;
flex: 1 1 auto;
word-wrap: break-word;
overflow: hidden;
margin: 2px;
padding: 0 10px;
}
@media (max-width: 800px) {
.news__post { flex-direction: column-reverse; }
.news__post__info {
flex-direction: row;
margin: 0;
padding: 5px;
}
.news__post__info__content {
width: 100%;
flex-wrap: wrap;
text-align: left;
}
.news__post__info__background {
mask-image: linear-gradient(180deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(180deg, transparent 10%, var(--background-colour) 100%);
}
.news__post__user {
margin-bottom: 0;
margin-right: 10px;
}
.news__post__avatar {
width: 50px;
height: 50px;
}
}