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

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

Материал из База знаний Shelly
Новая страница: «Сетка карточек на главной: .shelly-grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; } .shelly-grid-card { flex: 1 1 260px; border: 1px solid #e5e5e5; padding: 16px 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); border-radius: 4px; background-color: #fff; } .shelly-grid-card h3 { margin-top: 0; margin-bottom: 8px; font-size: 1.1em; } .shelly-grid-card p { mar...»
 
Нет описания правки
 
(не показано 12 промежуточных версий этого же участника)
Строка 1: Строка 1:
/* Сетка карточек на главной */
.shelly-grid {
.shelly-grid {
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 16px;
     gap: 12px;
     margin: 20px 0;
     margin: 16px 0;
}
}


.shelly-grid-card {
.shelly-grid-card {
     flex: 1 1 260px;
     flex: 0 0 30%;
    max-width: 30%;
    min-width: 220px;
     border: 1px solid #e5e5e5;
     border: 1px solid #e5e5e5;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
     border-radius: 4px;
     border-radius: 4px;
     background-color: #fff;
     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 {
.shelly-grid-card h3 {
     margin-top: 0;
     margin: 0 0 6px 0;
    margin-bottom: 8px;
     font-size: 1em;
     font-size: 1.1em;
}
}


.shelly-grid-card p {
.shelly-grid-card p {
     margin: 0;
     margin: 0;
     font-size: 0.9em;
     font-size: 0.85em;
     color: #555;
     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;
}
.devices-list {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
}
/* одна строка списка */
.devices-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid #e9e9e9;
    text-decoration: none;
    color: #111;
    background-color: #fff;
    font-size: 20px;
}
.devices-row:first-child {
    border-top: none;
}
.devices-row:hover {
    background-color: #f7f9ff;
}
.devices-row-title {
    white-space: nowrap;
}
.devices-row-arrow {
    font-size: 1.1em;
    color: #1a3268;
}
/* Все картинки в контенте не шире контейнера */
.mw-parser-output img {
  max-width: 100%;
  height: auto;
}
}

Текущая версия от 12:32, 12 марта 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;
}

.devices-list {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
}

/* одна строка списка */
.devices-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-top: 1px solid #e9e9e9;
    text-decoration: none;
    color: #111;
    background-color: #fff;
    font-size: 20px;
}

.devices-row:first-child {
    border-top: none;
}

.devices-row:hover {
    background-color: #f7f9ff;
}

.devices-row-title {
    white-space: nowrap;
}

.devices-row-arrow {
    font-size: 1.1em;
    color: #1a3268;
}
/* Все картинки в контенте не шире контейнера */
.mw-parser-output img {
  max-width: 100%;
  height: auto;
}