misuzu/assets/less/classes/forum/post.less

153 lines
3.3 KiB
Text
Raw Normal View History

2018-05-21 02:28:51 +00:00
.forum__post {
display: flex;
margin: 2px 0;
&--deleted {
opacity: .5;
transition: opacity .2s;
&:hover {
opacity: .8;
}
}
@media (max-width: @site-mobile-width) {
flex-direction: column;
}
2018-05-21 02:28:51 +00:00
&__content {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 1;
2018-05-21 23:05:25 +00:00
word-wrap: break-word;
overflow: hidden;
2018-10-15 21:57:16 +00:00
}
&__details {
font-size: .9em;
line-height: 1.7em;
padding: 0 2px;
display: flex;
justify-content: space-between;
color: #888;
}
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
&__datetime,
&__id {
color: inherit;
text-decoration: none;
2018-10-15 21:57:16 +00:00
&:hover {
text-decoration: underline;
2018-05-21 02:28:51 +00:00
}
2018-10-15 21:57:16 +00:00
}
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
&__text {
margin: 2px;
line-height: 1.2em;
@media (max-width: @site-mobile-width) {
margin: 4px;
font-size: 1.2em;
line-height: 1.3em;
2018-05-21 02:28:51 +00:00
}
}
2018-10-15 21:57:16 +00:00
&__info {
&__content {
min-width: 150px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
padding: 15px;
flex: 0 0 auto;
margin-right: 4px;
}
&__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(270deg, transparent 10%, var(--background-colour) 100%);
background: var(--background-pattern);
background-color: var(--accent-colour);
background-blend-mode: multiply;
2018-11-17 21:59:01 +00:00
@media (max-width: @site-mobile-width) {
mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
-webkit-mask-image: linear-gradient(0deg, transparent 10%, var(--background-colour) 100%);
}
}
2018-05-21 23:05:25 +00:00
@media (max-width: @site-mobile-width) {
flex-direction: row;
2018-10-15 21:57:16 +00:00
margin: 0;
padding: 5px;
}
2018-10-15 21:57:16 +00:00
}
2018-10-15 21:57:16 +00:00
&__icons {
display: flex;
align-items: center;
2018-10-15 21:57:16 +00:00
@media (max-width: @site-mobile-width) {
flex-direction: column;
align-items: flex-end;
2018-05-21 23:05:25 +00:00
}
2018-10-15 21:57:16 +00:00
}
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
&__posts-count {
font-size: .9em;
margin-left: 4px;
}
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
&__joined {
flex: 1 1 auto;
margin: 2px;
max-width: 170px;
font-size: .9em;
justify-self: flex-end;
margin-top: 10px;
margin-bottom: -10px;
2018-10-15 21:57:16 +00:00
@media (max-width: @site-mobile-width) {
display: none;
2018-05-21 02:28:51 +00:00
}
2018-10-15 21:57:16 +00:00
}
&__avatar {
width: 120px;
height: 120px;
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
@media (max-width: @site-mobile-width) {
width: 40px;
height: 40px;
margin-right: 4px;
}
2018-10-15 21:57:16 +00:00
}
&__username {
color: inherit;
font-size: 1.4em;
line-height: 1.5em;
text-decoration: none;
margin: 2px 0 1px;
2018-05-21 02:28:51 +00:00
2018-10-15 21:57:16 +00:00
&[href]:hover {
text-decoration: underline;
2018-05-21 02:28:51 +00:00
}
2018-10-15 21:57:16 +00:00
@media (max-width: @site-mobile-width) {
flex: 1 1 auto;
text-align: left;
margin: 0 4px;
}
2018-05-21 02:28:51 +00:00
}
}