Шаблон:Wikimeat/styles.css: различия между версиями

Шаблон используемый на Wikimeat
мНет описания правки
мНет описания правки
Строка 6: Строка 6:
justify-content: center;
justify-content: center;
overflow: hidden;
overflow: hidden;
}
.home-header__title {
margin-top: 0;
font-size: 48px;
}
}



Версия от 07:20, 12 августа 2021

.home-header {
	margin-top: 1.6rem;
	height:50vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.home-header__title {
	margin-top: 0;
	font-size: 48px;
}

.mainpage-body {
	width: 100%;
	margin: 1.2rem -0.2rem 0 -0.2rem;
	display: flex;
	flex-direction: column;
}

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

.mainpage-element {
	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;
}

.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;
    }
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта