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

Шаблон используемый на Wikimeat
мНет описания правки
Метка: отменено
мНет описания правки
 
(не показано 69 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Commons */
/* Benefits */


.home-grid {
#home-benefits {
display: grid;
display: flex;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
flex-direction: column;
grid-auto-rows: minmax( 4rem, auto );
justify-content: space-between;
grid-gap: 0.625rem;
}
}


.home-card {
.home-stats__value {
position: relative;
font-size: 2.5rem;
padding: 15px;
font-weight: 800;
background: var( --background-color-dp-02 );
border-radius: 8px;
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
}
}


.home-card table.timeline {
.home-stats__unit {
margin-top: 0.2rem;
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 );
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 {
/* Navigation */
display: flex;
align-items: center;
justify-content: space-between;
}


.home-card__header a:after {
#home-nav {
content: '▶';
margin-top: 2.4rem;
font-size: 0.8125rem;
}
}


.home-card__background {
#home-nav .home-card__background:after {
position: absolute;
position: absolute;
top: 0;
    pointer-events: none;
right: 0;
    top: 0;
bottom: 0;
    right: 0;
left: 0;
    bottom: 0;
border-radius: 8px;
    left: 0;
    display: block;
    content: "";
}
}


.home-card__background img {
#home-nav .home-card__foreground {
width: 100%;
pointer-events: none;
height: 100%;
height: 100%;
object-fit: cover;
    width: 100%;
object-position: center;
    display: flex;
transition: transform .2s ease;
    align-items: center;
    padding: 0 15px;
    font-weight: 500;
}
}


.home-card:hover .home-card__background img {
/* Search */
transform: scale( 1.1 );
 
.keyboard-text {
padding: 0 5px;
border: 1px solid;
margin: 0 2px;
border-radius: 4px;
}
}


.home-card__foreground {
/* OLD */
position: absolute;
}


.home-card__foreground .home-card__label {
.mainpage-row {
color: #bababa;
display: flex;
width: 100%;
flex-wrap: wrap;
}
}


.home-card__foreground .home-card__header {
#featured_article.card {
color: #fff;
width: calc(100% / 3 - 0.4rem);
min-width: calc(860px / 3 - 0.4rem);
max-height: 400px;
}
}


.home-card p {
#featured_article .card-image a img {
margin-top: 0.2rem;
object-fit: cover;
font-size: 0.875rem;
width: 320px;
height: 260px;
}
}


.home-card.home-card--button {
#featured_article .card-text {
padding: 0;
max-height: 120px;
overflow: hidden;
}
}


.home-card--button a {
.mainpage-navigation .card {
display: flex;
    width: calc(100%/4 - 0.4rem);
height: 100%;
    min-width: calc(860px/4 - 0.4rem);
align-items: center;
padding: 0 15px;
background: transparent;
color: #fff;
font-weight: 500;
}
}


.home-card--button .home-card__background a {
@media ( hover: none ) {
padding: 0;
.desktoponly {
display: none;
}
}
}


.home-link {
/* Breakpoints */
display: grid;
margin-top: 6px;
font-size: 0.875rem;
font-weight: 500;
grid-gap: 6px;
text-align: center;
}


.home-link__button {
/* @media ( max-width: 485px ) {
display: flex;
.home-header__bg {
}
right: 0;
}
} */


.home-link__button a {
@media ( min-width: 682px ) {
flex-grow: 1;
.home-header__search {
padding: 0.3rem 0.6rem;
text-align: center;
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 {
@media only screen and (max-width: 720px) {
background: var( --background-color-framed--hover );
.mainpage-row {
width: auto;
margin: 0 -20px;
padding: 0 20px;
overflow: auto;
flex-wrap: nowrap;
    }
}
}


.home-link__button a:active {
@media only screen and ( max-width: 800px ) {
background: var( --background-color-framed--active );
.home-header {
flex-direction: column-reverse;
}
.home-header__column {
padding: 0 20px;
}
}
}


#home-content {
@media only screen and (max-width: 980px) {
margin-top: 1.6rem;
#home-banner {
display: none;
}
}
}

Текущая версия от 22:03, 4 мая 2023

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

/* OLD */

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

#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 ( hover: none ) {
	.desktoponly {
		display: none;
	}
}

/* Breakpoints */

/* @media ( max-width: 485px ) {
	.home-header__bg {
		right: 0;
	}
} */

@media ( min-width: 682px ) {
	.home-header__search {
		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 {
		flex-direction: column-reverse;
	}
	.home-header__column {
		padding: 0 20px;
	}
}

@media only screen and (max-width: 980px) {
	#home-banner {
		display: none;
	}
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта