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

116 lines
2.7 KiB
Text
Raw Normal View History

2018-05-21 02:28:51 +00:00
.forum__post {
display: flex;
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
box-shadow: 0 1px 2px var(--accent-colour);
background-color: var(--background-colour);
2018-05-21 02:28:51 +00:00
margin: 2px 0;
@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-05-21 02:28:51 +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
}
&__info {
font-size: .9em;
line-height: 1.7em;
padding: 0 2px;
2018-09-09 22:44:10 +00:00
border-bottom: 1px solid var(--accent-colour);
2018-05-21 02:28:51 +00:00
display: flex;
justify-content: space-between;
&__link {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}
&__author {
2018-09-09 22:44:10 +00:00
border-right: 1px solid var(--accent-colour);
2018-05-21 02:28:51 +00:00
text-align: center;
flex-grow: 0;
flex-shrink: 0;
min-width: 170px;
2018-05-21 23:05:25 +00:00
display: flex;
flex-direction: column;
align-items: center;
@media (max-width: @site-mobile-width) {
border-right-width: 0;
2018-09-09 22:44:10 +00:00
border: 1px solid var(--accent-colour);
flex-direction: row;
border-bottom-width: 2px;
}
2018-05-21 23:05:25 +00:00
&__joined {
flex-grow: 1;
flex-shrink: 1;
margin: 5px;
max-width: 170px;
@media (max-width: @site-mobile-width) {
display: none;
}
2018-05-21 23:05:25 +00:00
}
2018-05-21 02:28:51 +00:00
&__link {
2018-05-21 23:05:25 +00:00
margin: 15px;
2018-05-21 02:28:51 +00:00
color: inherit;
text-decoration: none;
2018-05-21 23:05:25 +00:00
flex-grow: 0;
flex-shrink: 0;
@media (max-width: @site-mobile-width) {
display: flex;
align-items: center;
margin: 5px;
flex-grow: 1;
}
2018-05-21 02:28:51 +00:00
}
&__avatar {
width: 120px;
height: 120px;
2018-09-09 22:44:10 +00:00
box-shadow: 0 1px 2px var(--accent-colour);
@media (max-width: @site-mobile-width) {
width: 40px;
height: 40px;
margin-right: 5px;
}
2018-05-21 02:28:51 +00:00
}
&__username {
2018-09-23 14:42:15 +00:00
color: var(--user-colour);
2018-05-21 02:28:51 +00:00
font-size: 1.5em;
line-height: 1.7em;
}
2018-05-21 02:28:51 +00:00
&:not(&--deleted) &__username:hover {
text-decoration: underline;
2018-05-21 02:28:51 +00:00
}
}
}