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

Шаблон используемый на Wikimeat
мНет описания правки
мНет описания правки
 
(не показано 177 промежуточных версий этого же участника)
Строка 1: Строка 1:
.mainpage-body {
/* Benefits */
    width: 100%;
 
    margin: 1.2rem -0.2rem 0 -0.2rem;
#home-benefits {
    display: flex;
display: flex;
    flex-direction: column;
flex-direction: column;
justify-content: space-between;
}
}


.mainpage-row {
.home-stats__value {
    display: flex;
font-size: 2.5rem;
    width: 100%;
font-weight: 800;
    flex-wrap: wrap;
}
}


.card {
.home-stats__unit {
    margin: 0 0.2rem 0.4rem 0.2rem;
margin-top: 0.2rem;
    display: flex;
color: var( --color-base--subtle );
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    /* border: 1px solid #eaecf0; */
    border-radius: 8px;
    overflow: hidden;
    /* background-color: white; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}
}


.card:hover {
/* Navigation */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
 
#home-nav {
margin-top: 2.4rem;
}
}


.card-caption {
#home-nav .home-card__background:after {
     font-size: 0.875rem;
position: absolute;
     font-weight: 600;
     pointer-events: none;
    top: 0;
    right: 0;
    bottom: 0;
     left: 0;
    display: block;
    content: "";
}
}


.card-image a {
#home-nav .home-card__foreground {
pointer-events: none;
height: 100%;
    width: 100%;
     display: flex;
     display: flex;
     height: 100%;
     align-items: center;
    justify-content: center;
     padding: 0 15px;
     overflow: hidden;
     font-weight: 500;
     background: none !important;
}
}


.card-image a img {
/* Search */
    transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
 
.keyboard-text {
padding: 0 5px;
border: 1px solid;
margin: 0 2px;
border-radius: 4px;
}
}


.card:hover .card-image a img {
/* OLD */
    transform: scale(1.1);
 
.mainpage-row {
display: flex;
width: 100%;
flex-wrap: wrap;
}
}


.card h3 {
#featured_article.card {
    margin-top: 0;
width: calc(100% / 3 - 0.4rem);
    line-height: 1.2;
min-width: calc(860px / 3 - 0.4rem);
    font-weight: 600;
max-height: 400px;
}
}


.card .byline {
#featured_article .card-image a img {
    margin: 0 0 0.2rem 0;
object-fit: cover;
    /* color: #72777d; */
width: 320px;
    font-size: 0.825rem;
height: 260px;
}
}


.card .numdata {
#featured_article .card-text {
    margin-top: 0.8rem;
max-height: 120px;
}
}


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


.card-text {
@media ( hover: none ) {
    padding: 1.2rem;
.desktoponly {
display: none;
}
}
}


.card-button {
/* Breakpoints */
    /* background: #72777d; */
 
    transition: background 0.2s ease,
/* @media ( max-width: 485px ) {
        opacity 0.2s ease;
.home-header__bg {
}
right: 0;
}
} */


.card-button:hover {
@media ( min-width: 682px ) {
opacity: .8;
.home-header__search {
text-align: center;
}
}
}


.card-button a {
@media only screen and (max-width: 720px) {
    padding: 0.6rem;
.mainpage-row {
    display: block;
width: auto;
    background: none !important;
margin: 0 -20px;
    color: white;
padding: 0 20px;
    text-align: center;
overflow: auto;
    font-size: 0.875rem;
flex-wrap: nowrap;
     font-weight: 600;
     }
}
}


.card-link ul {
@media only screen and ( max-width: 800px ) {
    margin: 0;
.home-header {
    padding: 1.2rem 1.2rem 1.2rem 2.8rem;
flex-direction: column-reverse;
    font-size: 0.875rem;
}
.home-header__column {
padding: 0 20px;
}
}
}


@media only screen and (max-width: 720px) {
@media only screen and (max-width: 980px) {
    .mainpage-row {
#home-banner {
        width: auto;
display: none;
        margin: 0 -20px;
}
        padding: 0 20px;
        overflow: auto;
        flex-wrap: nowrap;
    }
}
}

Текущая версия от 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 для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта