Перейти к содержанию

MediaWiki:Common.css: различия между версиями

Материал из База знаний Shelly
Нет описания правки
Нет описания правки
Строка 4: Строка 4:
     gap: 12px;
     gap: 12px;
     margin: 16px 0;
     margin: 16px 0;
    justify-content: flex-start;
}
}


/* Более компактная карточка */
.shelly-grid-card {
.shelly-grid-card {
    position: relative;
     flex: 0 0 30%;
     flex: 0 0 30%;
     max-width: 30%;
     max-width: 30%;
Строка 17: Строка 14:
     background-color: #fff;
     background-color: #fff;
     box-shadow: 0 2px 4px rgba(0,0,0,0.04);
     box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}
}


/* Меньше отступы внутри */
/* Ссылка, растянутая на весь блок */
.shelly-grid-link {
.shelly-grid-card .shelly-grid-link {
     display: block;
     display: block;
     padding: 10px 14px;
     padding: 10px 14px;
    text-decoration: none;
    color: inherit;
}
/* Сбрасываем оформление ссылок внутри */
.shelly-grid-card .shelly-grid-link a {
     text-decoration: none;
     text-decoration: none;
     color: inherit;
     color: inherit;
Строка 39: Строка 41:
}
}


/* Более лёгкий ховер */
.shelly-grid-card:hover {
.shelly-grid-card:hover {
     border-color: #c0d4ff;
     border-color: #c0d4ff;
Строка 46: Строка 47:
     transition: box-shadow 0.15s ease, transform 0.15s ease,
     transition: box-shadow 0.15s ease, transform 0.15s ease,
                 border-color 0.15s ease;
                 border-color 0.15s ease;
}
.shelly-grid-card {
    position: relative;
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 220px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    overflow: hidden;
}
/* растягиваем ссылку на весь блок */
.shelly-grid-link {
    display: block;
    padding: 10px 14px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
}

Версия от 14:27, 3 марта 2026

.shelly-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.shelly-grid-card {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 220px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* Ссылка, растянутая на весь блок */
.shelly-grid-card .shelly-grid-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
}

/* Сбрасываем оформление ссылок внутри */
.shelly-grid-card .shelly-grid-link a {
    text-decoration: none;
    color: inherit;
}

.shelly-grid-card h3 {
    margin: 0 0 6px 0;
    font-size: 1em;
}

.shelly-grid-card p {
    margin: 0;
    font-size: 0.85em;
    color: #555;
}

.shelly-grid-card:hover {
    border-color: #c0d4ff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    transform: translateY(-1px);
    transition: box-shadow 0.15s ease, transform 0.15s ease,
                border-color 0.15s ease;
}