misuzu/assets/less/classes/news/post.less

118 lines
2.7 KiB
Text
Raw Normal View History

2018-04-16 00:33:54 +00:00
.news__post {
2018-12-11 01:20:18 +00:00
display: flex;
margin-bottom: 2px;
flex-direction: row-reverse;
2018-04-16 00:33:54 +00:00
2018-12-11 01:20:18 +00:00
@media (max-width: @site-mobile-width) {
flex-direction: column-reverse;
2018-04-16 00:33:54 +00:00
}
2018-12-11 01:20:18 +00:00
&__info {
2018-04-16 00:33:54 +00:00
2018-12-11 01:20:18 +00:00
&__content {
width: 200px;
text-align: center;
display: flex;
flex-direction: column;
padding: 15px;
flex: 0 0 auto;
margin-right: 4px;
2018-04-16 00:33:54 +00:00
2018-12-11 01:20:18 +00:00
@media (max-width: @site-mobile-width) {
width: 100%;
flex-wrap: wrap;
text-align: left;
}
2018-04-16 00:33:54 +00:00
}
2018-12-11 01:20:18 +00:00
&__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;
@media (max-width: @site-mobile-width) {
mask-image: linear-gradient(180deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(180deg, transparent 10%, var(--background-colour) 100%);
}
}
2018-04-16 00:33:54 +00:00
2018-12-11 01:20:18 +00:00
@media (max-width: @site-mobile-width) {
flex-direction: row;
margin: 0;
padding: 5px;
2018-04-16 00:33:54 +00:00
}
}
&__user {
display: flex;
2018-12-11 01:20:18 +00:00
text-align: left;
2018-04-16 00:33:54 +00:00
align-items: center;
2018-12-11 01:20:18 +00:00
margin-bottom: 10px;
&__details {
display: flex;
flex-direction: column;
}
@media (max-width: @site-mobile-width) {
margin-bottom: 0;
margin-right: 10px;
}
2018-04-16 00:33:54 +00:00
}
&__avatar {
2018-12-11 01:20:18 +00:00
width: 60px;
height: 60px;
margin-right: 10px;
@media (max-width: @site-mobile-width) {
width: 50px;
height: 50px;
}
2018-04-16 00:33:54 +00:00
}
&__username {
2018-12-11 01:20:18 +00:00
color: inherit;
font-size: 1.4em;
line-height: 1.5em;
text-decoration: none;
&[href]:hover {
text-decoration: underline;
}
2018-04-16 00:33:54 +00:00
}
2018-12-11 01:20:18 +00:00
&__date {
font-size: 1.1em;
line-height: 1.5em;
}
&__category {
2018-04-16 00:33:54 +00:00
color: inherit;
2018-12-11 01:20:18 +00:00
text-decoration: none;
font-size: 1.1em;
line-height: 1.5em;
margin: 6px 0;
2018-04-16 00:33:54 +00:00
2018-12-11 01:20:18 +00:00
&:hover {
text-decoration: underline;
2018-04-16 00:33:54 +00:00
}
}
2018-12-11 01:20:18 +00:00
&__text {
line-height: 1.2em;
flex: 1 1 auto;
word-wrap: break-word;
overflow: hidden;
margin: 2px;
padding: 0 10px;
}
2018-04-16 00:33:54 +00:00
}