Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :root {
- --bg: rgb(21, 32, 43);
- --postbg: #192734;
- --postbghighlight: rgb(19, 29, 40);
- --border: rgba(56, 68, 77, 0.4);
- --text: #ccc;
- --alttext: #7d7d7d;
- --link: #c3672a;
- --hover: #a74300;
- --title: #6995c5;
- --postnum: #789922;
- --spoiler: #000000;
- --btnbg: #192734;
- --btnborder: rgb(56, 68, 77);
- --btnbghover: rgb(21, 32, 43);
- /* обводка постов: поставь, например, 1px solid var(--border), если захочешь вернуть */
- --post-outline: none;
- }
- body, html, .b-page__content, .light-theme {
- background-color: var(--bg) !important;
- color: var(--text) !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- font-size: 15px !important;
- line-height: 1.3 !important;
- }
- input:focus, textarea:focus, aside.sidebar {
- background-color: var(--bg) !important;
- }
- header .fixed-nav.fixed a, header .top-nav ul li a, span.spoiler:hover, .sidebar .boards-list .name, .board-description, div.pages a.selected, .bb__header {
- color: var(--text) !important;
- }
- * {
- border-radius: 0px !important;
- }
- h1, header div.subtitle, .board-name {
- font-family: 'Trebuchet MS', sans-serif !important;
- color: var(--title) !important;
- }
- a, .mainpage .box-wrap fieldset a {
- color: var(--link) !important;
- text-decoration: none !important;
- cursor: pointer !important;
- }
- span.spoiler:hover a {
- color: var(--link) !important;
- }
- a:hover, .mainpage .box-wrap fieldset a:hover, header .fixed-nav.fixed a:hover, header .top-nav ul li a:hover {
- color: var(--hover) !important;
- }
- header, header .fixed-nav.fixed, header .top-nav, .bb__row {
- background-color: var(--postbg) !important;
- border-bottom: 1px solid var(--border) !important;
- }
- .board-description, .threads-grid .mix, div.pages, .pager, .bb__header {
- background-color: var(--postbg) !important;
- border: 1px solid var(--border) !important;
- }
- .bb__header, .embedded {
- border-radius: 3px !important;
- }
- .bb__row:hover {
- background-color: var(--postbghighlight) !important;
- }
- hr {
- border-top: 1px solid var(--postbg) !important;
- }
- .bb__header {
- border-bottom: none !important;
- }
- /* =====================================================
- ПОСТЫ (новая svelte-вёрстка: article.post, .post__*)
- ===================================================== */
- article.post {
- display: table !important;
- box-sizing: border-box !important;
- min-width: 0 !important;
- max-width: 75vw !important;
- margin: 2px 0 6px 0 !important;
- padding: 6px 8px !important;
- background-color: var(--postbg) !important;
- border: var(--post-outline) !important;
- box-shadow: none !important;
- outline: none !important;
- color: var(--text) !important;
- }
- article.post:has(.post__file) {
- min-width: min(550px, 100%) !important;
- }
- article.post:target,
- article.post.highlighted,
- article.post--highlight {
- background-color: var(--postbghighlight) !important;
- }
- article.post--you {
- border-left: 2px dashed var(--link) !important;
- }
- /* clearfix: текст обтекает картинку, но пост её не теряет */
- article.post::after {
- content: "" !important;
- display: table !important;
- clear: both !important;
- }
- /* ---------- шапка поста ---------- */
- article.post .post__intro {
- display: flex !important;
- justify-content: flex-start !important;
- align-items: baseline !important;
- flex-wrap: wrap !important;
- gap: 8px !important;
- padding: 0 0 4px 0 !important;
- margin: 0 !important;
- font-size: 0.9em !important;
- color: var(--alttext) !important;
- }
- article.post .post__left,
- article.post .post__right {
- display: flex !important;
- flex-wrap: wrap !important;
- align-items: baseline !important;
- gap: 6px !important;
- margin: 0 !important;
- padding: 0 !important;
- }
- article.post .post__left > *,
- article.post .post__right > * {
- margin: 0 !important;
- }
- article.post .post__counter,
- article.post .post__name,
- article.post .post__time,
- article.post .post__num {
- color: var(--alttext) !important;
- font-weight: normal !important;
- }
- article.post .post__name {
- color: var(--postnum) !important;
- }
- article.post .post__no {
- color: var(--alttext) !important;
- }
- article.post .post__no:hover {
- color: var(--hover) !important;
- }
- /* кнопки [−], Кляуза, Ответить -> обычный серый текст без рамок */
- article.post .post__hide,
- article.post .post__report,
- article.post .post__reply-btn {
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- outline: none !important;
- padding: 0 !important;
- margin: 0 !important;
- height: auto !important;
- min-height: 0 !important;
- font: inherit !important;
- font-size: inherit !important;
- font-weight: normal !important;
- color: var(--alttext) !important;
- cursor: pointer !important;
- appearance: none !important;
- }
- article.post .post__hide:hover,
- article.post .post__report:hover,
- article.post .post__reply-btn:hover {
- background: transparent !important;
- color: var(--hover) !important;
- }
- /* ---------- файлы / картинки ---------- */
- article.post .post__files {
- float: left !important;
- display: flex !important;
- flex-direction: row !important;
- flex-wrap: wrap !important;
- gap: 16px !important;
- margin: 4px 15px 4px 0 !important;
- padding: 0 !important;
- }
- article.post .post__file {
- display: flex !important;
- flex-direction: column !important;
- align-items: flex-start !important;
- width: max-content !important;
- max-width: 100% !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- }
- /* инфо о файле — над картинкой */
- article.post .post__file-bar {
- order: -1 !important;
- display: flex !important;
- flex-direction: row !important;
- flex-wrap: wrap !important;
- align-items: center !important;
- gap: 6px !important;
- margin: 0 0 4px 0 !important;
- padding: 0 !important;
- max-width: 250px !important;
- background: transparent !important;
- border: none !important;
- opacity: 1 !important;
- }
- article.post .post__file-size {
- color: var(--alttext) !important;
- font-size: 11px !important;
- line-height: 1 !important;
- white-space: nowrap !important;
- }
- article.post .post__file-dl {
- display: inline-flex !important;
- align-items: center !important;
- color: var(--link) !important;
- }
- article.post .post__file-link {
- position: relative !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- }
- article.post .post__thumb {
- display: block !important;
- width: auto !important;
- height: auto !important;
- max-width: 250px !important;
- max-height: 250px !important;
- object-fit: contain !important;
- margin: 0 !important;
- border: none !important;
- opacity: 1 !important;
- transition: none !important;
- cursor: pointer !important;
- }
- /* кнопка поиска по картинке — маленькая, без рамки */
- article.post .post__search {
- background: rgba(0, 0, 0, 0.55) !important;
- border: none !important;
- color: var(--text) !important;
- padding: 2px !important;
- cursor: pointer !important;
- }
- /* ---------- текст и ответы ---------- */
- article.post .post__body {
- display: block !important;
- margin: 0 !important;
- padding: 4px 0 0 0 !important;
- color: var(--text) !important;
- word-break: break-word !important;
- overflow-wrap: anywhere !important;
- }
- article.post .post__body > *:first-child {
- margin-top: 0 !important;
- }
- article.post .post__body .quote,
- article.post .post__body .greentext,
- article.post .post__body span.quote {
- color: var(--postnum) !important;
- }
- article.post .post__refs {
- clear: both !important;
- display: block !important;
- margin: 6px 0 0 0 !important;
- padding: 0 !important;
- font-size: 0.85em !important;
- color: var(--alttext) !important;
- }
- article.post .post__refs::before {
- content: "Ответы: ";
- font-style: italic;
- }
- article.post .post__ref {
- margin-right: 6px !important;
- font-style: italic !important;
- }
- /* ---------- прочее ---------- */
- .omitted {
- color: var(--alttext) !important;
- font-size: 0.9em !important;
- }
- span.spoiler {
- background-color: var(--spoiler) !important;
- color: transparent !important;
- transition: none !important;
- }
- span.spoiler a {
- color: transparent !important;
- transition: none !important;
- }
- input, textarea, select, .post-form input, .post-form textarea, .act-button, input[type="submit"], button, .format-text button {
- background-color: var(--btnbg) !important;
- border: 1px solid var(--btnborder) !important;
- color: var(--text) !important;
- appearance: none !important;
- }
- input, textarea, select, .post-form input, .post-form textarea {
- padding: 4px !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- }
- input[type="checkbox"], input[type="radio"] {
- appearance: auto !important;
- background-color: transparent !important;
- border: none !important;
- padding: 0 !important;
- cursor: pointer !important;
- margin: 3px !important;
- }
- input:focus, textarea:focus {
- border-color: var(--link) !important;
- outline: none !important;
- }
- .act-button, input[type="submit"], button, .format-text button {
- cursor: pointer !important;
- padding: 4px 6px !important;
- }
- .act-button:hover, input[type="submit"]:hover, button:hover, input.submit-post:hover {
- background-color: var(--btnbghover) !important;
- }
- form.post-form {
- border: none !important;
- padding: 4px !important;
- min-width: 450px !important;
- }
- form.post-form input[type="text"],
- form.post-form input[type="password"] {
- min-height: auto !important;
- margin-bottom: 2px !important;
- }
- input.submit-post {
- min-height: auto !important;
- margin-left: 2px !important;
- }
- textarea#body {
- margin: 1px 0 !important;
- width: 100% !important;
- box-sizing: border-box !important;
- }
- div.format-text {
- padding: 12px 0px 4px 0px !important;
- gap: 4px !important;
- }
- div.newpost {
- padding: 10px 0 !important;
- text-align: center !important;
- }
- .newpost a.act-button {
- background-color: transparent !important;
- border: none !important;
- font-size: 1.2rem !important;
- line-height: 2 !important;
- padding: 4px 12px !important;
- display: inline-block !important;
- opacity: 1 !important;
- transition: none !important;
- box-shadow: none !important;
- color: var(--link) !important;
- }
- .newpost a.act-button:hover {
- background-color: transparent !important;
- color: var(--hover) !important;
- }
- .newpost a.act-button .text {
- color: inherit !important;
- font-size: inherit !important;
- font-weight: normal !important;
- }
- .newpost a.act-button .icon, .newpost a.act-button img {
- display: none !important;
- }
- div.dropzone {
- background-color: transparent !important;
- border: 2px dashed var(--btnborder) !important;
- min-height: auto !important;
- margin-top: 4px !important;
- overflow: hidden !important;
- padding: 0 !important;
- appearance: none !important;
- }
- div.file-hint {
- border: none !important;
- color: var(--alttext) !important;
- font-family: "Trebuchet MS", sans-serif !important;
- font-size: 20px !important;
- text-transform: uppercase !important;
- padding: 9px 0px !important;
- margin: 0 !important;
- top: 0 !important;
- bottom: 0 !important;
- }
- div.file-hint:hover {
- filter: brightness(1.2);
- }
- div.no-pic-warning {
- background-color: var(--postbghighlight) !important;
- border: 1px solid var(--border) !important;
- box-shadow: none !important;
- padding: 8px 12px !important;
- color: var(--alttext) !important;
- }
- aside.sidebar {
- top: 0px !important;
- border-right: 1px solid var(--postbg) !important;
- padding: 0 !important;
- margin-right: 4px !important;
- }
- .sidebar .boards-list .name {
- background-color: var(--border) !important;
- border: none !important;
- font-size: 13.5px !important;
- font-weight: normal !important;
- margin: 0px 0px 5px 0px !important;
- padding: 1px 2px !important;
- }
- .sidebar .boards-list ul {
- padding: 0px 0px 0px 15px !important;
- margin: 0 !important;
- }
- .sidebar .boards-list ul li {
- margin: 0 !important;
- padding: 0 !important;
- }
- .sidebar .boards-list ul li a {
- font-size: 13.5px !important;
- line-height: 17.55px !important;
- padding: 0px !important;
- display: inline !important;
- transition: none !important;
- }
- div.pages, .pager {
- padding: 8px !important;
- font-size: 0.9em !important;
- }
- div.pages a.selected {
- font-weight: bold !important;
- }
- div.ui-dialog.ui-corner-all {
- background-color: var(--postbg) !important;
- border: 1px solid var(--border) !important;
- padding: 0 !important;
- box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
- }
- div.ui-dialog-titlebar.ui-widget-header {
- background-color: var(--spoiler) !important;
- border: none !important;
- padding: 2px !important;
- margin: 0 0 1px 0 !important;
- text-align: center !important;
- }
- span.ui-dialog-title {
- color: var(--text) !important;
- font-weight: normal !important;
- font-size: 14px !important;
- float: none !important;
- margin: 0 !important;
- }
- div.gosuslugi-enter {
- display: none !important;
- }
- div.search-btn-container {
- transform: translate(70px, -7px) !important;
- }
- /* ===== Всплывающие посты ===== */
- .pv {
- box-sizing: border-box !important;
- padding: 0 !important;
- background: var(--postbg) !important;
- color: var(--text) !important;
- border: none !important;
- outline: none !important;
- border-radius: 0 !important;
- box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important;
- /* Убираем заданные через style ограничения размеров */
- max-width: min(750px, calc(100vw - 16px)) !important;
- max-height: min(650px, 80vh) !important;
- overflow: auto !important;
- overscroll-behavior: contain !important;
- /* Без анимации перемещения окна */
- transition: none !important;
- animation: none !important;
- }
- /* Отменяем табличную ширину, внешние отступы и минимум 550px */
- .pv article.post,
- .pv article.post:has(.post__file) {
- display: flow-root !important;
- box-sizing: border-box !important;
- width: auto !important;
- min-width: 0 !important;
- max-width: 100% !important;
- margin: 0 !important;
- padding: 8px 10px !important;
- background: var(--postbg) !important;
- border: none !important;
- outline: none !important;
- box-shadow: none !important;
- }
- /* Полный текст вместо обрезанного превью */
- .pv article.post .post__body--clamp {
- display: block !important;
- -webkit-line-clamp: unset !important;
- line-clamp: unset !important;
- max-height: none !important;
- overflow: visible !important;
- text-overflow: clip !important;
- }
- .pv article.post .post__intro {
- margin-bottom: 4px !important;
- }
- .pv article.post .post__refs:empty {
- display: none !important;
- }
- /* Всплывающий пост закреплён относительно экрана */
- .pv {
- position: fixed !important;
- transition: none !important;
- animation: none !important;
- }
- .pv {
- overscroll-behavior: auto !important;
- }
- /* Оранжевая полоска слева у своих постов */
- article.post.post--mine,
- .pv article.post.post--mine {
- border-left: 2px solid #c3672a !important;
- }
- header.site-header {
- /* Оставляем видимыми 6 пикселей панели */
- --header-strip: 6px;
- position: fixed !important;
- top: 0 !important;
- right: 0 !important;
- bottom: auto !important;
- left: 0 !important;
- z-index: 1000 !important;
- box-sizing: border-box !important;
- width: 100% !important;
- max-width: none !important;
- height: auto !important;
- min-height: 0 !important;
- margin: 0 !important;
- padding: 4px 10px 8px !important;
- display: flex !important;
- flex-direction: row !important;
- justify-content: space-between !important;
- align-items: center !important;
- flex-wrap: wrap !important;
- gap: 4px 16px !important;
- background: var(--postbg, #192734) !important;
- color: var(--text, #ccc) !important;
- border: none !important;
- border-bottom: 1px solid var(--link, #c3672a) !important;
- border-radius: 0 !important;
- box-shadow: none !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- font-size: 13px !important;
- line-height: 20px !important;
- /* Перекрываем обычное скрытие панели при прокрутке */
- transform: translateY(calc(-100% + var(--header-strip))) !important;
- translate: none !important;
- opacity: 1 !important;
- visibility: visible !important;
- pointer-events: auto !important;
- transition: none !important;
- animation: none !important;
- }
- /* Раскрываем мышью или при навигации клавишей Tab */
- header.site-header:hover,
- header.site-header:focus-within {
- transform: translateY(0) !important;
- }
- /* Компактные группы кнопок */
- header.site-header .site-header__group {
- display: flex !important;
- flex-direction: row !important;
- align-items: center !important;
- flex-wrap: wrap !important;
- flex: 0 1 auto !important;
- gap: 4px 10px !important;
- min-width: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- }
- /* Ссылки и кнопки настроек без больших рамок */
- header.site-header .site-header__link,
- header.site-header .site-header__board {
- display: inline-block !important;
- width: auto !important;
- height: auto !important;
- min-width: 0 !important;
- min-height: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- font: inherit !important;
- color: var(--link, #c3672a) !important;
- text-decoration: none !important;
- white-space: nowrap !important;
- cursor: pointer !important;
- transition: none !important;
- }
- header.site-header .site-header__link:hover,
- header.site-header .site-header__board:hover {
- color: var(--hover, #a74300) !important;
- }
- /* Список досок */
- header.site-header .site-header__boards {
- font: inherit !important;
- color: var(--alttext, #7d7d7d) !important;
- }
- header.site-header .site-header__sep {
- margin: 0 3px !important;
- color: var(--alttext, #7d7d7d) !important;
- }
- /* Переключатель темы: компактная кнопка с прежней функцией */
- header.site-header .theme-toggle {
- display: inline-flex !important;
- align-items: center !important;
- justify-content: center !important;
- position: relative !important;
- width: 26px !important;
- height: 22px !important;
- min-width: 0 !important;
- min-height: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- cursor: pointer !important;
- transition: none !important;
- }
- header.site-header .theme-toggle__knob {
- position: static !important;
- display: inline-block !important;
- width: auto !important;
- height: auto !important;
- margin: 0 !important;
- padding: 0 !important;
- transform: none !important;
- translate: none !important;
- background: transparent !important;
- box-shadow: none !important;
- font-size: 14px !important;
- line-height: 1 !important;
- transition: none !important;
- animation: none !important;
- }
- aside.sidebar {
- box-sizing: border-box !important;
- width: 190px !important;
- max-width: 190px !important;
- min-width: 0 !important;
- padding: 0 !important;
- background: var(--bg) !important;
- color: var(--text) !important;
- border-right: 1px solid var(--border) !important;
- box-shadow: none !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- font-size: 13px !important;
- line-height: 17px !important;
- text-align: left !important;
- text-indent: 0 !important;
- align-items: stretch !important;
- }
- /* Секции и их содержимое — без центрирования */
- aside.sidebar .sidebar__section,
- aside.sidebar .sidebar__title,
- aside.sidebar .sidebar__list,
- aside.sidebar .sidebar__list > li,
- aside.sidebar .sidebar__link {
- box-sizing: border-box !important;
- text-align: left !important;
- text-indent: 0 !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- font-size: 13px !important;
- font-weight: normal !important;
- line-height: 17px !important;
- letter-spacing: normal !important;
- text-transform: none !important;
- }
- /* Секция занимает всю ширину, без боковых зазоров */
- aside.sidebar .sidebar__section {
- display: block !important;
- align-self: stretch !important;
- width: 100% !important;
- max-width: none !important;
- min-width: 0 !important;
- margin: 0 0 8px !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- }
- /* Плашка от края до края, текст у левого края */
- aside.sidebar .sidebar__title {
- display: block !important;
- width: 100% !important;
- max-width: none !important;
- min-width: 0 !important;
- margin: 0 0 3px !important;
- padding: 1px 0 !important;
- background: var(--border) !important;
- color: var(--text) !important;
- border: none !important;
- border-radius: 0 !important;
- box-shadow: none !important;
- }
- /* Список также без отступа слева */
- aside.sidebar .sidebar__list {
- display: block !important;
- width: 100% !important;
- max-width: none !important;
- min-width: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- list-style: none !important;
- }
- aside.sidebar .sidebar__list > li {
- display: block !important;
- width: 100% !important;
- margin: 0 !important;
- padding: 0 !important;
- list-style: none !important;
- background: transparent !important;
- border: none !important;
- }
- /* Ссылки начинаются у левого края строки */
- aside.sidebar .sidebar__link {
- display: block !important;
- width: 100% !important;
- min-width: 0 !important;
- margin: 0 !important;
- padding: 0 !important;
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- color: var(--link) !important;
- text-decoration: none !important;
- white-space: normal !important;
- overflow-wrap: break-word !important;
- transition: none !important;
- }
- /* Верхняя строка: Назад и кнопка скрытия */
- aside.sidebar .sidebar__top {
- display: flex !important;
- align-items: center !important;
- justify-content: space-between !important;
- align-self: stretch !important;
- gap: 6px !important;
- margin: 0 !important;
- padding: 8px 4px 4px 0 !important;
- background: transparent !important;
- border: none !important;
- }
- aside.sidebar .sidebar__back,
- aside.sidebar .sidebar__toggle,
- aside.sidebar .sidebar__post {
- width: auto !important;
- height: auto !important;
- min-width: 0 !important;
- min-height: 0 !important;
- background: transparent !important;
- border: none !important;
- box-shadow: none !important;
- font-family: 'Trebuchet MS', sans-serif !important;
- font-size: 13px !important;
- font-weight: normal !important;
- line-height: 17px !important;
- text-align: left !important;
- color: var(--link) !important;
- cursor: pointer !important;
- transition: none !important;
- }
- aside.sidebar .sidebar__back,
- aside.sidebar .sidebar__toggle {
- margin: 0 !important;
- padding: 0 !important;
- }
- /* Кнопка отправки */
- aside.sidebar .sidebar__post {
- display: flex !important;
- align-items: center !important;
- justify-content: flex-start !important;
- gap: 5px !important;
- margin: 2px 0 8px !important;
- padding: 2px 0 !important;
- }
- aside.sidebar .sidebar__post svg {
- width: 13px !important;
- height: 13px !important;
- flex-shrink: 0 !important;
- }
- /* Наведение */
- aside.sidebar .sidebar__link:hover,
- aside.sidebar .sidebar__back:hover,
- aside.sidebar .sidebar__toggle:hover,
- aside.sidebar .sidebar__post:hover {
- background: transparent !important;
- color: var(--hover) !important;
- }
Advertisement
Add Comment
Please, Sign In to add comment