Шаблон:Main page/shared/2styles2.css: различия между версиями

Материал из МК14 | Space Station 14 Wiki
(Новая страница: «.home-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); grid-auto-rows: minmax(3rem, auto); grid-gap: 1rem; →‎Используйте grid-gap для поддержки grid: } .home-grid--col2 { grid-template-columns: 1fr 1fr; } .home-grid a.external { background-image: none; } .home-badge { display: flex; gap: 0.5rem; /* Убедитесь, что испол...»)
 
Нет описания правки
 
Строка 223: Строка 223:
     font-size: 1rem;
     font-size: 1rem;
     font-family: monospace;
     font-family: monospace;
    text-align: center;
}
.active_search2024{
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    background-color: #f5f5f5;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
     text-align: center;
     text-align: center;
}
}

Текущая версия от 18:39, 23 октября 2024

.home-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr));
    grid-auto-rows: minmax(3rem, auto);
    grid-gap: 1rem; /* Используйте grid-gap для поддержки grid */
}

.home-grid--col2 {
    grid-template-columns: 1fr 1fr;
}

.home-grid a.external {
    background-image: none;
}

.home-badge {
    display: flex;
    gap: 0.5rem; /* Убедитесь, что используете flexbox */
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #333;
    border-radius: 10px;
    font-weight: 400;
    letter-spacing: 0.025em;
}

.home-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 1rem;
}

.home-card table.timeline {
    margin-top: 1rem;
}

.home-card--col2 {
    grid-column: span 2;
}

.home-card--row3 {
    grid-row: span 3;
}

/* Удалено свойство для .home-card--row4 */
.home-card__badge,
.home-card__label {
    color: #999;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.home-card__badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: #f5f5f5;
}

.home-card__header {
    color: #333;
    font-size: 1rem;
}

.home-card__header a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-card__header a:after {
    content: '▶';
    font-size: 0.875rem;
}

.home-card__background {
    position: absolute;
}

.home-card__background::after {
    position: absolute;
    display: block;
    background: linear-gradient(to right, #000, transparent);
    content: "";
    transition: transform 250ms ease;
}

.home-card__background picture,
.home-card__background img {
    width: 100%;
    height: 100%;
}

.home-card__background img {
    object-fit: cover;
    object-position: center;
}

.home-card__foreground {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
}

.home-card__foreground .home-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
}

.home-card__foreground .home-card__header {
    color: #fff;
}

.home-card__foreground .home-card__label {
    color: #bababa;
}

.home-card p {
    margin-top: 1rem;
    font-size: 1rem;
}

.home-card.home-card--button {
    overflow: hidden;
    padding: 0;
    border: none; /* Изменено на none для совместимости */
}

.home-card--button a {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    background: transparent;
    color: #fff;
    font-weight: 500;
}

.home-card--button .home-card__background a {
    padding: 0;
}

.home-card--button img {
    transition: transform 250ms ease;
}

.home-card--button:hover img {
    transform: scale(1.1);
}

.home-link {
    display: grid;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 500;
    grid-gap: 1rem; /* Используйте grid-gap для поддержки grid */
    text-align: center;
}

.home-link__button {
    display: flex;
}

.home-link__button a {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333 !important;
    text-decoration: none !important;
}

.home-link__button a:hover {
    background: #e5e5e5;
}

.home-link__button a:active {
    background: #d5d5d5;
}

#home-content {
    margin-top: 2rem;
}

.home-card .template-statsbar {
    margin: 0;
}

#home-card-discord {
    background: #5865f2;
}

#home-card-patreon {
    background: #ff424d;
}

#home-card-kofi {
    background: #ff5e5b;
}

#home-card-reddit {
    background: #ff4500;
}

.home-footer {
    font-size: 1rem;
    font-family: monospace;
    text-align: center;
}

.active_search2024{
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    background-color: #f5f5f5;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}