Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Форум для новичков » Адаптировать для мобильных в ручную. Возможно ли?


Адаптировать для мобильных в ручную. Возможно ли?

Сообщений 1 страница 6 из 6

1

Здравствуйте.
При настройке мобильной версии которая есть по умолчанию, версия отображается некорректно, элементы расползаются  и пр.
Есть ли возможность самому, в ручную это настроить, и если да, то как именно? Куда добавлять viewport?

0

2

Добавлю, сейчас у меня стоит вот такой скрипт:

Код:
<!-- Включение мобильной версии -->
<style type="text/css">#desktop-version,#mobile-version{display:none}</style>
<script type="text/javascript">
(function() {
    if($(window).width()>540) return;
    if(!$getCookie('is_mobile')) $('link[rel="stylesheet"][href*="/style/mobile"],meta[name="viewport"]').remove();
    $(document).ready(function() {
        var l = $('#mobile-version'), d = $('#desktop-version');
        if(!$getCookie('is_mobile')) {d.remove();l.show(); }else{ l.remove() ; d.show();}
        l.click(function(e) {e.preventDefault(); $setCookie('is_mobile','true',30*3600*24*30*1000); location.reload()});
        d.click(function(e) {e.preventDefault(); $deleteCookie('is_mobile'); location.reload()});
    });
})();
</script>

В мобильном сайт отображается обычно, не понятно мобильная версия открылась или нет.
Но при проверке в гугле выдает проблемы.
Есть проверяю сайт www nikogde.ru - показано что версия мобильная нормальная.
Если проверяю nikogde.ru - выдает ошибки.

Не могу понять из-за чего это.

http://s0.uploads.ru/t/5Haw4.png
http://sg.uploads.ru/t/oSvwk.png

Отредактировано mst6666 (Вт, 29 Авг 2017 12:31:06)

0

3

mst6666
Адаптировать вручную можно только через css-коды (даже с включенным стандартным мобильным видом от mybb).

Код:
@media screen and (max-width: 540px) { /* пояснение - как сайт будет отображаться при размере экрана от 540пх и ниже. */
 тут css код
 } 

Чтобы проверить, работает ли мобильный стиль, достаточно уменьшить окно браузера до приблизительных размеров телефона.

+1

4

Fumuse
Ага.... вот смотрите, у меня в стиле структура ксс:

Код:
/*************************************************************
A - SETUP
**************************************************************/
 
/* A1 Import the colour scheme
-------------------------------------------------------------*/
 
/* A1.1 */
  @import url(style_cs.css);
 
/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/
 
/* A2.1 */
html, body {margin: 0; padding: 0}
 
/* A2.2 */
.punbb * {
  margin: 0
  }
 
/* A2.3 */
.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none;
  }
 
/* A2.4 */
.punbb img {
  border:none
  }
 
/* A2.5 */
.punbb .main table {
  table-layout: fixed;
  width: 100%;
  }
 
/* A2.6 */
.checkfield input[type="checkbox"], .radiofield input[type="radio"] {margin: 0 0.3em;}
 
/* A2.7 */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 1.8em;
  vertical-align: middle
  }
 
  /* A3 Text setup
-------------------------------------------------------------*/
 
/* A3.1 */
body {
  font-size: 100.00%;
  }
 
/* A3.2 */
.punbb {
  font: normal 71.98% verdana, arial, helvetica, sans-serif;
  }
 
/* 3.3 */
.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 1em verdana, arial, helvetica, sans-serif
  }
 
/* A3.4 */
.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: normal;
  }
 
/* A3.5 */
.punbb h1 span, .punbb h2 span, .punbb legend span {
  font-size: 1.1em;
  }
 
/* A3.6 */
.punbb pre {
  font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace
  }
 
/* A3.7 */
.punbb address, .punbb em {
  font-style: normal
  }
 
/* A3.8 */
.punbb .post-content em {
  font-style: italic
  }
 
/* A3.9 */
.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
  }
 
/* A3.10 */
.punbb a {
  text-decoration: underline
  }
 
/* A3.11 */
.punbb optgroup {
  font-weight: bold;
  }
 
/* A4 Float clearing and hidden items
-------------------------------------------------------------*/
 
/* A4.1 */
#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;
  }
 
/* A4.2 */
.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
  }
 
/* A5 Basic page layout and borders
-------------------------------------------------------------*/
 
/* A5.1 */
#pun {
  margin: 0 auto 0 auto;  
  width: 938px;  
background-color: #917a5a;
  }
 
