/* Commons */
.home-grid {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 4rem, auto );
grid-gap: 0.625rem;
}
.home-grid a.external {
background-image: none;
}
.home-card {
position: relative;
}
.home-card table.timeline {
margin-top: 0.2rem;
}
.home-card--col2 {
grid-column: span 2;
}
.home-card--row3 {
grid-row: span 3;
}
.home-card--row4 {
grid-row: span 4;
}
.home-card--row8 {
grid-row: span 8 / auto;
}
.home-card__label {
color: var( --color-base--subtle );
font-size: 0.8125rem;
letter-spacing: 0.75px;
}
h3.home-card__header {
margin-top: 0;
font-size: 1rem;
color: white;
}
.home-card__header a {
display: flex;
align-items: center;
justify-content: space-between;
}
.home-card__header a:after {
content: '▶';
font-size: 0.8125rem;
}
.home-card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 8px;
}
.home-card__background img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
transition: transform .2s ease;
}
.home-card:hover .home-card__background img {
transform: scale( 1.1 );
}
.home-card__foreground {
position: absolute;
}
.home-card__foreground .home-card__label {
color: #bababa;
}
.home-card__foreground .home-card__header {
color: #fff;
}
.home-card p {
margin-top: 0.2rem;
font-size: 0.875rem;
}
.home-card.home-card--button {
padding: 0;
overflow: hidden;
}
.home-card--button a {
display: flex;
height: 100%;
align-items: center;
padding: 0 15px;
background: transparent;
color: #fff;
font-weight: 500;
}
.home-card--button .home-card__background a {
padding: 0;
}
.home-link {
display: grid;
margin-top: 6px;
font-size: 0.875rem;
font-weight: 500;
grid-gap: 6px;
text-align: center;
}
.home-link__button {
display: flex;
}
.home-link__button a {
flex-grow: 1;
padding: 0.3rem 0.6rem;
border: 1px solid;
border-color: var( --border-color-base );
background: var( --background-color-framed );
border-radius: 12px;
color: var( --color-base--emphasized );
}
.home-link__button a:hover {
background: var( --background-color-framed--hover );
}
.home-link__button a:active {
background: var( --background-color-framed--active );
}
#home-content {
margin-top: 1.6rem;
}
/* Header */
.home-header__title {
margin-top: 0;
font-size: 48px;
}
.home-header .home-header__subtitle {
margin-top: 0.4rem;
color: var( --color-base--subtle );
}
/* Benefits */
#home-benefits {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.home-stats__value {
font-size: 2.5rem;
font-weight: 800;
}
.home-stats__unit {
margin-top: 0.2rem;
color: var( --color-base--subtle );
}
/* Navigation */
#home-nav {
margin-top: 2.4rem;
}
#home-nav .home-card__background:after {
position: absolute;
pointer-events: none;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
content: "";
}
#home-nav .home-card__foreground {
pointer-events: none;
height: 100%;
width: 100%;
display: flex;
align-items: center;
padding: 0 15px;
font-weight: 500;
}
/* Search */
.keyboard-text {
padding: 0 5px;
border: 1px solid;
margin: 0 2px;
border-radius: 4px;
}
@media ( min-width: 682px ) {
.home-header__search {
text-align: center;
}
}
@media ( hover: none ) {
.desktoponly {
display: none;
}
}
/* FEATURED */
#home-featured {
overflow: hidden;
}
#home-featured .home-card__background a {
display: block;
height: 100%;
}
#home-featured .home-card__background:after {
position: absolute;
pointer-events: none;
right: 0;
bottom: 0;
left: 0;
display: block;
height: 60%;
background: linear-gradient( to top, #000, transparent );
border-radius: 0 0 8px 8px;
content: '';
}
#home-featured .home-card__foreground {
pointer-events: none;
right: 15px;
bottom: 15px;
left: 15px;
}
/* Whole wide page elements */
#full-width-bg {
width: 100vw;
height: 50vh;
left: calc(-50vw + 50%);
position: absolute;
background-color: var( --background-color-framed );
}
/* OLD */
.mainpage-row {
display: flex;
width: 100%;
flex-wrap: wrap;
}
.card {
margin: 0 0.2rem 0.4rem 0.2rem;
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: space-between;
box-sizing: border-box;
overflow: hidden;
border: transparent;
border-radius: 8px;
}
.card-text {
padding: 20px;
}
.card-caption {
font-size: 0.875rem;
font-weight: 600;
}
.card:hover .card-image a img {
transform: scale(1.1);
}
.card h3 {
margin-top: 10px;
line-height: 1.4;
}
.byline {
margin: 0 0 0.2rem 0;
color: #808080;
font-size: 0.825rem;
}
.card p {
font-size: 0.875rem;
}
.card-button {
background: #72777d;
transition: background 0.2s ease,
opacity 0.2s ease;
}
.card-button:hover {
opacity: 0.8;
}
.card-button a {
padding: 0.6rem;
display: block;
color: white;
text-align: center;
font-size: 0.875rem;
font-weight: 600;
}
.card-link ul {
margin: 0;
padding: 1.2rem 1.2rem 1.2rem 2.8rem;
font-size: 0.875rem;
}
.card-image {
overflow: hidden;
}
#featured_article.card {
width: calc(100% / 3 - 0.4rem);
min-width: calc(860px / 3 - 0.4rem);
max-height: 400px;
}
#featured_article .card-image a img {
object-fit: cover;
width: 320px;
height: 260px;
}
#featured_article .card-text {
max-height: 120px;
}
#wikimeat_intro.card {
width: calc(100% / 6 * 5 - 0.4rem);
flex-direction: row;
}
#wikimeat_intro .card-image {
width: 50%;
overflow: hidden;
}
#wikimeat_intro .card-image img {
height: 100%;
width: auto;
position: relative;
}
#discord.card,
#contribute.card {
width: calc(100% / 3 - 0.4rem);
min-width: calc(860px/4 - 0.4rem);
}
#contribute .card-button {
background: #c1272d;
}
#discord .card-button {
background: #697ec4;
}
#wiki_stats.card,
#wiki_stats.mainpage-element {
width: calc(100% / 3 - 0.4rem);
min-width: calc(860px / 3 - 0.4rem);
text-align: center;
}
.overlay-foreground {
margin-top: -20px;
z-index: 1;
position: relative;
}
.overlay-background {
background: white;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
z-index: 0;
}
.mainpage-navigation .card {
width: calc(100%/4 - 0.4rem);
min-width: calc(860px/4 - 0.4rem);
}
.mainpage-navigation .card-caption {
padding: 0.4rem;
padding-bottom: 20px;
text-align: center;
}
@media only screen and (max-width: 720px) {
.mainpage-row {
width: auto;
margin: 0 -20px;
padding: 0 20px;
overflow: auto;
flex-wrap: nowrap;
}
}
@media only screen and (max-width: 800px) {
.home-header__bg {
display: none;
}
}