Скрыть объявление
ВАШИ ПРАВА ОГРАНИЧЕНЫ!

Зарегистрируйтесь на форуме, чтобы стать полноценным участником сообщества!

Как поменять колонки местами?

Тема в разделе "Вопросы по шаблонам DLE", создана пользователем Dayzeek, 8 ноя 2020.

08.11.20 в 23:16
10.11.20 в 00:58
7
4.286
0
  1. TopicStarter Overlay
    Dayzeek

    Dayzeek Зелёный

    Регистрация:
    8 сен 2020
    Сообщения:
    7
    Лучших ответов:
    0
    Рейтинги:
    +0 / 0 / -0
    Здравствуйте. Возникла потребность изменить шаблон. Но не знаю как это сделать. Шаблон двухколоночный. Колонка с категориями итд находится справа, я хочу чтобы она была справа. Что нужно изменить в СSS?

    [​IMG]

    Код:
    /* SET BASE
    ----------------------------------------------- */
    * {background: transparent;margin:0;padding:0;outline:none;border: 0;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;}
    ol, ul {list-style:none;}
    blockquote, q {quotes:none;}
    table {border-collapse:collapse;border-spacing:0;}
    input, select {vertical-align:middle;}
    article, aside, figure, figure img, hgroup, footer, header, nav, section, main {display: block;}
    body {font: 13px 'Open Sans', Arial, Helvetica, sans-serif; line-height:normal; padding:0; margin:0;     
    color: #ccc; background-color:#222; height:100%; width:100%; font-weight:normal;}
    img {max-width:100%; image-rendering:crisp-edges; image-rendering:-moz-crisp-edges; image-rendering:-webkit-optimize-contrast;}
    .clr {clear: both;}
    .clearfix:after {content: ""; display: table; clear: both;}
    a {color: #ccc; text-decoration: none;}
    a:hover, a:focus {color:#e20a16; text-decoration: none;}
    h1, h2, h3, h4, h5 {font-weight:400; font-size:18px;}
    
    .form-wrap {}
    .sub-title h1 {margin-bottom:15px; font-size:24px; font-weight:700;}
    .pm-page, .search-page, .static-page, .tags-page, .form-wrap {}
    
    
    /*--- SET ---*/
    .button, .pagi-load a, .up-second li a, .usp-edit a, .qq-upload-button, button:not(.color-btn):not([class*=fr]),
    html input[type="button"], input[type="reset"], input[type="submit"], .meta-fav a, .usp-btn a {
    padding:0 20px; display:inline-block; height:40px; line-height:40px; border-radius:20px; cursor:pointer; text-align:center;
    background-color:#e20a16; color:#fff;
    background: -webkit-linear-gradient(to right, #e20a16, #761213);
    background: linear-gradient(to right, #e20a16, #761213);}
    button::-moz-focus-inner, input::-moz-focus-inner {border:0; padding:0;}
    button[disabled], input[disabled] {cursor:default;}
    .button:hover, .up-second li a:hover, .usp-edit a:hover, .qq-upload-button:hover, .pagi-load a:hover, .usp-btn a:hover,
    button:not(.color-btn):hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .meta-fav a:hover
    background-color:#e20a16; color:#fff;
    background: -webkit-linear-gradient(to left, #e20a16, #761213);
    background: linear-gradient(to left, #e20a16, #761213);}
    button:active, html input[type="button"]:active, input[type="reset"]:active, input[type="submit"]:active
    {box-shadow: inset 0 1px 4px 0 rgba(0,0,0,0.1);}
    input[type="submit"].bbcodes, input[type="button"].bbcodes, input.bbcodes, .ui-button
    {font-size: 12px !important; height: 30px !important; line-height:30px !important; padding: 0px 10px; border-radius:3px;}
    
    input[type="text"], input[type="password"] {display:block; width:100%; height:40px; line-height:40px; padding:0 15px;
    color:#fff; background-color:#222; border-radius:0px; -webkit-appearance: none;
    box-shadow:0 0 0 1px #111,inset 1px 1px 3px 0 rgba(0,0,0,0.8);}
    input[type="text"]:focus {}
    
    input:focus::-webkit-input-placeholder {color: transparent}
    input:focus::-moz-placeholder {color: transparent}
    input:focus:-moz-placeholder {color: transparent}
    input:focus:-ms-input-placeholder {color: transparent}
    
    select {height:40px; border:1px solid #111; background-color:#222; color:#FFF;}
    textarea {display:block; width:100%; padding:10px; border:1px solid #111; background-color:#222; color:#FFF;
    border-radius:0; overflow:auto; vertical-align:top; resize:vertical;
    box-shadow:0 0 0 1px #111,inset 1px 1px 3px 0 rgba(0,0,0,0.1);}
    
    .img-box, .img-wide, .img-resp-h, .img-resp-v {overflow:hidden; position:relative; background-color:#000;}
    .img-resp-h {padding-top:55%;}
    .img-resp-v {padding-top:130%;}
    .img-box img, .img-resp-h img, .img-resp-v img {width:100%; min-height:100%; display:block;}
    .img-resp-h img, .img-resp-v img {position:absolute; left:0; top:0;}
    .img-wide img {width:100%; display:block;}
    .img-square img {width:150%; max-width:150%; margin-left:-25%;}
    .nowrap {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
    button, .h-menu a {transition: all .3s;}
    .button, .th-img img {transition: color .3s, background-color .3s, opacity .3s;}
    .ps-link {cursor:pointer;}
    .icon-l .fa {margin-right:10px;}
    .icon-r .fa {margin-left:10px;}
    
    .fx-row {display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap;
    -ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;}
    .fx-center{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}
    .fx-between{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}
    .fx-stretch{-ms-flex-align:stretch;-webkit-align-items:stretch;align-items:stretch}
    .fx-top{-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}
    .fx-middle{-ms-flex-align:center;-webkit-align-items:center;align-items:center}
    .fx-bottom{-ms-flex-align:end;-webkit-align-items:flex-end;align-items:flex-end}
    .fx-col{display:-ms-flexbox;display:-webkit-flex;display:flex;
    -ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}
    .fx-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}
    
    
    .pages {background-color:#333; box-shadow:0 1px 2px 0 rgba(0,0,0,0.4); padding:20px;}
    .btns-log, .h-menu, .side-bt, .footer, .th-title, .site-desc h1, .site-desc h2, .site-desc h3, .rels-t, .full-in h1,
    .button, .comms-title, .f-fav, .btn-scr, .btn-dl, .full-in h1, .rels-t
    {font-size:14px; font-weight:300;}
    
    
    /* BASIC GRID
    ----------------------------------------------- */
    .wrap {min-width:320px; overflow:hidden;}
    .center {max-width:1500px; margin:0 auto; position:relative; z-index:20;}
    .h-one {background-color:#e20a16; height:60px; padding:0 2010px; margin:0 -2000px; position:relative;
    background: -webkit-linear-gradient(to right, #e20a16 0%, #e20a16 30%, #761213 70%, #761213 100%);
    background: linear-gradient(to right, #e20a16 0%, #e20a16 30%, #761213 70%, #761213 100%);}
    .h-two {background-color:#333; height:50px; padding:0 2010px; margin:0 -2000px;
    box-shadow:0 20px 20px -20px rgba(0,0,0,0.9);}
    .cols {margin:20px 0; padding:0 10px;}
    .side {width:240px; background-color:#333;}
    .main {width:calc(100% - 240px); width:-webkit-calc(100% - 240px); padding-right:20px; min-height:600px;}
    .footer {background-color:#333; padding:20px 2010px; margin:0 -2000px; color:#fff; text-align:center;
    box-shadow:0 -20px 20px -20px rgba(0,0,0,0.9); position:relative;}
    
    
    /* HEADER
    ----------------------------------------------- */
    .logo {display:block; float:left; width:240px; height:60px; margin-right:20px;}
    .logo img {display:block;}
    
    .search-box {width:400px; position:absolute; left:50%; top:0; margin:10px 0 0 -200px;}
    .search-field {width:100%; position:relative;}
    .search-field input, .search-field input:focus {width:100%; padding:0 50px 0 10px;
    background-color:rgba(0,0,0,0.4); color:#fff; height:40px; line-height:40px; box-shadow:none;}
    .search-box button {position:absolute; right:0; top:0;
    padding:0 !important; width:40px; height:40px !important; line-height:40px !important;
    font-size:18px; background:transparent !important; color:#fff !important;}
    
    .btns-log {height:40px; line-height:40px; white-space:nowrap; float:right; margin-top:10px;}
    .btns-log a {display:inline-block; padding:0 20px; color:#fff;}
    .show-login {background-color:#e20a16; color:#fff; cursor:pointer; display:inline-block; padding:0 20px; border-radius:20px;}
    .btns-log a:hover, .show-login:hover {text-decoration:underline;}
    
    .h-menu, .h-menu li {float:left;}
    .h-menu a {display:block; line-height:30px; padding:0 10px; background-color:#222; margin:10px 10px 0 0; border-radius:15px;}
    .h-menu a span {background-color:#2c8f00; color:#fff; display:inline-block; vertical-align:top;
    height:20px; line-height:20px; padding:0 5px; margin:5px 0 0 10px; border-radius:10px;}
    
    .sorter {display:inline-block; float:left; position:relative; cursor:pointer; margin-top:10px;
    padding:0 10px; line-height:30px; background-color:#222; border-radius:15px; margin-right:10px;}
    .sorter:before {content:attr(data-label); float:left; padding:0 10px 0 0;}
    .sorter form {display:none; background-color:#333; padding:10px; line-height:26px; box-shadow:0 0 15px 0 rgba(0,0,0,0.8);
    position:absolute; right:0; top:100%; width:160px; z-index:999;}
    .sorter a:hover {text-decoration:underline;}
    .sort li.asc a:after, .sort li.desc a:after {content:"\f063"; font-family:FontAwesome; display:inline-block; margin-left:10px;}
    .sort li.desc a:after {content:"\f062"}
    
    
    /* SEO DESCRIPTION
    ----------------------------------------------- */
    .site-desc {line-height:18px; text-align:justify; margin-bottom:20px;}
    .site-desc h1, .site-desc h2, .site-desc h3 {font-size:24px; margin-bottom:20px;
    padding-bottom:20px; border-bottom:1px solid #e20a16; color:#FFF;}
    .site-desc h1 span, .site-desc h2 span, .site-desc h3 span {}
    .site-desc p + p {margin-top:5px;}
    .site-desc a {color:#e20a16; text-decoration:underline;}
    
    
    /* THUMB
    ----------------------------------------------- */
    .floats {margin:0 -5px;}
    .thumb {width:25%; float:left; padding:0 5px 10px 5px;}
    .th-in {background-color:#333; position:relative; box-shadow:0 1px 2px 0 rgba(0,0,0,0.4);}
    .th-img {display:block;}
    .th-img:hover img {opacity:0.8;}
    .th-rate {display:inline-block; padding:5px 10px; background-color:rgba(44,143,0,0.8); color:#fff;
    position:absolute; left:10px; bottom:10px; z-index:20; font-size:13px; white-space:nowrap; border-radius:14px;}
    .th-time {display:inline-block; padding:5px 10px; background-color:rgba(0,0,0,0.5); color:#fff;
    position:absolute; right:10px; top:10px; z-index:20; font-size:13px; border-radius:14px;}
    .th-text {padding:10px;}
    .th-title {display:block; font-size:15px; font-weight:300; line-height:22px; height:44px; overflow:hidden;}
    .th-in:hover {background-color:#e20a16;}
    .th-in:hover .th-title {color:#fff;}
    
    
    /* SIDE
    ----------------------------------------------- */
    .side-box {padding:10px;}
    .side-bt {font-size:18px; padding-bottom:10px; margin-bottom:10px; border-bottom:1px solid #666; color:#FFF;}
    
    .side-nav {background-color:#333; color:#FFF;}
    .side-nav .side-bt {border-bottom:0; margin:-10px -10px 10px -10px; padding:10px; background-color:#e20a16; color:#fff;
    background: -webkit-linear-gradient(to right, #e20a16, #761213);
    background: linear-gradient(to right, #e20a16, #761213);}
    .side-nav a {border-bottom:1px solid #111; box-shadow:0 1px #555; display:block;
    padding:10px 50px 10px 0; color:#ccc; font-size:14px;}
    .side-nav li:last-child a {border-bottom:0; box-shadow:none;}
    .side-nav a:hover {color:#e20a16;}
    .side-nav li {position:relative;}
    .side-nav li span {position:absolute; right:10px; top:10px; opacity:0.6;}
    
    
    /* FOOTER
    ----------------------------------------------- */
    .ft-copyr {margin-bottom:10px; font-size:16px;}
    .ft-menu a {color:#ccc; display:inline-block; vertical-align:top; padding:1px 10px;}
    .ft-menu a + a {border-left:1px solid #666;}
    .ft-menu a:hover {color:#FFF; text-decoration:underline;}
    .counter {display:inline-block; height:31px; background-color:#111;
    position:absolute; right:0; bottom:20px; margin-right:2010px;}
    
    
    /* BOTTOM NAVIGATION
    ----------------------------------------------- */
    .bottom-nav {line-height:36px; text-align:left; padding:20px 5px 0 5px;}
    .pagi-nav {max-width:100%; display:inline-block;}
    .pagi-nav > span {display:inline-block;}
    .pprev, .pnext {}
    .pprev {}
    .pnext a, .pprev a, .pprev > span, .pnext > span {display:block; width:36px; text-align:center;}
    .navigation {text-align:center;}
    .navigation a, .navigation span, .pnext a, .pprev a, .pprev > span, .pnext > span {display:inline-block; padding:0 5px;
    min-width:36px; background-color:#333; margin:5px 5px 0 0; border-radius:0px; border:0px solid #ddd;
    box-shadow:0 3px 5px 0 rgba(0,1,1,0); font-size:18px;}
    .navigation span, .pagi-nav a:hover {background-color:#e20a16; color:#fff;}
    .navigation span.nav_ext {background-color:#333; color:#ccc;}
    .pagi-nav a:hover {background-color:#e20a16; color:#fff;}
    .dle-comments-navigation .pagi-nav {margin-bottom:0;}
    
    
    /* FULL
    ----------------------------------------------- */
    .full-in {background-color:#333; box-shadow:0 1px 2px 0 rgba(0,0,0,0.4); margin-bottom:20px;}
    .player-box {background-color:#000;}
    .player-box .video-box {max-width:700px; margin:0 auto;}
    .full-in h1 {font-size:24px; padding:10px; background-color:#282828; color:#FFF;}
    .full h1 a {color:#e20a16; margin-left:10px;}
    .full-meta {padding:10px;}
    .full-tags {margin-bottom:0px; line-height:30px; padding:0 10px;}
    .full-tags a {display:inline-block; padding:0 10px; background-color:#222; margin:0 0 10px 5px;}
    .f-fav, .btn-scr, .btn-dl, .f-time, .f-views {float:left; margin:0 0 0 20px; cursor:pointer; line-height:40px; position:relative;}
    .f-time, .f-views {float:right;}
    .f-desc {padding:10px; background-color:#282828; margin:0 10px 10px 10px;}
    
    .f-screens {padding:10px 5px 0 5px; border:1px solid #111; background-color:#282828; text-align:center; margin-bottom:10px; display:none;}
    .f-screens a, .f-screens > img {display:inline-block; vertical-align:top; margin:0 5px 10px 5px;
    max-width:250px; max-height:150px; overflow:hidden;}
    .f-screens a img {display:block;}
    .f-screens br {display:none;}
    
    .btn-dl ul {position:absolute; left:0; top:100%; z-index:100; background-color:rgba(0,0,0,0.8); color:#fff;
    width:200px; padding:5px 0; display:none;}
    .btn-dl ul li {padding:5px 10px; line-height:normal; text-transform:none;}
    .btn-dl ul li a {color:#fff;}
    .btn-dl li:hover {background-color:#000;}
    
    .f-rate {float:left; white-space:nowrap; text-align:center; border-radius:4px; overflow:hidden;
    background-color:#222; box-shadow:0 0 0 1px #111; width:246px;}
    .rate-plus, .rate-minus, .rate-counts {display:inline-block; vertical-align:middle;}
    .rate-data {display:none;}
    .rate-counts {width:160px; padding:0 10px; padding-top:3px; height:40px;}
    .rate-plus, .rate-minus {cursor:pointer; width:40px; height:40px; text-align:center; font-size:24px;
    background: linear-gradient(to bottom, #333 0%,#222 100%); line-height:40px;}
    .rate-plus {color:#1e9b05; border-right:1px solid #111;}
    .rate-minus {color:#d00707; border-left:1px solid #111;}
    .rate-plus:hover, .rate-minus:hover {background: linear-gradient(to top, #444 0%,#222 100%);}
    .rate-bar {width:100%; min-height:6px; height:6px; border-radius:4px; overflow:hidden;
    position:relative; background-color:#ef4559;}
    .rate-fill {width:50%; height:100%; position:absolute; left:0; top:0; background-color:#7bbc00; transition:width 1s linear;}
    .rate-perc {margin-right:5px; font-size:18px; color:#7bbc00;}
    
    .rels-t {margin-bottom:10px; font-size:24px; color:#FFF;}
    .full .thumb {padding:10px 5px 0px 5px;}
    
    
    /* FULL STORY STATIC
    ----------------------------------------------- */
    .video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame
    {max-width:100% !important; display:block; width:100%; height:400px;}
    .mejs-container {max-width:100% !important;}
    .full-text {font-size:14px; line-height:20px; color:#ccc;}
    .full-text img:not(.emoji) {max-width:100%; margin:10px 0;}
    .full-text > img[style*="left"], .full-text > .highslide img[style*="left"] {margin:0 10px 10px 0;}
    .full-text > img[style*="right"], .full-text > .highslide img[style*="right"] {margin:0 0 10px 10px;}
    .full-text a {text-decoration:underline; color:#e20a16;}
    .full-text a:hover {text-decoration:none;}
    .full-text h2, .full-text h3, .full-text h4, .full-text h5 {margin:10px 0; font-size:18px; font-weight:700;}
    .full-text p {margin-bottom:10px;}
    .full-text ul, .full-text ol {margin:0;}
    .full-text ul li {list-style:disc; margin-left:40px;}
    .full-text ol li {list-style:decimal; margin-left:40px;}
    
    .full-taglist a {color:#e20a16;}
    .full-taglist {margin-top:20px;}
    .full-taglist span:not(.fa):not(:last-child):after {content:","; display:inline;}
    
    
    /* COMMENTS
    ----------------------------------------------- */
    .full-comms {padding:10px; background-color:#282828;}
    .comms-title {line-height:40px;}
    .comms-title > span {font-size:16px;}
    .add-comm-form {position:relative; margin:20px 0; display:none;}
    .ac-soc {position:absolute; right:0px; top:-8px;}
    .ac-soc:before {content:attr(data-label); display:inline-block; vertical-align:top; line-height:30px; margin-right:5px;}
    .ac-soc a {display:inline-block; margin:0 0 0 3px; vertical-align:top;}
    .ac-soc img {display:block; width:30px;}
    .ac-inputs, .ac-textarea {margin-bottom:15px;}
    
    .ac-av {width:40px; height:40px; border-radius:0%; float:left; margin-right:10px;
    background:#fff url(../dleimages/noavatar.png) no-repeat; background-size:contain;}
    .ac-title {font-weight:700; margin-bottom:15px; text-transform:uppercase;}
    .ac-inputs input {width:49%;}
    .ac-textarea textarea {height:85px;}
    .ac-submit {}
    .sec-answer + .sec-label {margin-top:10px;}
    .ac-protect {margin-top:-10px; display:none;}
    .ac-protect .label {font-size:12px;}
    .ac-protect .sep-input {padding:10px 10px 10px 160px;}
    .ac-protect input {}
    
    .mass_comments_action {text-align:right; padding:5px 15px; background-color:#222; margin:20px 0 0 0;}
    .last-comm-link {font-size:16px; margin-bottom:10px;}
    .last-comm-link a {text-decoration:underline;}
    .full-comms {}
    
    .comm {background-color:#333; padding:10px; padding-left:60px; margin-top:10px;}
    .comm-av {width:40px; height:40px; float:left; margin-left:-50px;}
    .comm-meta {margin-bottom:8px;}
    .comm-meta span + span {margin-left:10px; opacity:0.8;}
    .comm-author {font-weight:700;}
    .comm-text {font:14px/18px Arial, Helvetica, sans-serif;}
    
    
    /* LOGIN
    ----------------------------------------------- */
    .login-box {background-color:#333; padding:20px; display:none;}
    .lb-user {margin:-20px -20px 20px -20px; padding:20px; background-color:#282828;
    display:flex; flex-flow:row wrap; justify-content:center; align-items:center;}
    .lb-ava {width:80px; height:80px; border-radius:50%; margin-right:20px;}
    .lb-name div {font-size:18px;}
    .lb-name a {margin-top:10px;}
    .lb-menu a {display:block; line-height:30px; padding:0 10px; background-color:#282828;}
    .lb-menu a:hover, .lb-menu a:hover .fa {background-color:#e20a16; color:#fff;}
    .lb-menu a .fa {color:#e20a16;}
    .login-box input[type="text"], .login-box input[type="password"], .login-box button, .lb-check
    {display:block; margin-bottom:20px; width:100%;}
    .lb-check input {display:none;}
    .lb-check input + label:before {width:14px; height:14px; margin-right:7px; cursor:pointer; position:relative; top:3px;
    border-radius:3px; border:1px solid #111; content:""; background-color:#222; display:inline-block;}
    .lb-check input:checked + label:before {background-color:#e5050b;}
    .lb-soc {margin:20px -20px -20px -20px; padding:20px; background-color:#282828; text-align:center;}
    .lb-soc a {display:inline-block; margin:10px 3px 0 3px; vertical-align:top;}
    .lb-soc img {display:block; width:30px;}
    
    
    /* GO TOP BUTTON */
    #gotop{position:fixed; width:40px; height:40px; line-height:36px; right:10px; bottom:10px; cursor:pointer; font-size:20px;
    z-index:9998; display:none; opacity:0.7; background-color:#000; color:#FFF; border-radius:0%; text-align:center;}
    
    
    
    /* ADAPTIVE
    ----------------------------------------------- */
    .btn-menu {display:none;}
    .side-panel {width:260px; height:100%; overflow-x:hidden; overflow-y:auto; background-color:#444;
    padding:0 10px; z-index:888; position:fixed; left:-260px; top:0; transition:left .4s; -webkit-transition:left .4s;}
    .side-panel.active {left:0;}
    .close-overlay {width:100%; height:100%; background-color:rgba(0,0,0,0.8);
    position:fixed; left:0; top:0; z-index:887; display:none;}
    .side-panel a {display:block; padding:10px 50px 10px 0; color:#FFF; font-size:14px;
    color:#FFF; border-bottom:1px solid #111;}
    .side-panel li {position:relative; color:#FFF;}
    .side-panel li span {position:absolute; right:10px; top:10px; opacity:0.8;}
    
    
    @media screen and (max-width: 1220px) {
    .center {max-width:1000px;}
    .thumb {width:33.33%;}
    .search-box {position:static; float:left; margin-left:0;}
    
    .f-fav, .btn-scr, .btn-dl, .f-time, .f-views {margin:0 0 0 10px;}
    }
    
    @media screen and (max-width: 950px) {
    .center {max-width:768px;}
    .search-box {width:250px;}
    .btns-log a, .h-menu, .side {display:none;}
    .sorter {float:right; margin-right:0;}
    .main {width:100%; padding-right:0;}
    .counter {position:static; margin:10px 0 0 0;}
    
    .btn-menu {background-color:#e20a16; color:#fff; cursor:pointer; display:block; float:left;
    width:50px; height:50px; line-height:50px; text-align:center; font-size:18px;}
    }
    
    @media screen and (max-width: 760px) {
    .center {max-width:640px;}
    .thumb {width:50%;}
    .h-one {height:100px; position:relative;}
    .search-box {width:auto; float:none; margin-top:0; position:absolute; top:60px; left:2010px; right:2010px;}
    .search-field input, .search-field input:focus {height:30px; line-height:30px;}
    .search-box button {width:30px; height:30px !important; line-height:30px !important;}
    .site-desc h1, .site-desc h2, .site-desc h3 {font-size:18px;}
    
    .ac-protect {margin-top:0px;}
    .comments-tree-list .comments-tree-list {padding-left:0px !important;}
    .comments-tree-list .comments-tree-list:before {display:none;}
    .mass_comments_action {display:none;}
    .sub-title h1 {font-size:18px; line-height:24px;}
    }
    
    @media screen and (max-width: 590px) {
    .center {max-width:480px;}
    
    .full-in h1, .rels-t {font-size:18px;}
    .full-meta {text-align:center;}
    .f-rate {float:none; margin:0 auto 10px auto;}
    .f-fav, .btn-scr, .btn-dl, .f-time, .f-views {float:none; margin:0 5px; line-height:20px; display:inline-block; vertical-align:top;}
    
    .video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame {height:300px;}
    
    .ac-soc {position:static;}
    .ac-inputs input {width:100%; margin-top:10px;}
    .ac-protect {width:100%; float:none; margin:0;}
    .ui-dialog {width:100% !important;}
    .upop-left, .upop-right {float:none !important; width:100% !important; margin:0; padding:0 20px;}
    .upop-left {margin-bottom:10px; text-align:center;}
    .ui-dialog-buttonset button {display:block; margin:0 0 5px 0; width:100%;}
    #dofullsearch, #searchsuggestions span.seperator {display:none !important;}
    .attach .download-link {margin:0 -15px 0 0; float:none; display:block; padding:0 10px;}
    .attach-info {float:none;}
    }
    
    @media screen and (max-width: 470px) {
    .center2 {max-width:320px;}
    .show-login {padding:0 5px; font-size:12px; max-width:60px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
    .logo {width:240px; overflow:hidden; margin:0;}
    .thumb {width:100%;}
    .site-desc {display:none;}
    
    .add-comm-btn {padding:0 10px;}
    .comms-title2 {text-align:center; display:block !important;}
    
    .video-box embed, .video-box object, .video-box video, .video-box iframe, .video-box frame {height:250px;}
    }
    
    
    .instagram-media, .twitter-tweet {display: inline-block !important;}
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    



    Код:
    <!DOCTYPE html>
    <html lang="ru">
    <head>
        {headers}
         <meta name="viewport" content="width=device-width, initial-scale=1.0" />
          <link rel="shortcut icon" href="{THEME}/images/favicon.png" />
          <link href="{THEME}/style/styles4.css" type="text/css" rel="stylesheet" />
          <link href="{THEME}/style/engine.css" type="text/css" rel="stylesheet" />
          <!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
        <link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
    </head>
    
    <body>
    
    <div class="wrap">
    
        <div class="block center">
        
            <header class="header">
                <div class="h-one clearfix">
                    <a href="/" class="logo" title="На главную"><img src="{THEME}/images/logo.png" alt="sitename" /></a>
                    <div class="search-box">
                        <form id="quicksearch" method="post">
                            <input type="hidden" name="do" value="search" />
                            <input type="hidden" name="subaction" value="search" />
                            <div class="search-field">
                                <input id="story" name="story" placeholder="Введите слово для поиска" type="text" />
                                <button type="submit"><span class="fa fa-search"></span></button>
                            </div>
                        </form>
                    </div>
                    <div class="btns-log">
                        [group=5]
                        <a href="/?do=register">Регистрация</a>
                        <div class="show-login">Вход</div>
                        [/group]
                        [not-group=5]
                        <a href="/?action=logout">Выйти</a>
                        <div class="show-login">Кабинет</div>
                        [/not-group]
                    </div>
                </div>
                <div class="h-two clearfix">
                    <div class="btn-menu"><span class="fa fa-bars"></span></div>
                    [sort]
                    <div class="sorter icon-r" data-label="Сортировка по">
                        {sort}
                    </div>
                    [/sort]
                    <ul class="h-menu">
                        <li><a href="#">Ссылка</a></li>
                        <li><a href="#">Ссылка</a></li>
                        <li><a href="#">Ссылка</a></li>
                        <li><a href="/favorites/">Ваши закладки<span id="h-fav">0</span></a></li>
                    </ul>
                </div>
            </header>
            
            <!-- END HEADER -->
            
            <div class="cols fx-row">
            
                <main class="main">
                    {info}
                    
                    {include file="main-seo-top.tpl"}
    
                    [aviable=main|cat]
                    <div class="floats clearfix">
                        {content}
                    </div>
                    [/aviable]
                    
                    [not-aviable=main|cat|showfull]
                    <div class="pages clearfix">
                        {content}
                    </div>
                    [/not-aviable]
                    
                    [aviable=showfull]
                    <div class="clearfix">
                        {content}
                    </div>
                    [/aviable]
                    
                </main>
                
                <!-- END MAIN -->
                
                <aside class="side">
                    <nav class="side-box side-nav">
                        <div class="side-bt">Категории</div>
                        <ul class="side-bc">
                            {catmenu}
                        </ul>                                                                                                               
                    </nav>
                    <div class="side-box">
                        <div class="side-bt">Заголовок</div>
                        <div class="side-bc">
                            <img src="{THEME}/images/rkl1.jpg" alt="" />
                        </div>
                    </div>
                </aside>
                
                <!-- END SIDE -->
                
            </div>
            
            <!-- END COLS -->
            
            <footer class="footer">
                <div class="ft-copyr">Powered by <a target="_blank" href="/engine/go.php?url=aHR0cDovL25ld3RlbXBsYXRlcy5ydS8%3D">DataLife Engine</a></div>
                <div class="ft-menu">
                    <a href="#">Ссылка</a>
                    <a href="#">Ссылка</a>
                    <a href="#">Ссылка</a>
                    <a href="#">Ссылка</a>
                    <a href="#">Ссылка</a>
                </div>
                <div class="counter"><img src="{THEME}/images/count.png" alt="" /></div>
            </footer>
            
            <!-- END FOOTER -->
            
        </div>
        
        <!-- END BLOCK -->
    
    </div>
    
    <!-- END WRAP -->
    
    {login} 
    [not-aviable=search]{jsfiles}[/not-aviable]
    <script src="{THEME}/js/libs.js"></script>
    {AJAX}
    
    </body>
    </html>
     
  2. TopicStarter Overlay
    Dayzeek

    Dayzeek Зелёный

    Регистрация:
    8 сен 2020
    Сообщения:
    7
    Лучших ответов:
    0
    Рейтинги:
    +0 / 0 / -0
    Ни кто не в курсе?
     
  3. Пафнутий

    Пафнутий Бывалый

    Регистрация:
    7 май 2020
    Сообщения:
    258
    Лучших ответов:
    3
    Рейтинги:
    +90 / 14 / -0
    Потерто
     
    #3 Пафнутий, 9 ноя 2020
    Последнее редактирование: 12 фев 2022
  4. ekhovan

    ekhovan Бывалый

    Регистрация:
    1 ноя 2019
    Сообщения:
    123
    Лучших ответов:
    0
    Рейтинги:
    +54 / 9 / -0
    Угадай тут по двум кускам кода)

    Слева ведь?

    1. а) Ставишь в main.tpl блок aside перед блоком main. или б) классу .fx-row добавляешь flex-direction: row-reverse;
    Таким образом колонка у тебя переезжает влево.

    2. Поправить отступы. У класса .main меняешь padding-right: 20px; на padding-left.

    Примерно так. На десктопе точно должно взлететь.
     
    #4 ekhovan, 9 ноя 2020
    Последнее редактирование: 10 ноя 2020
    • Нравится Нравится x 1
  5. Boba

    Boba Бывалый

    Регистрация:
    18 апр 2020
    Сообщения:
    490
    Лучших ответов:
    0
    Рейтинги:
    +184 / 44 / -0
    • Смешно Смешно x 1
  6. Boba

    Boba Бывалый

    Регистрация:
    18 апр 2020
    Сообщения:
    490
    Лучших ответов:
    0
    Рейтинги:
    +184 / 44 / -0
    Ты адекватный вообще взял поставил 60 дизов, иди лечись шызик!!
     
    #6 Boba, 10 ноя 2020
    Последнее редактирование: 10 ноя 2020
  7. TopicStarter Overlay
    Dayzeek

    Dayzeek Зелёный

    Регистрация:
    8 сен 2020
    Сообщения:
    7
    Лучших ответов:
    0
    Рейтинги:
    +0 / 0 / -0
    Спасибо. Всё получилось
     
  8. ekhovan

    ekhovan Бывалый

    Регистрация:
    1 ноя 2019
    Сообщения:
    123
    Лучших ответов:
    0
    Рейтинги:
    +54 / 9 / -0
    Dayzeek

    там кстати в медиа есть еще такой кусок
    Код:
    @media screen and (max-width: 950px) {
    .center {max-width:768px;}
    .search-box {width:250px;}
    .btns-log a, .h-menu, .side {display:none;}
    .sorter {float:right; margin-right:0;}
    .main {width:100%; padding-right:0;}
    .counter {position:static; margin:10px 0 0 0;}
    тут собственно новый отступ слева тоже нужно обнулить (заменив правый)
    .main {width:100%; padding-left:0;}
     
    • Нравится Нравится x 1
Яндекс.Метрика