/* A5.2 */
.punbb {
  background: url(https://forumstatic.ru/files/0018/63/9f/74695.jpg) top center no-repeat,
url(https://forumstatic.ru/files/0018/63/9f/90057.jpg) bottom center no-repeat , url(https://forumstatic.ru/files/0018/63/9f/87204.jpg) 50% 0% repeat-y;  
  float: left;  
  height: auto;
  padding: 0px 19px;
  width: 900px;
  }
 
/* A5.3 */
#pun-redirect, #pun-maint {
  background-color: #917a5a;
  background-image: none !important;  
  float: none;  
  margin: 75px 20% 12px 20%;
  text-align: left;
  width: auto;
  }
 
/* A5.4 */
.punbb .section, .punbb .main {
  margin-bottom: 1em;
  }
 
/* A5.5 */
.punbb .category, .punbb .post {
  margin-top: 0.4em;
  }
 
/* A5.6 */
.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {
  margin-top: 0;
  }
 
/* 5.7 */
#pun-post .topic {
  margin-top: 1em;
  }
 
/* A5.8 */
.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
  border-style: none;
  border-width: 0px
  }
 
/* A5.9 */
.punbb .container {
  border-style: none;
  border-width: 0px;
  }
 
/* A5.10 */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.5em 1em;
  border-style: none ;
  border-width: 0;
  }
 
/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/
 
/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/
 
/* B1.1 */
.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  }
 
/* B1.2 */
.punbb .post-sig dt {
  display: block;
  border-top: 1px solid #7b664d;
  width: 350px;
  margin: 5px 0;
  }
 
/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 130%;
  }
 
/* B1.4 */
.punbb .post-content img {
  vertical-align: text-bottom
  }
 
/* B1.5 */
.punbb .post-content img.postimg {
  vertical-align: middle;  
  }
 
/* B1.6 */
.punbb .post-content .blockcode, .punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;  
  }
 
/* B1.7 */
.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
  }
 
/* B1.8 */
.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 0.4em 1.8em 1.4em 1.8em;
  padding: 1em;
  border-style: solid;
  border-width: 1px;  
  }
 
/* B1.9 */
.punbb .quote-box cite, .punbb .code-box strong.legend {
  display: block;
  padding-bottom: 0.7em;
  font-size: 1.1em;
  font-weight: bold;
  font-style: normal;
  margin: 0;  
  }
 
/* B2 Information boxes
-------------------------------------------------------------*/
 
/* B2.1 */
.punbb .info-box {
  padding: 1.1em 1.7em 1em 1.7em;
  border-style: solid;
  border-width: 0px;
  margin: 0 0 1.1em 0;  
  }
 
/* B2.2 */
.punbb .info-box * {
  padding: 0 0 0.7em 0;
  }
 
/* B2.3 */
.punbb #pun-main .info-box .legend {
  font-size: 1.1em;
  font-weight: bold;
  }
 
/* B3 Pagination and posting links
-------------------------------------------------------------*/
 
/* B3.1 */
.punbb .linkst {
  float: left;
  position: relative;
  width: 100%;
  font-size: 1.1em;
  height: 0;  
  }
 
/* B3.2 */
.multipage {
  margin-top: 3em;
  }
 
/* B3.3 */
.linkst .pagelink {
  position: absolute;
  top: -3.4em;
  left: 1em;
  width: 24em; color: #2a2218;
  }
 
/* B3.4 */
.linkst .postlink {
  position: absolute;
  top: -3.4em;
  right: 1em;
  width: 16em;
  text-align: right;
  font-weight: bold;  
  }
 
/* B3.5 */
.punbb .linksb {
  text-align: right;
  padding: 0.4em 1em 0.5em 1em;
  font-size: 1.1em;  
  }
 
/* B3.6 страница 1 */
.linksb .pagelink {
  float: left;
  width: 24em;
  text-align: left; color: #2a2218;
  }
 
/* B3.7 */
.linksb .postlink {
  float: right;
  width: 16em;
  font-weight: bold;
  }
 
/* B3.8 */
.subscribelink {
  clear:both;
  padding-top: 0.3em;
  padding-bottom: 0.5em;
  }
 
/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/
 
/* C1 Form layout
-------------------------------------------------------------*/
 
/* C1.1 */
.punbb .formal .container {
  padding: 1.7em 2.3em 1.1em 2.3em;
  }
 
/* C1.2 */
.punbb .formsubmit {
  padding: 0 0 0 1.7em;
  margin: 1em 0 0 0;  
  }
 
