-=-=-=-=-=-=-
Коды, дизы и скрипты от ForumD.ru
Сообщений 1 страница 2 из 2
Поделиться22024-05-02 19:28:44
http://forumd.ru/viewtopic.php?id=7994
@import url(style_cs.css);
/********** Чистый стардартный стиль для MyBB ***********/
/******** Cпециально для ForumD.ru © Gerda, 2023 ********/
/**************************************************
!!! Условия использования !!!1. Данный копирайт не удалять
2. При публикации производных работ указывать ссылку на автора и ForumD.ru
3. При публикации в общий доступ указывать ссылку на автора и ForumD.ru
4. Публичный производный контент должен распостраняться на тех же условияхПодробно: forumd.ru/viewtopic.php?id=5751#rule
**************************************************//* ================== */
/* Скрываем элементы форума */
.acchide,
#pun-index #pun-main h1,
#pun-navlinks 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,
#pun-title h1,
#pun-announcement 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 {
--textColor: #262626;
--linkColor: #61ae69;
--bodyColor: #e3e3e3;
--darkBackColor: #f0f0f0;
--midBackColor: #f8f8f8;
--lightBackColor: #ffffff;
--bodyBackground: var(--bodyColor);
--font1: 'Verdana', sans-serif;
}/* ================== */
/* Общие стили */
* {margin: 0; padding: 0;}
body {margin: 0;}
ul, dl, li, dd, dt {list-style: none;}body {
font-size: 12px;
font-family: var(--font1);
background: var(--bodyColor);
color: var(--textColor);
}
h1 {
font-size: 20px;
font-weight: 600;
padding: 5px 10px;
margin: 0px;
text-align: center;
}
h2 {
font-size: 16px;
font-weight: 600;
padding: 5px 10px;
margin: 0px;
text-align: center;
}address, em {font-style: normal}
a {color: var(--linkColor); text-decoration: none;}
a:link, a:visited, a:active { text-decoration: none; var(--textColor); transition: 0.2s;}
a:hover { color: var(--textColor); text-decoration: none; }@media screen and (max-device-width: 480px) {
html {-webkit-text-size-adjust: 100%;}}/* Скроллбары */
* {
scrollbar-width: thin;
scrollbar-color: #e3e3e3 #262626;
}/* Селект */
::selection {color: var(--bodyColor); background: var(--textColor);}
:focus {outline: none;}
/* ================== *//* Тело форума */
#pun {
padding: 20px;
position: relative;
width: 1200px;
box-sizing: border-box;
margin: auto;
margin-top: 60px;
margin-bottom: 80px;
}
.punbb {
margin: 0 auto;
padding: 0px 30px 25px 30px;
background: var(--darkBackColor);
border-radius: 20px;
}/* ================== */
/* Меню навигации */
#pun-navlinks li {
display: inline;
padding-right: 10px;
}#pun-navlinks .container {
margin: 0;
padding: 5px 0;
text-transform: uppercase;
font-weight: 700;
font-size: 14px;
letter-spacing: .5px;
text-align: center;
}/* Юзер меню */
#pun-ulinks li {
display: inline;
padding-right: 10px;
}#pun-ulinks .container {
padding: 5px 0;
margin: 0;
font-weight: 400;
font-size: 12px;
text-transform: lowercase;
text-align: center;
}/* ================== */
/* Объявление */
#pun-announcement .container {padding: 10px;}/* Статус (Добро пожаловать) */
#pun-status .container {
margin-bottom: 0;
padding: 8px 10px 10px;
}
#pun-status span {
white-space: nowrap;
margin-right: 5px;
}#pun-crumbs1 {font-weight: bold;}
#pun-crumbs1 p.container {
padding: 10px 10px 8px 10px;
margin-top: 0;
}/*хлебные крошки */
.container.crumbs {
font-weight: bold;
padding: 10px 10px 8px 10px;
}
#pun-crumbs1 .container.crumbs {margin-top: 0;}
#pun-crumbs2 .container.crumbs {margin-bottom: 0;}/* Копирайт майбб */
#pun-about .container {text-align: right;}/* ================== */
/* Форумные таблицы */
table {table-layout: fixed; width: 100%;}
#respect {width: auto;}
.tcl {width: 50%;}
.tc2, .tc3, .tcmod {
text-align: center;
width: 10%;
}
.tcr {width: 30%;}#pun-searchtopics .tcl,
#pun-modviewforum .tcl {
width: 40%
}#pun-searchtopics .tc2 {
text-align: left;
width: 20%;
}#pun-debug table .tcl {width: 15%;white-space:normal;}
#pun-debug .tcr {width: 90%; white-space: normal;}td {padding: 8px 10px;}
th {padding: 4px 10px;}tbody.hasicon td.tcl {padding-left: 40px}
/* ================== */
/* Категории */
#pun-category1 {margin-top: 0;}
.category h2 {text-align: left;}
.category:nth-child(even) h2 {text-align: right;}
.category .tcl, .category .tc2, .category .tc3, .category .tcr {width: 100%;}
.category tbody.hasicon td.tcl {padding-left: 0px}
.category {margin-top: 30px;}
.category table thead {display: none;}
.category table td.tc2, .category table td.tc3 {display: none;}
.category tbody {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-content: space-between;
}
.category table tr {
display: grid !important;
position: relative;
padding: 20px;
margin: 0 0px;
gap: 10px;
background: var(--midBackColor);
border-radius: 20px;
width: calc(49% - 40px);
justify-items: center;
}.category table tr.inew {background: var(--lightBackColor);}
.category h3 {font-size: 20px; margin: 0; font-weight: 700;}
.category .info {padding: 10px 0; text-align: justify;}
.category .info-link {padding: 4px; text-align: center;}
.category .info-link a {font-weight: bold; text-transform: uppercase;margin: 0 2px;}#pun-index td.tcr a {font-size: 16px; font-weight: 500; }
#pun-viewforum .category tr {
background: var(--midBackColor);
width: 100%;
display: flex !important;
flex-direction: row;
}.subforums {padding: 5px 0; margin-top: 5px; text-transform: uppercase; font-weight: 700; font-size: 10px;}}
/* иконки */
.punbb td div.tclcon {
padding: 0px 30px 0px 20px;
line-height: 16px;
text-align: justify;
}#pun-main .category Div.icon {
margin: 6px 0px 0 -30px;
font: 700 14px var(--font1);
right: 0;
background: var(--bodyColor);
border-radius: 4px 0 0 4px;
font-size: 0;
}#pun-main .category TR.inew Div.icon {
background: var(--linkColor);
border-radius: 4px 0 0 4px;
font-size: 0;
}Div.icon {margin: -2px 0px 0px -38px;}
.punbb table Div.icon {
position: absolute;
width: 37px;
height: 10px;
font: 700 14px var(--font1);
text-transform: uppercase;
}.punbb table Div.icon::before {
content: "old";
}TR.inew Div.icon::before {
content: "new";
}TR.isticky Div.icon::before {
content: "!!!";
}TR.iclosed Div.icon::before {
content: "xxx";
}div.punbb .user-avatar .avatar-image {border-radius: 10px;}
/* Статистика */
#pun-stats {margin-top: 30px;}
.punbb #pun-stats h2 {text-align: left;}div#pun-stats.section {
position: relative;
}#pun-stats .statscon .container {
display: flex;
flex-direction: row;
justify-content: space-evenly;
flex-wrap: wrap;
gap: 10px;
}#pun-stats .statscon ul.container {margin: 0; padding: 10px;}
#pun-stats li.item1, #pun-stats li.item2, #pun-stats li.item3, #pun-stats li.item4 {background: var(--midBackColor); border-radius: 10px; padding: 10px;}
li#onlinelist {
float: left;
line-height: 130%;
width: 100%;
background: var(--midBackColor);
border-radius: 20px;
padding: 20px;
}/* ================== */
/* Активные темы */
#pun-viewforum thead th.tcl, #pun-index thead th.tcl, #pun-searchtopics thead th.tcl, #pun-respect thead thead th.tcl {padding-left: 40px;}#pun .forum tr {
display: flex;
padding: 10px 10px;
border-radius: 5px;
align-items: center;
}
.forum tr:nth-child(even) {background: var(--midBackColor);}
.forum tr + tr {margin-top: 5px;}/* Пагинация (Переключаемые страницы, Новая тема + Опрос, Подписка) */
.multipage {margin-top: 30px;}
.linkst {
position: relative;
height: 0;
}
.linkst .pagelink,
.linkst .postlink {
position: absolute;
top: -50px;
}
.linkst .pagelink {left: 10px;}
.linkst .postlink {right: 10px; text-align: right;}.linksb {
text-align: right;
padding: 4px 10px;
}
.linksb .pagelink {float: left; text-align: left;}
.linksb .postlink {float: right;}
.subscribelink {
clear:both;
padding: 5px 0;
}/* Модераторское меню, RSS, Atom */
.modmenu .container {padding: 5px 10px;text-align: right;}
.modmenu .container strong {float: left;}
.modmenu input {margin-left: 10px;}/* ================== */
/* Страница топика */
.post {margin-top: 10px;}
.toppost, .topicpost {margin-top: 0;}.post .container {}
.post h3 {
margin: 20px 0;
letter-spacing: 1px;
font-size: 12px;
padding: 6px 0px;
}.post h3 span {
padding: 5px 10px;
display: block;
margin-left: 300px;
}.punbb .post h3 a{ padding: 0 5px;}
.punbb .post h3 em {padding: 0 10px;}.post h3 strong {
float: right;
text-align: right;
font-weight: normal;
}.post .post-author {
float: left;
position: relative;
margin-top: -10px;
width: 250px;
background-color: var(--midBackColor);
padding: 10px;
text-align: left;
border-radius: 20px;
}
.post .post-author ul {padding: 10px; margin: 0;}
.post .post-author li + li {margin: 10px 0;}li.pa-author {
font-size: 24px;
font-weight: 700;
text-transform: uppercase;
}li.pa-title {
font-size: 10px;
text-transform: uppercase;
}li.pa-avatar img {max-width: 180px; max-height: 180px; border-radius: 5px;}
.post-body {margin-left: 300px;}
.post-box {padding: 10px;}.post-links {margin-left: 300px;}
.post-links ul {
padding: 0 10px 0 0;
margin-left: -300px;
text-align: right;
}
.post-links li {
display: inline;
padding-left: 10px;
}.pl-email, .pl-website {float: left;}
.clearer {clear: both; height: 0; font-size: 0;}/* ================== */
/* Подпись в топике */
.post-sig dt, .post-sig dd, .post-sig dl {margin: 0}
.post-sig dt {
display: block;
margin: 5px 0;
}/* Контент поста */
pre {font-family: monospace, monospace; font-size: 12px;}
.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;
line-height: 150%;
padding: 0 0 12px 0;
}
.post-content img {vertical-align: middle;}
.scrollbox {
width: 100%;
overflow: auto;
max-height: 200px;
}
.quote-box, .code-box {
margin: 20px;
padding: 20px;
border: 1px solid var(--bodyBackground);
background: var(--midBackColor);
border-radius: 20px;
}.quote-box cite {
display: block;
font-style: normal;
text-align: left;
font-weight: 700!important;
letter-spacing: 1px;
font-size: 20px!important;
margin-bottom: 10px!important;
height: 20px;
}.punbb .post-content .blockcode, .punbb .post-content blockquote {
width: 100%;
overflow: hidden;
padding-top: 5px;
margin: 0;
}.code-box strong.legend {
display: block;
padding-bottom: 5px;
font-size: 20px;
font-weight: 700;
font-style: normal;
margin-top: 6px;
margin-bottom: 6px;
letter-spacing: 0px;
line-height: 20px;
text-align: left;
}.post-content .spoiler-box > div {
display: block;
font-size: 16px;
font-weight: 700;
font-style: normal;
margin-top: 6px;
margin-bottom: 6px;
letter-spacing: 0px;
line-height: 20px;
text-align: left;
}/* ================== */
/* выпадающие окна */
#pun-reputation .inner, #tags .container, #mask_dialog .inner, .hvStickerPackModalContainer .hvStickerPackModal {
background: var(--midBackColor);
border: 1px solid var(--bodyBackground);
border-radius: 10px;
padding: 20px;
}/* Формы */
.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;}#viewprofile-next #pa-edit a, input[class="button"], input[class="button submit"], input[type="button"], [type="submit"] {
padding: 5px 12px;
text-align: center;
margin: 5px;
font-weight: 700;
min-width: 75px;
display: inline-block;
text-transform: uppercase;
font-size: 13px;
background: var(--lightBackColor);
border: 1px solid var(--bodyBackground);
transition: 0.4s;
-webkit-transition: 0.4s;
cursor: pointer;
border-radius: 5px;
}#viewprofile-next #pa-edit a:hover, input[class="button"]:hover, input[class="button submit"]:hover, input[type="button"]:hover {
background: var(--midBackColor);
border: 1px solid var(--bodyBackground);
}input, select, optgroup {font-size: 14px; background: var(--midBackColor);border: 1px solid var(--bodyBackground);padding: 5px;}
textarea {font-size: 12px; background: var(--midBackColor);border: 1px solid var(--bodyBackground);padding: 5px;font-family: var(--font1)}
input:focus, textarea:focus {outline: 1px solid var(--textColor);}
optgroup {font-weight: bold;}.formal .container {padding: 10px 20px;}
.formsubmit {
padding: 0 0 0 15px;
margin: 10px 0 0 0;
}
.formsubmit input, .formsubmit a, .formsubmit span {margin: 0 6px 0 0;}fieldset {border: none;}
fieldset legend {
font-weight: normal;
}
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;}
.hashelp {position: relative;}/* ================== */
/* Предпросмотр сообщения */
#pun-post .topic {margin-top: 10px;}/* ================== */
/* Профиль + ЛС */
#profile .container {padding-left: 300px;}
#profilenav {
float: left;
width: 300px;
margin-left: -300px;
}#profilenav li {padding-bottom: 10px;}
#viewprofile ul, #profilenav ul {
padding: 10px;
margin: 0 0 10px 0;
}
#viewprofile h2, #profilenav h2 {
padding: 0;
margin: 0;
}
#viewprofile li {margin-bottom:2px;}
#viewprofile li span {
float: left;
width: 180px;
padding: 5px 10px;
font-weight: bold;
}
#viewprofile li strong, #viewprofile li div {
display: block;
padding: 5px 10px!important;
font-weight: normal;
}
img.avatardemo {float: right;margin: 0 0 8px 18px;}/* Просмотр профиля */
div#viewprofile table {
background: var(--midBackColor);
border: 1px solid var(--bodyColor) !important;
overflow: hidden;
border-radius: 10px;
margin: auto;
}#profile-left {
width: 30%;
padding-top: 0 !important;
text-align: center;
}#profile-left strong {
font-weight: bold;
}#profile-left strong {
font-weight: bold !important;
}#profile-left li#profile-name {
font-size: 24px;
}#profile-right {
display: grid;
grid-template-columns: 1fr 1fr;
justify-content: space-evenly;
gap: 12px;
font-size: 11px;
width: 100% !important;
background: var(--midBackColor);
padding: 20px!important;
border-left: none!important;
box-sizing: border-box;
}#profile-right li {
width: auto;
display: flex;
flex: auto;
text-align: center;
padding: 11px!important;
background: var(--midBackColor);
border: 1px solid var(--bodyColor) !important;
border-radius: 4px;
align-items: center;
flex-direction: column;
justify-content: center;
}#pun #profile-right li span {
float: none;
margin: 0;
width: auto;
font-weight: bold;
}div#viewprofile li#pa-invites {
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%}/* ================== */
/* Собщения об ошибках */
.info .container {padding: 5px 10px;}
.info .container .backlink {padding-top: 8px;}/* ================== */
/* Регистрация */
.info-box {
padding: 10px 15px;
margin: 0 0 10px 0;
}
.info-box * {padding: 0 0 5px 0;}
.info-box .legend {font-weight: bold;}