misuzu/assets/less/mio/classes/forum/listing.less

188 lines
4.1 KiB
Text

@mio-forum-listing-mobile: 700px;
.forum__listing {
&__forums {
margin: 2px;
}
&__none {
margin: 0 3px;
}
&__entry {
display: flex;
align-items: stretch;
min-height: 50px;
&:not(:last-child) {
border-bottom: 1px solid #9475b2;
margin-bottom: 2px;
padding-bottom: 2px;
}
&__icon {
flex-shrink: 0;
flex-grow: 0;
align-self: center;
}
&__info {
flex-grow: 1;
flex-shrink: 1;
padding-left: 4px;
display: inline-flex;
flex-direction: column;
justify-content: center;
}
&__title {
font-size: 1.2em;
line-height: 1.5em;
color: #306;
&__link {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
&__description,
&__subforums {
font-size: .8em;
line-height: 1.3em;
}
&__subforum {
content: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
&--unread {
font-weight: 700;
}
}
&__stats,
&__activity {
display: flex;
flex-shrink: 0;
flex-grow: 0;
border-left: 1px solid #9475b2;
}
&__stats {
text-align: center;
justify-content: center;
min-width: 100px;
flex-direction: column;
@media (max-width: @mio-forum-listing-mobile) {
min-width: initial;
border-left-width: 0;
align-self: flex-end;
align-items: flex-end;
}
}
&__topics {
font-size: 1.5em;
color: #222;
}
&__posts {
font-size: .9em;
color: #555;
}
@media (max-width: @mio-forum-listing-mobile) {
&__topics,
&__posts {
font-size: 1em;
margin: 0 4px;
}
}
&__activity {
min-width: 270px;
min-height: 50px;
align-items: center;
@media (max-width: @mio-forum-listing-mobile) {
min-width: 150px;
&--empty {
display: none;
}
}
&__title {
line-height: 1.4em;
margin-bottom: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 200px;
&__link {
color: inherit;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
&--unread {
font-weight: 700;
}
}
&__info {
font-size: .9em;
line-height: 1.2em;
}
&__user {
font-weight: 700;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
&__avatar {
display: block;
text-decoration: none;
color: inherit;
width: 46px;
height: 46px;
margin: 1px;
flex-grow: 0;
flex-shrink: 0;
}
&__none,
&__details {
margin-left: 5px;
flex-grow: 1;
flex-shrink: 1;
}
@media (max-width: @mio-forum-listing-mobile) {
&__title,
&__info,
&__none {
width: 90px;
}
}
}
}
}