/* C1.3 */
.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {
  margin: 0 0.6em 0 0;  
  background-color: transparent;
color: #000; border: solid 1px ##472b18 !important;
  }
 
/* C1.4 */
.punbb fieldset {
  border-style: solid;
  border-width: 1px;
  padding: 0 18px 0 18px;
  margin: 0 0 1em 0;  
  }
 
/* C1.5 */
.punbb fieldset legend {
  padding: 0;
  margin: 0 0 0 11px;
  font-size: 1.1em;  
  }
 
/* C1.6 */
.punbb fieldset legend span {
  padding: 0 5px;
  margin: 0 0 0 -15px;  
  }
 
/* C1.7 */
.punbb fieldset fieldset {
  border-style: none;
  margin: 0;
  padding: 0 0 8px 0;  
  }
 
/* C1.8 */
.punbb .fs-box {
  padding: 1em 0 0.8em 0;  
  }
 
/* C1.9 */
.punbb .fs-box p, .punbb .fs-box fieldset {
  padding: 0 0 0.8em 0;  
  }
 
/* C1.10 */
.punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield {
  float: left;
  margin-right: 1em;
background-color: transparent; color: ##472b18;
  }
 
/* C1.11 */
.punbb .inline .infofield {
  clear:both;  
  }
 
/* C1.12 */
.punbb .datafield br {
  display: none;  
  }
 
/* C1.13 */
.punbb .required label, .punbb .datafield span.input {
  font-weight: bold;  
  }
 
/* C1.14 */
.punbb .datafield span.input a {
  font-weight: normal;  
  }
 
/* C1.15 */
.punbb .areafield span.input, .punbb p.longinput span.input {
  display: block;
  padding: 0 12em 0 0;
  height: 100%; /* For IE */
  }
 
/* C1.16 */
.punbb textarea, .punbb .longinput input {
  width: 64%;
  margin: 0;  
border: #554835 solid 1px;
  }
 
/* C1.17 */
.punbb .hashelp {
  position: relative;  
  }
 
/* C1.18 */
.punbb .helplinks {
  display: block;
  position: absolute;
  top: 1em;
  right: 0;
  font-weight: normal;  
  width: 36%;  
  }
 
/* c1.19 */
.punbb #profile .helplinks {
  top: 1.5em;
  }
 
/* C1.20 */
.punbb .helplinks span {
  display: block;
  padding-bottom: 0.2em;
  }
 
/* C1.21 */
#pun-post .formal .info-box li {
  padding-left: 4px;
  list-style-type: square;
  list-style-position: inside;
  line-height: 1.5;
  margin: 0;  
  }
 
/* C2 Table layout
-------------------------------------------------------------*/
 
/* C2.1 */
.punbb .main .tcl {
  overflow: hidden;
  text-align: left;
  width: 50%;  
  }
 
/* C2.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;  
  }
 
/* C2.3 */
.punbb .main .tcr {
  overflow: hidden;
  text-align: left;
  width: 30%;
  }
 
/* C2.4 */
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
  width: 40%;  
  }
 
/* C2.5 */
#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
  text-align: left;
  width: 20%;  
  }
 
/* C2.6 */
#pun-debug table .tcl {
  width: 15%;
  white-space:normal;  
  }
 
/* C2.7 */
#pun-debug .tcr {
  width: 90%;
  white-space: normal;
  }
 
/* C2.8 */
#pun-index .tcl h3 {
  font-size: 1.2em;
  font-weight: bold;  
  color: #17090d;
  }
 
/* C2.9 */
.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;  
  }
 
/* C2.10 */
.punbb td .modlist {
  display: block;
  padding-top: 0.3em;
  }
 
/* C2.11 */
.punbb .main td {
  border-style: ridge none none ridge;
border-color: transparent;
  border-width: 0px 0 0 0px;
  padding: 0.8em 1em;  
  }
 
/* C2.12 */
.punbb .main th {
  border-style: none none none ridge;
border-color: transparent;
  border-width: 0 0 0 1px;
  padding: 0.4em 1em 0.4em 1em;  
  }
 
/* C2.13 */
.punbb .main .tcl {
  border-left-style: none;
  border-left-width: 0;  
  }
 
/* C2.14 */
.punbb td div.tclcon {
  margin-left: 100px;
padding-top: 5px;
}
 
/* C2.15 */
.punbb div.icon {
  float: left;
  display: block;
  width: 90px;
  height: 45px;
  padding-top: 1px;
  margin-top: 1px;
background-position: center;
background-repeat: no-repeat;
}
 
  /* C3 Topics
-------------------------------------------------------------*/
 
/* C3.1 */
.punbb .post .container {
  border-style: none none solid none;
border-color: #7b664d;
  border-width: 1px;
  margin-top: -1px;
  padding-bottom: 1px;  
  }
 
/* C3.2 */
.punbb .post h3 {
  border-style: none;
  border-width: 0px;  
  }
 
/* C3.3 */
.punbb .post h3 span {
  padding: 0.5em 1em;
  display: block;
  margin-left: 19em;
  border-left-style: solid;
  border-color: #7b664d;
  border-left-width: 1px;  
  }
 
/* C3.4 */
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;  
  }
 
/* C3.5 Design by Wilhelm*/
.punbb .post .post-author {
  float: left;
  width: 19em;
  margin-top: -1.5em;
  overflow: hidden;
  }
 
/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 1em 1em 1em;
  line-height: 140%;  
  }
 
/* C3.7 */
.pa-author, .pa-avatar {
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;  
  }
 
/* C3.8 */
.pa-author a {  
  text-decoration: none
  }
 
/* C3.9 */
li.pa-title {text-align: center;
  padding-bottom: 0.4em;
  font-weight: bold;  
  }
 
li.pa-online {
  line-height: 0.8em;
  border-left-style: solid;
  border-left-width: 0.7em;
  padding-left: 0.4em;
  margin-top: 0.7em;  
  }
 
/* C3.11 */
.punbb .post-body {
  margin-left: 19em;
  border-left-style: solid;
  border-left-width: 1px;
  padding: 0 0 1px 0;  
  }
 
/* C3.12 */
.punbb .post-box {
  padding: 1em;  
  }
 
/*C3.13 */
.punbb fieldset .post-box {
  margin-bottom: 0.8em;  
  }
 
/* C3.14 */
.punbb .post-links {
  margin-left: 19em;
  border-left-style: solid;
  border-color: #7b664d;
  border-left-width: 1px;  
  }
 
/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 0;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  border-top-style: solid;
border-color: #7b664d;
  border-top-width: 1px;
  background: transparent;
  text-align: right;  
  }
 
/* C3.16 */
.punbb .post-links li {
  display: inline;
  padding-left: 1em;  
  }
 
/* C3.17 */
.pl-email, .pl-website {
  float: left;
  }
 
/* C3.18 */
.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
  }
 
/* C4 Moderator menu
-------------------------------------------------------------*/
 
/* C4.1 блок модменю и активны*/
.punbb .modmenu .container {
  padding: 0.5em 1em;
  text-align: right;  
  }
 
/* C4.2 рсс атом ники*/
.punbb .modmenu strong, .punbb .modmenu a {
  height: 1.8em;
  line-height: 1.8em;  
  }
 
/* C4.3 */
.punbb .modmenu .container strong {
  float: left;  
  }
 
/* C4.4 */
.punbb .modmenu input {
  margin-left: 1em;  
  }
 
/* C5 Message boxes
-------------------------------------------------------------*/
 
/* C5.1 */
.punbb .info .container {
  padding: 0.8em 1em;  
  }
 
/* C5.2 */
.punbb .info .container .backlink {
  padding-top: 0.8em;  
  }
 
/* C6 Profile
-------------------------------------------------------------*/
 
/* C6.1 */
#profile .container {
  padding-left: 18.6em;  
  }
 
/* C6.2 */
#profilenav {
  float: left;
  width: 14em;
  margin-left: -16.3em;
  display: inline;  
  }
 
/* C6.3 */
#profilenav li {
  padding-bottom: 0.8em;
  font-weight: bold;  
  }
 
/* C6.4 */
#viewprofile ul, #profilenav ul {
  border-style: solid;
  border-width: 1px;
  padding: 1.5em 18px 0.8em 18px;
  margin: 0 0 1em 0;  
  }
 
/* C6.5 */
#viewprofile h2, #profilenav h2 {
  background: transparent;
  border: none;
  padding: 0 0 0 0;
  margin: 0 14px -0.6em 14px;  
  }
 
/* C6.6 */
#viewprofile h2 span, #profilenav h2 span {
  padding: 0 5px;
  position: relative;  
  }
 
/* C6.7 */
#viewprofile li, #setmods dl {
  padding: 0 0 0 16em;
  margin-bottom: 0.2em;  
  }
 
/* C6.8 */
#viewprofile li span {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.5em 1em;
  font-weight: bold;  
  }
 
/*C6.9 */
#setmods dt {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.8em 1em;
  font-weight: bold;
  display: inline;  
  }
 
/* C6.10 */
#viewprofile li strong, #viewprofile li div, #setmods dd {
  display: block;
  padding: 0.5em 1em;
  font-weight: normal;  
  }
 
/* C6.11 */
.punbb img.avatardemo {
  float: right;  
  margin: 0 0 0.8em 1.8em;  
  }
 
/* C7 User list
-------------------------------------------------------------*/
 
/* C7.1 */
#pun-userlist .formal, #pun-userlist .formal .container {
  border-bottom: none;
  margin-bottom: 0;  
  }
 
/* C7.2 */
#pun-userlist .usertable .container {
  padding: 0 2.3em 2.3em 2.3em;
  border-top: none;  
  }
 
/* C7.3 */
#pun-userlist .usertable table {
  border-style: solid;
border-color: #7b664d;
  border-width: 1px;  
  }
 
/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/
 
/* D1 Logo and description
-------------------------------------------------------------*/
 
/* D1.1 */
#pun-title {
  margin: 0;
  border-style: none;
  border-width: 0;  
  }
 
/* D1.2 */
#pun-title h1 {
  display : block;
  height : 40px;
  padding: 2em 1em 0 1em;  
  }
 
/* D1.3 */
#pun-title .container {
  border-style: none solid none solid;  
  }
 
/* D1.4 одно названьице шапка нормальная*/
#pun-title h1 span {
  font-size: 1.5em;  
  }
 
#pun-title table {
  border: none;
  height: 464px;
  width: 938px;  
  margin-left: -19px !important;  
  background-image: url(https://forumstatic.ru/files/0018/63/9f/42273.jpg);  
background-repeat: no-repeat;
background-position: top center;
background-color: transparent;
}
 
#pun-title td.title-logo-tdl {
  border: none;
  width: 100%;  
}
 
#pun-title td.title-logo-tdr {
  border: none;
vertical-align: top;
  top: 0px;
margin-top: 0px;
position: relative;  
}
 
/* D2 Page navigation
-------------------------------------------------------------*/
 
/* D2.1 */
#pun-pagelinks {
  position: absolute;
  top: -15px;
  left: 0;
  margin: 0;
  border: none;
  padding: 0;
  width: 100%;  
  }
 
/* D2.2 */
#pun-pagelinks .container {
  background: transparent;
  border: none;
  padding: 0;  
}
 
/* D2.3 */
#pun-pagelinks .container li {
  display: inline
  }
 
/* D2.4 */
#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover {
  height: 2em;
  line-height: 2em;
  padding: 0;
  font-size: 1.2em;
  margin-left: -9999px;
  display: block;
  float:left;
  width: 100%;  
  }
 
/* D2.5 */
#pun-pagelinks a:active, #pun-pagelinks a:focus {
  position:relative;
  margin: 0;  
  }
 
#pun-pagelinks li a span {
  display:block;
  margin: 0 1em
  }
 
/* D3 Forum navigation
-------------------------------------------------------------*/
 
/* D3.1 */
#pun-navlinks, #pun-navlinks .container {
  border-style: none;
  border-width: 0;
  }
 
/* D3.2 */
#pun-navlinks .container {
  padding: 0.7em 1em;
  position: absolute;
  top: 383px;
  text-align:right; width: 895px;
  }
 
/* D.3 */
#pun-navlinks li {
  display: inline;
  padding-right: 1em;
  }
 
/* D3.4 */
#pun-navlinks li a {
  font-size: 1.1em;
  }
 
/* D4 User links
-------------------------------------------------------------*/
 
/* D4.1 */
#pun-ulinks {
  margin-top: 0;
  }
 
/* D4.2 */
#pun-ulinks .container {
  border-top: none;
  position: absolute;
  top: 438px;
  text-align: right; width: 874px;
  }
 
/* D4.3 */
#pun-ulinks li, #pun-ulinks li a {
  display: inline;
  border-left-style: solid;
  border-left-width: 1px;
  white-space: nowrap;
  }
 
/* D4.4 */
#pun-ulinks li a {
  padding: 0 0.3em 0 0.6em
  }
 
/* D4.5 */
#pun-ulinks li.item1, #pun-ulinks li.item1 a {
  border-left-style: none;
  border-left-width: 0;
  padding-left: 0
  }
 
/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/
 
/* D5.1 */
#pun-status, #pun-status .container, #pun-status .container a {
  border-bottom: none;
  margin-bottom: 0; color: #625139;
  }
 
/* D5.2 */
#pun-status .container {
  padding: 0.8em 1em 1em 1em;  
  }
 
/* D5.3 */
#pun-status span {
  white-space: nowrap;
  margin-right: 0.5em;  
  }
 
/* D5.4 */
#pun-crumbs1 {
  font-weight: bold;
  overflow: hidden;
  margin-top: 0;  
  }
 
/* D5.5 */
#pun-crumbs1 p.container {
  border-top: none;
  padding: 1em 1em 0.8em 1em;
  font-size: 1.1em;  
  }
 
/* D5.6 */
#pun-break1 {
  margin: 0 1em;
  border-style: solid none;
  border-width: 1px 0;
  height: 0;
  margin: -2px 1em;
  position: relative;
  z-index: 1;  
  }
 
/* D6 Announcement
-------------------------------------------------------------*/
 
/* D6.1 */
#pun-announcement h2 {
  padding: 0;
  margin: 0 1em -3.5em 1em;
  border-style: none none solid none;
  border-width: 0 0 1px 0;
  position: relative;
  font-weight: bold;
  }
 
/* D6.2 */
#pun-announcement h2 span {
display: none;
  }
 
/* D6.3 */
#pun-announcement .container {
  padding: 4.3em 1em 1em 1em;
  }
 
/* D7 Statistics
-------------------------------------------------------------*/
 
/* D7.1 */
#pun-stats .container {
  padding: 0.8em 1em; color: #4b3f31;
  }
 
/* D7.2 всего тем сообщений*/
#pun-stats li.item1, #pun-stats li.item2 {
  float: left;
  clear: both;
  line-height: 150%;  
  }
 
/* D7.3 */
#pun-stats li.item3, #pun-stats li.item4 {
  text-align: right;
  line-height: 150%;  
  }
 
/* D7.4 */
li#onlinelist {
  margin-top: 1em;
  border-top-style: none;
  border-top-width: 1px;
  float: left;
  width: 100%;
  line-height: 130%;  
  }
 
/* D7.5 */
li#onlinelist div {
  border-top-style: none;
  border-top-width: 1px;
  padding: 0.7em 0 0 0;  
  }
 
/* D8 Quick Jump - About - Bottom Breadcrumbs
-------------------------------------------------------------*/
 
/* D8.1 */
#pun-qjump {
  margin: 0;
  border: none;
  width: 50%;
  position: relative;
  float: left;  
  }
 
/* D8.2 */
#pun-qjump .container {
  border: none;
  background: transparent;
  padding: 0.8em 1em;
  }
 
/* D8.3 */
#pun-about {
  margin-top: 0;  
  }
 
/* D8.4 */
#pun-about .container {
  border-style: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;  
  }
 
/* D8.5 */
#pun-about p span {
  display:block;
  padding-left: 50%;
  }
 
/* D8.6 */
#pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 0;
  border: none;  
  }
 
/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  padding: 0.8em 1em;
  font-size: 1.1em;
  }
 
/* D8.8 */
#pun-break4 {
  margin: -2px 1em;
  border-style: solid none;
  border-width: 1px 0;
  position: relative;
  height: 0;
  z-index: 1;  
  }
 
/* D8.9 */
div.punbb-admin #pun-about .container {
  border-top-style: solid;
  border-top-width: 1px;  
  }
 
.punbb-admin, #pun-admain1 .adformal p, #pun-admain fieldset p{ background-color: #957f5e !important; border-left-color: #7b664d !important }
#pun-admain fieldset, .adcontainer {border-color: #7b664d !important;  
border-left-color: #7b664d !important;  
border-right-color: #7b664d !important;  
border-bottom: #7b664d !important; }
 
/* D9 Help file
-------------------------------------------------------------*/
 
/* D9.1 */
#pun-help .formal .info-box h3.legend {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: 0;
  margin-bottom: 0.8em;  
  }
 
/* D9.2 */
#pun-help .formal .info-box h3.legend span {
  padding-bottom: 0.6em;
  display: block;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  font-size: 1.1em;
  }
 
/* D9.3 */
#pun-help .formal p, #pun-help .formal dd {
  margin-bottom: 1em
  }
 
/* D9.4 */
#pun-help .formal ul, #pun-help .formal dl {
  padding: 0 0 0 1em
  }
 
/* D9.5 */
#pun-help .formal li {
  padding: 0;
  line-height: 130%
  }
 
/* D9.6 */
#pun-help .formal li * {
  vertical-align: text-top
  }
 
/* D9.7 */
#pun-help .formal dt span {
  font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace
  }
 
/* D9.8 */
#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode {
  padding-bottom: 0;
  }
 
#button-spoiler {
  background: url("https://forumupload.ru/uploads/0009/2d/79/375-2.gif") no-repeat scroll 50% 50% transparent;}
 
.pa-avatar img,
.punbb img.avatardemo,
#profile-left img {
border: 3px double #392111 !important;
}
 
.title-logo-tdr *, #tieser-bottom{  
  filter:alpha(opacity=80)!important;  
  opacity: 0.8!important;  
  -moz-opacity: 0.8!important;  
  -khtml-opacity: 0.8!important; }  
.title-logo-tdr *:hover, #tieser-bottom:hover{  
filter:alpha(opacity=100)!important;  
opacity: 1.0!important;  
-moz-opacity: 1.0!important;  
-khtml-opacity: 1.0!important; }
 
#pun-live-rusff, #pun-live-rusff-peoples {display: none}

.punbb #image-area {
  background: #b9a98f;  
  border: 1px solid #7b664d;
}

Цвета ксс:

Код:
/* CS1 Background and text colours
-------------------------------------------------------------*/
html,body {background: #000 url(https://forumstatic.ru/files/0018/63/9f/42273.jpg) top center no-repeat; }
 
/* CS1.1 */
.punbb .section .container, .punbb .post-body, .punbb .post-links,
.punbb .formal fieldset .post-box, #viewprofile li strong, #viewprofile li div, #setmods dd,
.punbb .info-box, .punbb #pun-main .info-box .legend {
  background-color: transparent;
  color: #000000;
  }
   
.punbb td.tc2, .punbb td.tc3 {
  background-color: transparent;
  color: #000000;
}
 
/* CS1.2 */
.punbb .main .container, .punbb .post .container, .punbb .post h3, .punbb-admin #pun-admain .adcontainer {
  background-color: transparent;
  color: #000000;
  }
 
/* CS1.3 */
#pun-stats h2, .punbb .main h1, .punbb .main .category h2, #pun-main #post-form h2 {
background-color: transparent;
background-image: url(https://forumstatic.ru/files/0018/63/9f/16898.jpg); background-position: top center; background-repeat: no-repeat;
color: #f2ecd7;
font-size: 14px;
font-variant: small-caps;
font-style: normal;
height: 45px;
margin-left: -33px !important;
padding-top: 20px !important;
text-align: center;
width: 938px;
  }
 
#pun-redirect h1, #pun-debug h2, .punbb .main h2, .punbb-admin #pun-admain h2 {
color: #b49556;
background-color: transparent;
background-image: url(https://forumstatic.ru/files/0018/63/9f/16898.jpg); background-position: top center; background-repeat: no-repeat;
font-size: 14px;
font-variant: small-caps;
font-style: normal;
height: 45px;
text-align: center;
padding-top: 20px !important;
  }
#pun-redirect h1 {width: 100% !important}
 
/* CS1.4 */
#pun-title, #pun-title .container, .punbb .modmenu .container {
  background-color: transparent;
  color:#000000;
  }
 
/* CS1.5 */
.punbb legend span, #viewprofile h2 span, #profilenav h2 span, .punbb-admin #pun-admain legend span {
  background-color: #f2ecd7;
  color: #000;
  }
 
/* CS1.6 */
.punbb .post h3 span, .punbb th, #viewprofile li, #setmods dl {
  background-color: transparent;
  color: #000000;
  }
 
/* CS1.7 */
.punbb .quote-box, .punbb .code-box {
color: #000000;
  }
 
/* CS1.8 */
#pun-navlinks .container {
background-color: transparent;
color: #000000;
font-variant: small-caps;
text-align: center;
  }
 
.offline li.pa-online strong { font-weight: normal }
 
.punbb select {background-color: #917a5a; color: #472b18;}
 
.punbb textarea, .punbb input {
color: ##472b18;}
 
.punbb .post h3 span {
  background-color: transparent ;
color: ##472b18; border-left: #7b664d;
}
 
#pun .punbb .section {background-color: transparent; }
#pun-title .title-logo span {display: none;}
 
/* CS2 Border colours
-------------------------------------------------------------*/
 
/* CS2.1 */
.punbb .container, .punbb .post-body, .post h3, #pun-title {
  border-color: transparent
  }
 
/* CS2.2 */
.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info, .punbb .category, .punbb .post {
  border-color: transparent
  }
 
/* CS2.3 */
#pun-stats h2, .punbb .main h1, .punbb .main h2, #pun-debug h2, .punbb-admin #pun-admain h2 {
  border-color: #000000;
  }
 
/* CS2.4 */
.punbb td, .punbb fieldset, #viewprofile ul, #profilenav ul, .punbb .post .post-body,
.punbb .post h3 span, .post-links ul, .post-links, .usertable table {
  border-color: #000000;
  }
 
/* CS2.5 */
.punbb th {
  border-color: transparent
  }
 
/* CS2.6 */
.punbb .quote-box, .punbb .code-box {
  border-color: #f2ecd7;
  }
 
#pun-ulinks li, #pun-announcement h2 span, li#onlinelist, #pun-help .formal .info-box h3.legend span { border-color: transparent }
 
#pun-ulinks li a, #pun-announcement h2, li#onlinelist div, #pun-help .formal .info-box h3.legend {border-color: transparent }
 
.punbb .divider { border-style: none; border-color: transparent;
  }
 
.punbb .formal fieldset .post-box, .punbb .info-box {
  border: 1px solid #7b664d;
  }
 
li.pa-online { border-left-color: transparent; }
 
.punbb .post-sig dt {
  border-top-color: #7b664d !important;}
 
/* CS3 Links
-------------------------------------------------------------*/
 
/* CS3.1 */
.punbb a, .punbb a:link, .punbb a:visited,
.punbb-admin #pun-admain a, .punbb-admin #pun-admain a:link, .punbb-admin #punbb-admain a:visited {
color: #283852;
/* text-shadow: 0px 0px 1px #978362; */
border-bottom: 0px none transparent; text-decoration: none;
  }
 
.punbb li.isactive a, .punbb li.isactive a:link, .punbb li.isactive a:visited {
  color: #5c2038; text-decoration: none;
  }
 
#pun-ulinks li a {color: #f2ecd7; }
#pun-ulinks li a:active, #pun-ulinks li a:hover, #pun-ulinks li a:focus {color: #f2ecd7;}
 
/* CS3.2 */
.punbb a:hover, .punbb a:focus, .punbb a:active, .punbb-admin #pun-admain .nodefault,
.punbb-admin #punbb-admain a:hover, .punbb-admin #punbb-admain a:focus, .punbb-admin #punbb-admain a:active {
  color: #5c2038;
  border-bottom: 0px none transparent;
  text-decoration: none;  
  }
 
/* CS3.3 */
#pun-navlinks a {
  color: #f2ecd7;
  font-weight: normal;
  border-bottom: 0px none transparent;
  text-decoration: none;
  }
 
/* CS3.4 */
#pun-navlinks a:hover, #pun-navlinks a:focus, #pun-navlinks a:active {
  color: #f9f8ed;
  font-weight: normal;
font-style: normal;
  text-decoration: none;
  }
 
#pun-pagelinks a:active, #pun-pagelinks a:focus {
  background-color: transparent;
  color: #ae9363; }
#pun-pagelinks a { color: #5c2038;}
 
#pun-main .linksb .pagelink a:active, #pun-main .linksb .pagelink a:focus, #pun-main .linkst .pagelink a:active, #pun-main .linkst .pagelink a:focus {
  background-color: transparent;
  color: #000000; }
#pun-main .linksb .pagelink a, #pun-main .linkst .pagelink a { color: #5c2038;}
 
#pun-stats.section .statscon .container #onlinelist.item7 {display: none;}  
 
#pun-main div.catleft, #pun-main div.catright {display: none}
 
.linkst .pagelink, .linkst .postlink, .punbb .linksb,  
.linksb .pagelink, .linksb .postlink, .subscribelink
{color: #5c2038 !important}
 
#pun-crumbs2 .container, #pun-crumbs1 .container {color:#283852}
 
#font-area, #size-area, #video-area, #color-area, #smilies-area {background-color: #917a5a}

Если вставляю перед первым кодом, то все оформление сразу слетает. Не совсем пойму, куда именно надо вставлять.

0

5

mst6666
Поставьте после @import url(style_cs.css);
к примеру
(красный цвет фона поставила специально, чтобы вы могли заметить разницу, а также увеличила размер окна)

Код:
@media screen and (max-width: 840px) { 
 #pun { width: 100% !important;  background-color: red !important; }
 } 

+1

6

mst6666 написал(а):

Куда добавлять viewport?

Админка - Раскрутка - Метатеги
Имя viewport
Содержание width=device-width, initial-scale=1.0

+1


Вы здесь » Единый форум поддержки » Форум для новичков » Адаптировать для мобильных в ручную. Возможно ли?