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

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


.mainpage-row {
#home-benefits {
    display: flex;
display: flex;
    width: 100%;
flex-direction: column;
    flex-wrap: wrap;
justify-content: space-between;
}
}


.card {
.home-stats__value {
    margin: 0 0.2rem 0.4rem 0.2rem;
font-size: 2.5rem;
    display: flex;
font-weight: 800;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border: transparent; /* 1px solid #eaecf0; */
    border-radius: 8px;
    overflow: hidden;
    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 {
.home-stats__unit {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
margin-top: 0.2rem;
color: var( --color-base--subtle );
}
}


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


.card-image a {
#home-nav {
    display: flex;
margin-top: 2.4rem;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    background: none !important;
}
}


.card-image a img {
#home-nav .home-card__background:after {
     transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
position: absolute;
    pointer-events: none;
     top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    content: "";
}
}


.card:hover .card-image a img {
#home-nav .home-card__foreground {
    transform: scale(1.1);
pointer-events: none;
}
height: 100%;
 
    width: 100%;
.card h3 {
    display: flex;
     margin-top: 0;
     align-items: center;
     line-height: 1.2;
     padding: 0 15px;
     font-weight: 600;
     font-weight: 500;
}
}


.card .byline {
/* Search */
    margin: 0 0 0.2rem 0;
    color: #72777d;
    font-size: 0.825rem;
}


.card .numdata {
.keyboard-text {
    margin-top: 0.8rem;
padding: 0 5px;
border: 1px solid;
margin: 0 2px;
border-radius: 4px;
}
}


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


.card-text {
.mainpage-row {
    padding: 1.2rem;
display: flex;
width: 100%;
flex-wrap: wrap;
}
}
.card-button {
    background: #72777d;
    transition: background 0.2s ease,
        opacity 0.2s ease;
}
.card-button:hover {
opacity: .8;
}
.card-button a {
    padding: 0.6rem;
    display: block;
    background: none!important;
    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;
}
/* Header */
.mainpage-header h1 {
    line-height: 1.2;
}
.mainpage-header .mw-headline span {
    font-weight: 600;
    white-space: nowrap;
}
/* Featured Article */


#featured_article.card {
#featured_article.card {
    width: calc(100% / 2 - 0.4rem);
width: calc(100% / 3 - 0.4rem);
    min-width: calc(860px / 2 - 0.4rem);
min-width: calc(860px / 3 - 0.4rem);
    flex-direction: row;
max-height: 400px;
}
}


#featured_article .card-image {
#featured_article .card-image a img {
    width: calc(860px / 2 - 2.4rem);
object-fit: cover;
    overflow: hidden;
width: 320px;
height: 260px;
}
}


#featured_article .card-image img {
#featured_article .card-text {
    height: 100%;
max-height: 120px;
    width: auto;
    position: relative;
    /* Edit thumbnail offset here */
    /* margin-left: 100%; */
}
}


#wikimeat_intro.card {
.mainpage-navigation .card {
     width: calc(100% / 6 * 5 - 0.4rem);
     width: calc(100%/4 - 0.4rem);
     flex-direction: row;
     min-width: calc(860px/4 - 0.4rem);
}
}


#wikimeat_intro .card-image {
@media ( hover: none ) {
    width: 50%;
.desktoponly {
    overflow: hidden;
display: none;
}
}
}


#wikimeat_intro .card-image img {
/* Breakpoints */
    height: 100%;
    width: auto;
    position: relative;
}


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


#contribute.card {
@media ( min-width: 682px ) {
width: calc(100% / 3 - 0.4rem);
.home-header__search {
min-width: calc(860px/4 - 0.4rem);
text-align: center;
/*background-color: #00af89;*/
}
/*border-color: #00af89;*/
}
}


#contribute.card h3 {
@media only screen and (max-width: 720px) {
/*color: #fff;*/
.mainpage-row {
width: auto;
margin: 0 -20px;
padding: 0 20px;
overflow: auto;
flex-wrap: nowrap;
    }
}
}


#contribute.card p {
@media only screen and ( max-width: 800px ) {
/*color: #eaecf0;*/
.home-header {
flex-direction: column-reverse;
}
.home-header__column {
padding: 0 20px;
}
}
}


#contribute .card-button {
@media only screen and (max-width: 980px) {
background: #c1272d;
#home-banner {
/*background: #14866d;*/
display: none;
}
}
 
/*Discord*/
 
#discord.card {
width: calc(100% / 3 - 0.4rem);
min-width: calc(860px/4 - 0.4rem);
/*background-color: #7289da;*/
/*border-color: #7289da;*/
}
 
#discord.card h3 {
/*color: #fff;*/
}
 
#discord.card p {
/*color: #eaecf0;*/
}
 
#discord .card-button {
background: #697ec4;
}
 
@media only screen and (max-width: 720px) {
    .mainpage-row {
        width: auto;
        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 для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта