.
Общие полезные коды
Сообщений 1 страница 2 из 2
Поделиться22024-10-12 17:12:57
@import url(style_cs.css);
@import url(https://forumstatic.ru/files/001c/30/4b/65077.css);
@import url(https://forumstatic.ru/files/001c/48/4d/47225.css);
/* Иконический шрифт */
@import url('https://fonts.googleapis.com/css2?family=Material+Icons+Outlined');
/* Полезные сервисные настройки
-------------------------------------------------------------*/
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
font-size: 0;
height: 0;
width: 0;
line-height: 0.0;
position: absolute;
left: -9999px;
overflow: hidden;
}
#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
clear: both;
content: ".";
display: block;
height: 0;
visibility: hidden;
overflow: hidden;
line-height: 0.0;
font-size: 0;
}
/* Основные переменные
------------------------------------------*/
:root {
--pun-bg: #d2d7e3;
--sec-bg: #bebcc3;
--link: #211f25;
--link-hover: #BD8E5F;
--pwidth: 240px;
--padding: 10px 10px;
--tpad: 5px 20px;
--mpad: 5px 10px;
--myr: 'Myriad Pro';
--ban: 'Bahnschrift';
}
/* Global
------------------------------------------*/
/* Применяется ко всем элементам */
* {
margin: 0;
padding: 0;
border: none;
text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
scrollbar-width: thin;
scrollbar-color: var() var();
}
*::-webkit-scrollbar {
width: 7px;
height: 7px;
}
*::-webkit-scrollbar-track {
background-color: var();
}
*::-webkit-scrollbar-thumb {
background-color: var();
}
*::-webkit-scrollbar-thumb:active {
background: var();
}
:focus {
outline: none;
}
a,
.punbb #pun-admain a {
text-decoration: none;
color: #211f25;
transition: all .2s linear 0s;
}
a:hover,
.punbb #pun-admain a:hover {
color: var(--link-hover);
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre {
margin: 0;
}
h1,
h2 {
padding: 10px 20px;
font-weight: normal;
text-align: center;
}
ul,
dl,
li,
dd,
dt {
list-style: none;
}
address,
em {
font-style: normal;
}
.modlist,
.lastedit,
.punbb div#pun-live-rusff,
.punbb .topic a.sharelink {
display: none;
}
#tags .container,
.post_report,
.post_reputation,
#MyBookmarks,
.inner.popup_graffiti,
.pun-modal .modal-inner {
background: var(--sec-bg);
}
#tags .container {
padding: var(--mpad) !important;
top: 0 !important;
}
/* ОФОРМЛЕНИЕ КНОПОК
------------------------------------------*/
input.button,
#pun-admain input.button,
#sub4,
input[type="button"],
input[type="submit"] {
padding: 2px 10px;
border: 1px solid currentColor;
cursor: pointer;
transition: all .2s linear 0s;
}
input.button:hover,
#pun-admain input.button:hover,
#sub4:hover,
input[type="button"]:hover,
input[type="submit"]:hover {}
/* ОФОРМЛЕНИЕ ПОЛЕЙ ВВОДА
------------------------------------------*/
input[type="text"],
input[type="password"],
textarea,
select {
padding: 2px 5px;
border: 1px solid var(--link-hover);
}
/* Админка
------------------------------------------*/
.punbb-admin .adcontainer,
.punbb-admin .adformal {
border: none;
}
/* Тело форума
------------------------------------------*/
html {
background: url(https://forumstatic.ru/files/001c/48/4d/13835.jpg) no-repeat fixed top center / cover;
}
body::before {
content: "";
display: block;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
min-width: 100vw;
min-height: 100vh;
z-index: -10;
background: var(--body-bg) url() no-repeat top center/cover;
}
#pun {
width: 850px;
background: #bebcc3;
border-right: 20px solid #211f25;
box-shadow: 0 0px 1px #0000008a inset, 0 0 0px 1px #474963;
margin: 50px auto 30px;
border-left: 20px solid #211f25;
border-bottom: 10px solid #211f25;
border-top: 20px solid #211f25;
border-radius: 2px;
}
.punbb {
font-size: 10px;
font-family: 'Bahnschrift';
box-shadow: 0px 0px 0px 0px #f8f1f6 inset, 0px 0px 10px 0px #c7bdc4, 0px 0px 0px 1px #f0e8ed;
border-radius: 2px;
}
.punbb>div .container {
padding: var(--padding);
}
#pun-status .status-right {
display: none;
}
/* Навигационные ссылки */
#pun-navlinks .container {
text-align: center;
font-family: var(--myr);
font-size: 12px;
text-transform: uppercase;
position: absolute;
top: 25px;
margin: 0;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
}
#pun-navlinks li {
padding: 0 5px;
display: inline;
}
/* Пользовательские ссылки */
#pun-ulinks .container {
text-align: center;
font-family: var(--ban);
text-transform: uppercase;
font-size: 8px;
margin: 0;
position: absolute;
top: 46px;
left: 50%;
margin-right: -50%;
transform: translatex(-50%);
}
#pun-ulinks li {
padding: 0 5px;
display: inline;
}
/* Статус */
#pun-status span {
white-space: nowrap;
margin-right: 5px;
}
/* Копирайт */
#pun-about .container {
text-align: center;
}
/* Главная форумная таблица
------------------------------------------*/
.main table {
table-layout: fixed;
width: 100%;
}
.main th {
padding: 5px 10px;
}
.main td {
padding: 10px;
}
.tcl {
width: 50%;
}
.tc2,
.tc3,
.tcmod {
text-align: center;
width: 10%;
}
#pun-searchtopics .tcl,
#pun-modviewforum .tcl {
width: 40%
}
#pun-searchtopics .tc2 {
text-align: left;
width: 20%;
}
#pun-debug table .tcl {
width: 15%;
}
#pun-debug .tcr {
width: 90%;
}
tbody.hasicon td.tcl {
padding-left: 40px;
}
/* Иконки */
div.icon {
position: absolute;
margin-left: -30px;
width: 20px;
height: 20px;
background: var(--link) url() no-repeat top center;
}
tr.inew div.icon {
background: var() url() no-repeat top center;
}
tr.isticky div.icon {
background: var() url() no-repeat top center;
}
tr.iclosed div.icon {
background: var() url() no-repeat top center;
}
/* Пагинация (Переключаемые страницы, Новая тема + Опрос, Подписка)
--------------------------------------------------------------------------------------------------- */
.multipage {
margin-top: 10px;
}
.linkst {
position: relative;
padding: var(--tpad);
display: flex;
justify-content: space-between;
}
.linkst .pagelink {}
.linkst .postlink {
text-align: right;
}
.linksb {
position: relative;
padding: var(--tpad);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.linksb .pagelink {
order: -1;
}
.subscribelink {
width: 100%;
text-align: right;
}
.linksb noindex {
order: 1;
}
.linksb .postlink {
margin-left: auto;
text-align: right;
}
/* Модераторское меню, RSS, Atom */
.modmenu .container {
padding: var(--mpad);
text-align: right;
}
.modmenu .container strong {
float: left;
}
.modmenu input {
margin-left: 10px;
}
/* Главная
------------------------------------------*/
/* Категории */
#pun-category {
margin-top: 0;
}
#pun-index .category h2 {
height: 39px;
padding: 0;
}
#pun-index .category-1 h2 {
background: url() no-repeat top center;
}
#pun-index .category-2 h2 {
background: url() no-repeat top center;
}
#pun-index thead, #pun-index .tc2, #pun-index .tc3 {
display: none;
}
#pun-index .category h2 {
height: 39px;
padding: 0;
}
#pun-index .category h2 span, #pun-stats h2 span {
display: none;
}
#pun-index .category tr {
width: 800px;
display: flex;
gap: 20px;
justify-content: space-between;
margin: 0 auto 20px;
}
#pun-index .tcl {
padding: 0;
flex-grow: 1;
}
#pun-index .intd {
display: flex;
gap: 10px;
height: 100%;
}
#pun-index .icon {
position: relative;
margin: 0px -9px 0px -2px;
background: #837c94;
width: 5px;
border-radius: 3px;
height: 100%;
}
#pun-index .tclcon {
width: 100%;
min-height: 50px;
box-sizing: border-box;
padding: 15px 30px 20px;
font-family: var(--myr);
font-weight: 500;
font-size: 10px;
color: #bebcc3;
position: relative;
text-align: right;
}
#pun-index .tclcon, #pun-index .tcr {
border-radius: 4px;
background: url(https://forumstatic.ru/files/001c/48/4d/84844.jpg) no-repeat top center;
gap: 10px
}
#pun-index .tclcon h3 {
font-size: 15px;
font-family: var(--ban);
color: #bebcc3;
text-transform: uppercase;
margin-bottom: 10px;
text-align: right;
}
#pun-index .tclcon h3 a {
color: #bebcc3;
}
#pun-index .forumlinks {
position: absolute;
bottom: 0;
right: 40px;
transform: translatey(50%);
background: var(--pun-bg);
border-radius: 5px;
padding: 3px 7px;
display: flex;
gap: 10px;
color: #8aa1c0;
}
#pun-index .tcr {
display: flex;
align-items: center;
padding: 10px 20px;
box-sizing: border-box;
}
#pun-index .tcr .lastmess {
display: flex;
flex-direction: column;
}
.punbb td .user-avatar .avatar-image {
border-radius: 5px;
width: 30px;
height: 30px;
}
#pun-index .tcr .user-avatar {
height: fit-content;
margin: 0;
}
.punbb td .user-avatar .isonline {
background: var(--navlink);
top: -3px;
}
#pun-index .lastpost-link {
font-family: var(--ban);
font-weight: 600;
font-size: 11px;
color: #bebcc3;
text-transform: uppercase;
}
#pun-index .lastpost {
font-family: var(--myr);
font-weight: 400;
font-size: 9px;
color: #bebcc3;
}
/* Статистика */
#pun-stats li.item1,
#pun-stats li.item2 {
float: left;
clear: both;
}
#pun-stats li.item3,
#pun-stats li.item4 {
text-align: right;
}
li#onlinelist {
margin-top: 10px;
text-align: justify;
}
/* Шапка
------------------------------------------*/
#pun-title .title-logo {
display: none;
}
.tablica {}
/* Футер
------------------------------------------*/
#html-footer .container {padding: 0;}
.banners {}
.banners a {
opacity: .5;
}
.banners a:hover {
opacity: 1;
}
/* Список тем
------------------------------------------*/
/* Топик
------------------------------------------*/
.post {
margin-top: 10px;
}
.toppost,
.topicpost {
margin-top: 0;
}
.post .container {
display: flex;
flex-wrap: wrap;
align-items: start;
}
.post h3 {}
.post h3 span {
padding: var(--tpad);
display: block;
}
.post h3 strong {
float: right;
text-align: right;
font-weight: normal;
}
/* Автор */
.post-author {
width: var(--pwidth);
text-align: center;
}
.post-author ul {
padding: 10px;
}
.pa-author {}
.pa-author a {}
.pa-title {}
.pa-avatar img {}
.lz {}
.pa-posts,
.pa-respect {
/* display: inline-block; */
}
.pa-online,
.pa-last-visit {}
/* Тело поста */
.post-body {
width: calc(100% - var(--pwidth));
}
.post-box {
padding: 10px;
}
.post-links {
margin-left: var(--pwidth);
width: 100%;
}
.post-links ul {
padding: 0;
margin-left: calc(var(--pwidth) * -1);
text-align: right;
}
.post-links li {
display: inline;
}
.post-links li:not(:first-of-type) {
padding-left: 10px;
}
.pl-email,
.pl-website {
float: left;
}
.clearer {
clear: both;
height: 0;
font-size: 0;
}
/* Контент поста - цитата, спойлер, таблицы и т.п. */
.punbb .post td {
border: 0px transparent !important;
}
pre {
font: 12px/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace;
}
.post-content em {
font-style: italicж
}
.post .post-content td {
border-width: 0px !important;
}
.post-content em.bbuline {
font-style: normal;
text-decoration: underline;
}
.post-content p {
margin: 0;
padding: 0 0 12px 0;
line-height: 150%;
text-align: justify;
}
.post-content img {
vertical-align: middle;
}
.scrollbox {
width: 100%;
overflow: auto;
max-height: 200px;
}
.quote-box,
.code-box {
margin: 4px 10px 10px;
padding: 5px;
border: 1px solid #ccc;
}
.quote-box cite {
display: block;
padding-bottom: 5px;
font-weight: bold;
font-style: normal;
}
.code-box strong.legend {
display: block;
padding-bottom: 5px;
font-weight: bold;
font-style: normal;
}
.post-sig dt {
border-bottom: 1px solid #ccc;
width: 300px;
margin: 10px auto;
}
/* Форма ответа */
#tags {
position: relative;
}
/* Формы
------------------------------------------- */
.checkfield input[type="checkbox"],
.radiofield input[type="radio"] {
margin: 0 3px;
}
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
height: 20px;
vertical-align: middle;
}
textarea,
input,
select,
optgroup {
font-size: 14px;
}
optgroup {
font-weight: bold;
}
.formal .container {
padding: var(--padding);
}
.formsubmit {
padding: 0;
margin: 10px 0 0 0;
}
.formsubmit input,
.formsubmit a,
.formsubmit span {
margin: 0 6px 0 0;
}
fieldset {
border: none;
}
fieldset legend {
font-weight: bold;
}
fieldset fieldset {
border: none;
margin: 0;
padding: 0 0 8px 0
}
.fs-box {
padding: 5px 0;
}
.fs-box p,
.fs-box fieldset {
padding: 0 0 8px 0;
}
.inline .inputfield,
.inline .selectfield,
.inline .passfield {
float: left;
margin-right: 1em;
}
.inline .infofield {
clear: both
}
.datafield br {
display: none
}
.required label,
.datafield span.input {
font-size: 10px;
}
textarea,
.longinput input {
width: 64%;
margin: 0;
}
#main-reply {
box-sizing: border-box;
}
.hashelp {
position: relative;
}
/* Профиль + ЛС
------------------------------------------*/
#profile .container {
padding-left: 200px;
min-height: 100px;
}
#profilenav {
float: left;
width: 180px;
margin-left: -180px;
}
#viewprofile h2,
#profilenav h2 {
padding: 0;
margin: 0;
}
#profilenav li {
padding: 0 0 5px;
}
#viewprofile li {
padding: 5px 0;
}
#profile-right li {
display: flex;
}
#profile-right li span {
width: 150px;
flex-shrink: 0;
}
#profile-right li strong {
font-weight: normal;
}
img.avatardemo {
float: right;
margin: 0 0 8px 18px;
}
#pun-messages .clearer {
display: none;
}
/* Прочие страницы
------------------------------------------*/
/* Список пользователей */
#pun-userlist .formal,
#pun-userlist .formal .container {
margin-bottom: 0;
}
#pun-userlist .tc2 {
text-align: left;
width: 20%;
}
#pun-userlist .tcl {
width: 40%
}
.usertable .container {}
/* Собщения об ошибках */
.info .container {
padding: var(--mpad);
}
.info .container .backlink {
padding-top: 8px;
}
/* Регистрация */
.info-box {
margin: 0 0 10px 0;
}
.info-box * {
padding: 0 0 5px 0;
}
.info-box .legend {
font-weight: bold;
}
/* Кнопки вверх-вниз
-------------------------------------------------------*/
.go-up,
.go-down {
cursor: pointer;
opacity: .5;
z-index: 9999;
display: none;
position: fixed;
margin-left: 1000px !important;
box-sizing: border-box;
transition: all .3s linear 0s;
}
.go-up {
top: 260px;
}
.go-down {
top: 320px;
}
.go-down:hover,
.go-up:hover {
opacity: 1;
}