misuzu/assets/less/classes/index.less

118 lines
2.2 KiB
Text
Raw Normal View History

.index {
display: flex;
flex-direction: row-reverse;
@media (max-width: @site-mobile-width) {
2018-07-21 15:37:35 +00:00
flex-direction: column-reverse;
}
2018-10-22 21:10:38 +00:00
&__container {
margin-bottom: 2px;
}
&__sidebar {
width: 300px;
margin-left: 2px;
2018-07-15 02:15:12 +00:00
flex: 0 0 auto;
2018-07-21 15:37:35 +00:00
@media (max-width: @site-mobile-width) {
2018-07-21 15:37:35 +00:00
width: 100%;
margin-left: 0;
}
}
&__main {
flex: 1 1 auto;
}
&__stats {
&__emphasis {
font-weight: 700;
}
&__link {
2018-09-23 14:42:15 +00:00
color: var(--user-colour);
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
2018-11-17 22:44:58 +00:00
&__online {
display: flex;
flex-wrap: wrap;
overflow: hidden;
2018-12-31 01:37:47 +00:00
margin: 6px;
2018-11-17 22:44:58 +00:00
&__user {
color: var(--user-colour);
text-decoration: none;
font-size: 0;
2018-12-31 01:37:47 +00:00
width: 32px;
height: 32px;
2018-11-17 22:44:58 +00:00
margin: 2px;
transition: box-shadow .2s;
&:hover {
2018-12-30 17:36:57 +00:00
box-shadow: 0 0 2px var(--user-colour);
2018-11-17 22:44:58 +00:00
}
}
}
2018-12-31 01:37:47 +00:00
&__statistics {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
&__statistic {
display: flex;
flex-direction: column;
align-items: center;
width: 45%;
padding: 4px 0;
&__name {
font-size: 1.3em;
line-height: 2em;
}
&__value {
font-size: 1.5em;
line-height: 1.5em;
}
}
&__latest {
display: flex;
padding: 8px;
color: inherit;
text-decoration: none;
&__avatar {
width: 50px;
height: 50px;
}
&__content {
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 8px;
}
&__username {
font-size: 1.5em;
line-height: 1.4em;
color: var(--user-colour);
}
&__joined {
font-size: .9em;
line-height: 1.2em;
}
}
}