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

Шаблон используемый на Wikimeat
мНет описания правки
мНет описания правки
Строка 227: Строка 227:
display: flex;
display: flex;
     flex-direction: column;
     flex-direction: column;
     justify-content: center;
     justify-content: space-between;
     align-items: flex-end;
     align-items: flex-end;
     padding: 0px;
     padding: 70px 0px 40px;
     position: absolute;
}
     width: 534px;
 
     height: 112px;
#home-banner h3 {
     left: 276px;
position: static;
     top: 72px;
width: 600px;
height: 40px;
left: calc(50% - 600px/2 + 180px);
top: calc(50% - 40px/2 + 50px);
     font-family: "iskra",sans-serif;
     font-size: 14px;
     line-height: 140%;
     color: #111111;
     opacity: 0.5;
}
}


Строка 242: Строка 250:
justify-content: center;
justify-content: center;
align-items: center;
align-items: center;
padding: 0px;
padding: 0px 0px 0px 130px;
width: 534px;
position: static;
width: 960px;
height: 65.68px;
height: 65.68px;
left: 0px;
left: 0px;
top: 0px;
top: 70px;
flex: none;
order: 0;
flex-grow: 0;
margin: 6px 0px;
}
}


#home-banner .banner-logo {
#home-banner .banner-logo {
right: 36.98%;
position: static;
flex: none;
left: 28.96%;
order: 0;
right: 36.77%;
flex-grow: 0;
top: 0%;
margin: 0px 45px;
bottom: 0%;
}
}


#home-banner h3 {
#home-banner .banner-button {
width: 450px;
    height: 40px;
    left: calc(50% - 450px/2 + 101.5px);
    top: calc(50% - 40px/2 + 35.84px);
    font-family: "iskra",sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #111111;
    opacity: 0.5;
    flex: none;
    order: 1;
    flex-grow: 0;
    margin: 6px 0px;
}
 
.home-banner__button {
position: absolute;
width: 160px;
width: 160px;
height: 40px;
height: 40px;
left: 650px;
left: 652px;
top: 90px;
top: 13px;
}
}


.home-banner__button a {
#home-banner .banner-button a {
width: 160px;
padding: 11px 40px;
height: 40px;
background: #D32F2F;
background: #D32F2F;
border-radius: 30px;
border-radius: 30px;

Версия от 02:51, 1 апреля 2022

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

/* 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__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: space-between;
    align-items: flex-end;
    padding: 70px 0px 40px;
}

#home-banner h3 {
	position: static;
	width: 600px;
	height: 40px;
	left: calc(50% - 600px/2 + 180px);
	top: calc(50% - 40px/2 + 50px);
    font-family: "iskra",sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #111111;
    opacity: 0.5;
}

#home-banner .banner-row {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 0px 0px 0px 130px;
	position: static;
	width: 960px;
	height: 65.68px;
	left: 0px;
	top: 70px;
}

#home-banner .banner-logo {
	position: static;
	left: 28.96%;
	right: 36.77%;
	top: 0%;
	bottom: 0%;
}

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

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

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

@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 {
		flex-direction: column-reverse;
	}
	.home-header__bg {
		width: 480px;
		right: 0;
	}
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта