misuzu/assets/misuzu.css/home/landingv2.css

211 lines
4.2 KiB
CSS

.landingv2-content {
padding: 0 4px;
}
.landingv2-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 40px;
margin: 40px;
}
.landingv2-stat {
display: flex;
align-items: center;
margin: 10px;
text-shadow: 0 1px 4px #000;
}
.landingv2-stat-icon {
font-size: 4em;
}
.landingv2-stat-value {
font-size: 2em;
text-align: right;
flex: 1 1 auto;
}
.landingv2-stat-value-num {
font-weight: 700;
}
.landingv2-forum {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 2px;
margin: 4px 0;
}
.landingv2-forum-topics {
background-color: var(--container-colour);
box-shadow: 0 1px 2px #0009;
text-shadow: 0 1px 4px #000;
overflow: hidden;
word-wrap: break-word;
}
.landingv2-forum-topics-list {
display: flex;
flex-direction: column;
margin: 5px;
overflow: hidden;
}
.landingv2-forum-topic {
border-radius: 2px;
background-color: rgba(17, 17, 17, .6);
transition: background-color .2s, box-shadow .2s, opacity .2s;
}
.landingv2-forum-topic:nth-child(even) {
background-color: rgba(25, 25, 25, .6);
}
.landingv2-forum-topic:hover,
.landingv2-forum-topic:focus {
background-color: rgba(34, 34, 34, .6);
box-shadow: 0 1px 4px #222;
}
.landingv2-forum-topic:not(:last-child) {
margin-bottom: 4px;
}
.landingv2-forum-topic-link {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
color: inherit;
text-decoration: none;
z-index: 200;
}
.landingv2-forum-topic-info {
z-index: 100;
display: flex;
padding: 5px;
align-items: center;
min-height: 40px;
pointer-events: none;
}
.landingv2-forum-topic-info-icon {
flex: 0 0 auto;
border-radius: 2px;
width: 30px;
height: 30px;
margin-right: 4px;
background-color: var(--accent-colour);
background-size: 60px 60px;
background-image: radial-gradient(ellipse at center, rgba(255, 255, 255, .2) 0%, rgba(0, 0, 0, .4) 100%);
box-shadow: 0 1px 4px #111;
font-size: 1.5em;
line-height: 1.5em;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
padding: 1px 1px 0 2px;
}
.landingv2-forum-topic-info-details {
margin: 0 4px;
flex: 1 1 auto;
display: flex;
justify-content: center;
flex-direction: column;
line-height: 1.6em;
overflow: hidden;
}
.landingv2-forum-topic-info-details-title {
font-size: 1.3em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.landingv2-forum-topic-info-stats {
font-size: .9em;
display: flex;
flex: 0 0 auto;
text-align: center;
min-width: 60px;
flex-direction: column;
}
.landingv2-forum-topic-info-stats-posts,
.landingv2-forum-topic-info-stats-views {
font-size: .9em;
line-height: 1.3em;
opacity: .7;
pointer-events: auto;
cursor: default;
}
.landingv2-forum-topic-info-stats-posts {
font-size: 1.4em;
opacity: 1;
}
.landingv2-news {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 2px;
}
.landingv2-news-post {
background-color: var(--container-colour);
box-shadow: 0 1px 2px #0009;
text-shadow: 0 1px 4px #000;
overflow: hidden;
word-wrap: break-word;
padding: 0 10px 10px 10px;
display: flex;
flex-direction: column;
}
.landingv2-news-post p {
flex: 1 1 auto;
}
.landingv2-news-post-options {
text-align: right;
}
.landingv2-online {
background-color: var(--container-colour);
box-shadow: 0 1px 2px #0009;
text-shadow: 0 1px 4px #000;
margin: 4px 0;
}
.landingv2-online-users {
scrollbar-width: thin;
overflow: auto;
}
.landingv2-online-inner {
display: flex;
padding: 2px;
}
.landingv2-online-avatar {
margin: 2px;
display: block;
flex: 0 0 auto;
}
@media(max-width: 1100px) {
.landingv2-stat {
margin: 0;
}
}
@media(max-width: 1024px) {
.landingv2-stats {
grid-template-columns: repeat(2, 1fr);
margin: 20px;
}
}
@media(max-width: 900px) {
.landingv2-forum,
.landingv2-news {
grid-template-columns: 1fr;
}
}
@media(max-width: 700px) {
.landingv2-stats {
grid-template-columns: 1fr;
}
}