Страница 1 из 1

phpBB CustomCSS

Добавлено: авг 13, '26, 17:11
Sego
Изменения примененные на этом форуме к стилю Rock'n Roll . Размещать../styles/rockn_roll/theme/stylesheet.css

Код: Выделить всё

/* ===========================================================
   1DV Custom CSS
   Автор: Sego
   Дата: 24.07.2026

   Изменения:
   - новая вертикальная линия между автором и сообщением;
   - уменьшена ширина профиля;
   - увеличен отступ текста;
   - изображения ограничены 900 px;
   - мобильная версия сохранена;
   =========================================================== */
/* Вертикальное центрирование названий и описаний форумов */
ul.topiclist li.row dl.row-item dt .list-inner {
	min-height: 52px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}
body {
	background: #f2f2f2;
}

.wrap {
	background: #ffffff;
}
/* =====================================================
   Небольшое смягчение стиля
   ===================================================== */

/* Общие рамки блоков */
.forabg,
.forumbg {
    border: 1px solid #808080;
}

/* Заголовки категорий */
.forabg .header,
.forumbg .header {
    background: linear-gradient(#777777, #666666);
    color: #ffffff;
}

/* Внутренние разделители */
ul.topiclist li {
    border-color: #9a9a9a;
}

/* Вертикальные разделители колонок */
dd.posts,
dd.topics,
dd.lastpost {
    border-left: 1px solid #9a9a9a;
}

/* Вертикальное центрирование текста */
ul.topiclist li.row dl.row-item dt .list-inner {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}


.forabg .header,
.forumbg .header {
    background: linear-gradient(#707070, #606060);
    color: #fff;
    font-weight: bold;
}

.forabg .header,
.forumbg .header {
    padding-left: 12px;
}

/* Сдвигаем только текст форума */
.forumtitle,
.list-inner p {
    margin-left: 10px;
}
/* ===== Разделитель автора и сообщения ===== */

/* ===== 1DV ===== */

/* Убираем старую линию справа от профиля */
.postprofile {
    border-right: none !important;
}

/* Сужаем колонку автора */
.postprofile {
    width: 190px !important;
}

/* Оформление области сообщения */
.postbody {
    border-left: 1px solid #e0e0e0;
    padding-left: 30px !important;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Если внутренний контейнер тоже добавляет отступ */
.inner {
    padding-left: 0 !important;
}
/* Только для больших экранов */
@media (min-width: 900px) {
    .leftsided .post:not(.profile_hidden) div.postbody {
        width: calc(100% - 210px) !important;
        float: right;
    }
}

/* ===== Ограничение размера изображений в сообщениях ===== */

/* По умолчанию все изображения до 900 px */
.postbody .content img,
.postbody .attach-image img {
    max-width: 900px;
    width: auto;
    height: auto;
}

/* Во всех разделах, кроме Фотокружка, вложения показываем уменьшенными */
/* Если создаётся новый подраздел Фотокружка,
   добавить его forum-ID в список исключений ниже */
body.section-viewtopic:not(.forum-4):not(.forum-9):not(.forum-16):not(.forum-20):not(.forum-21):not(.forum-22):not(.forum-23):not(.forum-25)
.postbody .attach-image img {
    max-width: 500px;
    max-height: 500px;
}

/* Чтобы картинка не вылезала за экран на телефоне */
@media (max-width: 950px) {

    .postbody .content img,
    .postbody .attach-image img {
        max-width: 100%;
        height: auto;
    }

    /* Для обычных разделов сохраняем уменьшенный размер */
    body.section-viewtopic:not(.forum-4):not(.forum-9):not(.forum-16):not(.forum-20):not(.forum-21):not(.forum-22):not(.forum-23):not(.forum-25)
    .postbody .attach-image img {
        max-width: 500px;
        max-height: 500px;
    }
}

/* Скрыть имя файла и размер вложения */
.inline-attachment dl.file > dd {
    display: none;
}
/* Вертикальные отступы */
.postbody .attach-image {
    margin: 16px 0 20px;
}
.lastpost .icon.icon-md {
    font-size: 20px !important;
    color: #2e8b57 !important;   /* SeaGreen */
    transition: color .2s ease, transform .15s ease;
}

.lastpost a:hover .icon.icon-md {
    color: #d40000 !important;
    transform: scale(1.15);
}
@media (max-width: 700px) {
}

/* Возвращаем верхнее меню на мобильном */
.responsive-hide {
    display: block !important;
}

/* Прячем все пункты меню */
.responsive-hide ul li {
    display: none !important;
}

/* Оставляем Архив — 3-й пункт */
.responsive-hide ul li:nth-child(3),

/* Оставляем Gallery — 4-й пункт */
.responsive-hide ul li:nth-child(4),

/* Оставляем Пользователи — 6-й пункт */
.responsive-hide ul li:nth-child(6) {
    display: inline-block !important;
}
/* ==========================================================
   1DV Custom CSS
   Правки оформления форума.
   24.07.2026
   ========================================================== */