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

Шаблон используемый на Wikimeat
м (Tim1mike переименовал страницу Шаблон:Заглавная/styles.css в Шаблон:Wikimeat/styles.css без оставления перенаправления)
мНет описания правки
Строка 1: Строка 1:
/* Стандартные заголовки */
.mainpage-body {
.main-header {
    width: 100%;
border-bottom-color: transparent;
    margin: 1.2rem -0.2rem 0 -0.2rem;
margin-bottom: 0.25em;
    display: flex;
margin-top: 0;
    flex-direction: column;
padding-bottom: 0;
padding-top: 0;
}
}


/* Списки без оформления */
.mainpage-row {
.main-plainlist > ul {
    display: flex;
list-style: none;
    width: 100%;
margin: 0;
    flex-wrap: wrap;
padding: 0;
}
}


.main-plainlist li {
.card {
margin-bottom: 0;
    margin: 0 0.2rem 0.4rem 0.2rem;
    display: flex;
    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 {
  на [[Служебная:Настройки#mw-prefsection-rendering]] */
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
.mw-headline-number {
     display: none;
}
}


@media (min-width: 720px) {
.card-caption {
.main-wikimedia {
    font-size: 0.875rem;
padding-top: 1rem;
    font-weight: 600;
padding-left: 1rem;
padding-right: 1rem;
}
}
}


@media (min-width: 1000px) {
.card-image a {
.main-wrapper {
    display: flex;
display: flex;
    height: 100%;
margin: 0 -0.75rem;
    justify-content: center;
}
    overflow: hidden;
    background: none !important;
.main-wrapper-column {
}
flex: 1;
 
margin: 0 0.75rem;
.card-image a img {
}
    transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}
.main-wikimedia {
 
padding-top: 1.5rem;
.card:hover .card-image a img {
padding-left: 1.5rem;
    transform: scale(1.1);
padding-right: 1.5rem;
}
}
 
.card h3 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 600;
}
 
.card .byline {
    margin: 0 0 0.2rem 0;
    color: #72777d;
    font-size: 0.825rem;
}
 
.card .numdata {
    margin-top: 0.8rem;
}
 
.card p {
    font-size: 0.875rem;
}
 
.card-text {
    padding: 1.2rem;
}
 
.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;
}
 
@media only screen and (max-width: 720px) {
    .mainpage-row {
        width: auto;
        margin: 0 -20px;
        padding: 0 20px;
        overflow: auto;
        flex-wrap: nowrap;
    }
}
}

Версия от 10:44, 7 ноября 2020

.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;
}

.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;
    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 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.0475), 0 6px 6px rgba(0, 0, 0, 0.0575);
}

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

.card-image a {
    display: flex;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    background: none !important;
}

.card-image a img {
    transition: transform 0.2s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.card:hover .card-image a img {
    transform: scale(1.1);
}

.card h3 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 600;
}

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

.card .numdata {
    margin-top: 0.8rem;
}

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

.card-text {
    padding: 1.2rem;
}

.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;
}

@media only screen and (max-width: 720px) {
    .mainpage-row {
        width: auto;
        margin: 0 -20px;
        padding: 0 20px;
        overflow: auto;
        flex-wrap: nowrap;
    }
}
🍪 Наш веб-сайт использует файлы cookie для того, чтобы сделать ваш опыт использования сайта лучше и анализа использования сайта