Шаблон:Wikimeat/styles.css

Шаблон используемый на Wikimeat
/* Commons */

.home-grid {
	display: grid;
	grid: auto-flow dense/repeat( auto-fit, minmax( 7.5rem, 1fr ) );
	grid-auto-rows: minmax( 4rem, auto );
	grid-gap: 20px;
}

.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;
}

.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 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--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:hover {
	background: var( --background-color-framed--hover );
}

.home-link__button a:active {
	background: var( --background-color-framed--active );
}

/* 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;
}

/* FEATURED */

#home-featured {
	overflow: hidden;
}

#home-featured .home-card__background a {
	display: block;
	height: 100%;
}

#home-featured .home-card__foreground {
	pointer-events: none;
	right: 15px;
	bottom: 15px;
	left: 15px;
}

/* Whole wide page elements */

#full-width-bg {
	width: 100vw;
	left: calc(-50vw + 50%);
	position: absolute;
	background-color: var( --background-color-framed );
}

/* BANNER */

#home-banner {
	position: relative;
	width: 960px;
	height: 220px;
}

#home-banner .banner-column {
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-top: 30px;
}

#home-banner .banner-row {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 65px;
}

#home-banner .banner-logo {
	padding-left: 130px;
    width: 330px;
    height: 66px;
    margin-right: 40px;
}

#home-banner .banner-logo img {
	transition: transform .2s ease;
}
#home-banner .banner-logo img:hover {
	transform: scale( 1.1 );
}

#home-banner .banner-button {
	width: 160px;
	height: 40px;
	top: 10px;
}

#home-banner .banner-button a {
	padding: 11px 42px;
	background: #D32F2F;
	border-radius: 30px;
	font-family: "iskra",sans-serif;
	font-size: 14px;
	text-align: center;
	color: #FFFFFF;
}

#home-banner .banner-button a:hover {
	background: #880000;
}

#home-banner h3 {
	width: 600px;
	height: 40px;
    font-family: "iskra",sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #111111;
    opacity: 0.5;
    margin: 10px 0px;
}

#home-banner .banner-bg {
	position:absolute;
}

#home-banner .banner-bg img {
	max-width: 960px;
}

/* OLD */

.mainpage-row {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
}

.card {
	min-width: 100px;
	box-sizing: border-box;
	border: transparent;
	border-radius: 8px;
	box-shadow: none;
}

.card-text {
	padding: 20px;
}

.card-caption {
	font-size: 0.875rem;
	font-weight: 600;
}

.card:hover .card-image a img {
	transform: scale(1.1);
}

.byline {
	margin: 0 0 0.2rem 0;
	font-size: 0.825rem;
}

.card p {
	font-size: 0.875rem;
}

.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;
}

.mainpage-navigation .card {
    width: calc(100%/4 - 0.4rem);
    min-width: calc(860px/4 - 0.4rem);
}

/* Breakpoints */

@media ( min-width: 682px ) {
	.home-header__search {
		text-align: center;
	}
}

@media ( hover: none ) {
	.desktoponly {
		display: none;
	}
}

@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: 980px) {
	#home-banner {
		display: none;
	}
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта