2018-04-16 00:33:54 +00:00
|
|
|
.news__preview {
|
2019-03-03 19:18:03 +00:00
|
|
|
display: flex;
|
|
|
|
margin: 2px 0;
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
|
|
|
--user-colour: var(--accent-colour);
|
|
|
|
|
|
|
|
@media (max-width: @site-mobile-width) {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
width: 200px;
|
|
|
|
text-align: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 15px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
margin-right: 4px;
|
|
|
|
|
|
|
|
@media (max-width: @site-mobile-width) {
|
|
|
|
width: 100%;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__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(--user-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%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @site-mobile-width) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-04-16 00:33:54 +00:00
|
|
|
|
|
|
|
&__listing {
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
}
|
|
|
|
|
2018-08-15 13:08:20 +00:00
|
|
|
&__container {
|
2018-04-16 00:33:54 +00:00
|
|
|
display: flex;
|
2018-08-15 13:08:20 +00:00
|
|
|
margin: 1px;
|
|
|
|
flex-direction: column;
|
2018-04-16 00:33:54 +00:00
|
|
|
}
|
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__user {
|
2018-08-15 13:08:20 +00:00
|
|
|
display: flex;
|
2019-03-03 19:18:03 +00:00
|
|
|
text-align: left;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
&__details {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: @site-mobile-width) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
2018-08-15 13:08:20 +00:00
|
|
|
}
|
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__avatar {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__username {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__date {
|
|
|
|
font-size: 1.1em;
|
|
|
|
line-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__category {
|
|
|
|
color: inherit;
|
2019-02-02 00:33:29 +00:00
|
|
|
text-decoration: none;
|
2019-03-03 19:18:03 +00:00
|
|
|
font-size: 1.1em;
|
|
|
|
line-height: 1.5em;
|
|
|
|
margin: 6px 0;
|
2018-08-15 13:08:20 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2018-05-26 21:36:15 +00:00
|
|
|
}
|
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__content {
|
2018-08-15 13:08:20 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2019-03-03 19:18:03 +00:00
|
|
|
line-height: 1.2em;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow: hidden;
|
|
|
|
margin: 2px;
|
|
|
|
padding: 0 10px 10px 10px;
|
|
|
|
}
|
2018-04-16 00:33:54 +00:00
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__text {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
}
|
2018-09-23 14:42:15 +00:00
|
|
|
|
2019-03-03 19:18:03 +00:00
|
|
|
&__links {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__link {
|
|
|
|
font-size: .9em;
|
2018-04-16 00:33:54 +00:00
|
|
|
}
|
|
|
|
}
|