(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
.category-row {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-content: space-between;
justify-content: center;
margin-bottom: 0.5rem;
}
.category-row > p {
display: none;
}
.category-row > .category-row {
background: #4a4a4a;
padding: 0.5rem;
border-radius: 10px;
justify-content: space-between;
margin-bottom: 0;
}
.category-container {
display: flex;
flex-grow: 1;
flex-direction: column-reverse;
background: #4a4a4a;
border-radius: 10px;
padding: 0.5rem 0.5rem 0;
overflow: hidden;
max-height: 15rem;
}
.category-container--size-12 {
flex-basis: calc( 100% - 0.5rem );
}
.category-container--size-11 {
flex-basis: calc( 91.6666% - 0.5rem );
}
.category-container--size-10 {
flex-basis: calc( 83.3333% - 0.5rem );
}
.category-container--size-9 {
flex-basis: calc( 75% - 0.5rem );
}
.category-container--size-8 {
flex-basis: calc( 66.6666% - 0.5rem );
}
.category-container--size-7 {
flex-basis: calc( 58.3333% - 0.5rem );
}
.category-container--size-6 {
flex-basis: calc( 50% - 0.5rem );
}
.category-container--size-5 {
flex-basis: calc( 41.6666% - 0.5rem );
}
.category-container--size-4 {
flex-basis: calc( 33.3333% - 0.5rem );
}
.category-container--size-3 {
flex-basis: calc( 25% - 0.5rem );
}
.category-container--size-2 {
flex-basis: calc( 16.6666% - 0.5rem );
}
.category-container--size-1 {
flex-basis: calc( 8.3333% - 0.5rem );
}
.category-container.category-container--title-top {
flex-direction: column;
padding-top: 0;
padding-bottom: 0.5rem;
}
.category-container.category-container--title-prominent {
padding: 0;
position: relative;
/* TODO */
max-height: 8rem;
min-height: 8rem;
}
.category-container__title {
text-align: center;
font-size: 1rem;
line-height: normal;
font-weight: bold;
margin: 0;
overflow: hidden;
}
.category-container__title a {
color: #4a4a4a;
}
.category-container__title span,
.category-container__title span a {
display: block;
}
.category-container__title span a {
padding: 0.5rem;
}
.category-container__image {
border-radius: 10px;
overflow: hidden;
height: 100%;
}
.category-container__image a,
.category-container__image a img {
display: block;
height: 100%;
}
.category-container__image a img {
width: 100%;
object-fit: cover;
object-position: center;
transform-origin: center;
transition: transform 0.25s;
min-height: 100%;
}
.category-container:hover img {
transform: scale(1.05);
}
/* Title centered in the image */
.category-container.category-container--title-prominent .category-container__title {
position: absolute;
height: 100%;
display: flex;
width: 100%;
z-index: 2;
text-align: left;
padding: 0.5rem;
font-size: 1.1rem;
background: rgba(0,0,0,0)linear-gradient(to bottom,rgba(0,0,0,0.2)0px,rgba(0,0,0,0.5)50%,rgba(0,0,0,0.2)100%)repeat 0 0;
}
.category-container.category-container--title-prominent .category-container__title span {
display: flex;
flex-grow: 1;
}
.category-container.category-container--title-prominent .category-container__title span a {
align-self: center;
display: block;
width: 100%;
color: #fff;
}
.category-row-container,
.category-stack {
display: flex;
gap: 0.5rem;
}
.category-row-container > p,
.category-stack > p {
display: none;
}
.category-stack {
flex-direction: column;
}
.category-stack .category-container {
flex-grow: 1;
}
.category-row-container {
flex-wrap: wrap;
}
.category-row-container > .category-container {
flex-grow: 1;
}
@media (max-width: 575.98px) {
.category-container--size-1,
.category-container--size-2,
.category-container--size-3,
.category-container--size-4,
.category-container--size-5 {
flex-basis: calc( 50% - 0.5rem );
}
.category-row.category-container--size-6 {
flex-basis: calc( 100% - 0.5rem );
}
}
/* TODO: Move to Template */
/** Game Versions **/
.category-container.category-container--wiki-stats,
.category-container.category-container--version-pu,
.category-container.category-container--version-ptu {
color: #fff;
justify-content: center;
padding: 0.5rem;
}
.category-container.category-container--version-pu p,
.category-container.category-container--version-ptu p {
margin: 0;
display: flex;
justify-content: space-between;
padding: 0.5rem;
}
.category-container.category-container--version-pu {
background-color: #4a4a4a;
}
.category-container__version-name {
font-weight: bold;
text-transform: uppercase;
}
.category-container.category-container--version-ptu {
background-color: #4a4a4a;
}
.category-container.category-container--wiki-stats p {
text-align: center;
margin: 0;
color: #4a4a4a;
}
/** Social Links **/
.category-container.discord,
.category-container.twitter,
.category-container.youtube {
max-height: 4rem;
padding: 0;
}
.category-container.discord {
background-color: #5865F2;
}
.category-container.twitter {
background-color: #1D9BF0;
}
.category-container.youtube {
background-color: #FF0000;
}
.category-container.discord a,
.category-container.twitter a,
.category-container.youtube a {
padding: 1rem;
}
.category-container.discord a img,
.category-container.twitter a img,
.category-container.youtube a img {
margin: 0 auto;
object-fit: contain !important;
}
/** Featured Article **/
/**
.category-container.category-container--featured-article {
height: 12rem;
min-height: 12rem;
}
.category-container.category-container--featured-article .category-container__title {
background: rgba(0,0,0,0)linear-gradient(to bottom,rgba(0,0,0,0.2)0px,rgba(0,0,0,0.5)50%,rgba(0,0,0,0.75)100%)repeat 0 0;
flex-direction: column;
font-size: 1.5rem;
}
.category-container.category-container--featured-article .category-container__title::before {
content: attr(data-subtext);
margin-top: auto;
padding-left: 0.5rem;
color: #ccc;
font-size: 1.25rem;
font-weight: lighter;
}
.category-container.category-container--featured-article .category-container__title span {
display: inline;
flex-grow: 0;
}
.category-container.category-container--featured-article .category-container__title span a {
padding-top: 0;
color: #fff;
}**/
.other-wikis {
display: flex;
}
.other-wikis p {
margin: 0;
display: flex;
justify-content: space-around;
gap: 0.5rem;
text-align: center;
flex-basis: 100%;
}