misuzu/assets/less/landing.less

127 lines
2.4 KiB
Text
Raw Normal View History

2019-03-02 21:25:35 +00:00
.landing {
display: flex;
flex-direction: row;
@media (max-width: @site-mobile-width) {
2019-03-02 21:25:35 +00:00
flex-direction: column;
2018-07-21 15:37:35 +00:00
}
2018-10-22 21:10:38 +00:00
&__container {
margin: 2px 0;
2018-10-22 21:10:38 +00:00
}
&__sidebar {
width: 300px;
margin-right: 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-right: 0;
2018-07-21 15:37:35 +00:00
}
}
&__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;
2019-03-25 20:11:31 +00:00
width: 30px;
height: 30px;
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: 4px;
margin: 4px;
2018-12-31 01:37:47 +00:00
color: inherit;
text-decoration: none;
border-radius: 2px;
transition: background-color .2s, box-shadow .2s;
&:focus,
&:hover {
background-color: fade(#222, 60%);
box-shadow: 0 1px 4px #222;
}
2018-12-31 01:37:47 +00:00
&__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;
}
}
}