• https://ibb.co/2jQFHzQ
    https://ibb.co/w4TmjJB
    monitor = 1280x1024px
    demo-site – https://zdorov.ozozhe.ru/1173.html

    EN:

    in old browsers
    Opera 36.0.2130.80,
    Chromium 39.0.2150.5,
    Hrome 42.0.2311.152,

    the sidebar becomes not on the side but under the content, and both the sidebar and the content are 100% wide.
    why?
    browsers don’t understand completely non-standard responsive code.

    Firefox 52.9.0 and Maxthon 5.2.3.3000 – understand.

    in the firefox inspector the width of the columns div.content-area and aside.sidebar is not displayed as usual. but adaptability works!
    for the adaptability of the columns are responsible:
    <div id="primary" class="content-area">
    and
    <aside id="secondary" class="sidebar widget-area clearfix">

    perhaps browsers don’t understand the lines:

    grid-row-start:
    grid-column-start:
    order: 
    (-ms-high-contrast: none), (-ms-high-contrast: active)

    * * *

    RU:

    в старых браузерах
    Opera 36.0.2130.80,
    Сhromium 39.0.2150.5,
    Hrome 42.0.2311.152

    sidebar становится не сбоку а под контентом, причём и sidebar и контент width 100%.
    почему?
    браузеры не понимают абсолютно нестандартный код адаптивности.

    Firefox 52.9.0 и Maxthon 5.2.3.3000 – понимают.

    в инспекторе firefox не отображается как обычно ширина колонок div.content-area и aside.sidebar. но адаптивность работает!
    за адаптивность колонок отвечают:
    <div id="primary" class="content-area">
    и
    <aside id="secondary" class="sidebar widget-area clearfix">

    возможно браузеры не понимают строки:

    grid-row-start:
    grid-column-start:
    order: 
    (-ms-high-contrast: none), (-ms-high-contrast: active)
    • This topic was modified 3 years, 6 months ago by v0van.
    • This topic was modified 3 years, 6 months ago by v0van.
    • This topic was modified 3 years, 6 months ago by v0van.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter v0van

    (@v0van)

    https://ibb.co/B6hXhVk
    https://ibb.co/X5NHxCN
    EN: what the Firefox inspector shows:
    RU: что показывает инспектор Firefox
    :
    <div id="primary" class="content-area">
    /wp-content/themes/salal/style.css?ver=1.2.9 – 2853 – @min-width: 992px

    .content-area {
        box-sizing: border-box;
        grid-row-start: 2;
        grid-column-start: 1;
        min-width: 0;
    }

    <aside id="secondary" class="sidebar widget-area clearfix">
    /wp-content/themes/salal/style.css?ver=1.2.9 – 2860 – @min-width: 992px

    .sidebar {
        grid-row-start: 2;
        grid-column-start: 2;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: none;
        min-width: 0;
    }
    • This reply was modified 3 years, 6 months ago by v0van.
    Thread Starter v0van

    (@v0van)

    EN: how adaptability is made in the theme:
    RU: как сделана адаптивность в теме:

    /wp-content/themes/salal/style.css
    2853

        .content-area {
            box-sizing: border-box;
            grid-row-start: 2;
            grid-column-start: 1;
            min-width: 0;
        }

    3139

    /* Fallback for Internet Explorer */
    @media only screen and (min-width: 768px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        .content-area {
            width: 70%;
            box-sizing: border-box;
            padding-right: 0.75rem;
        }

    3155

    /* Fallback for Internet Explorer */
    @media only screen and (min-width: 768px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        .sidebar {
            width: 30%;
            box-sizing: border-box;
            padding-left: 0.75rem;
        }

    3169

    /*--------------------------------------------------------------
    # - Sidebar Position
    --------------------------------------------------------------*/
    @media only screen and (min-width: 992px) {
        @supports (display: grid) {
            /* Sidebar Left Layout */
            .sidebar-left .site-content {
                grid-template-columns: 3fr 7fr;
            }
    
            .sidebar-left .content-area {
                grid-column-start: 2;
            }
    
            .sidebar-left .sidebar {
                grid-column-start: 1;
            }
        }
    }
    
    /* CSS Grid Fallback for Internet Explorer */
    @media only screen and (min-width: 992px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
        /* Sidebar Left Layout */
        .sidebar-left .content-area {
            order: 2;
            padding-right: 0;
            padding-left: 0.75rem;
        }
    
        .sidebar-left .sidebar {
            order: 1;
            padding-left: 0;
            padding-right: 0.75rem;
        }
    }
    Thread Starter v0van

    (@v0van)

    EN: in the simplest case – here is my generic working code:
    RU: в самом простом случае – вот мой универсальный работающий код:

    .column {
        padding: 0px;
        margin: 0px;        
    }
    @media screen and (min-width: 720px) { 
        .column1 {
            display: inline;
            float: left;
            width: 30%;
        }
        .column2 {
            display: inline;
            float: left;
            width: 70%; 
        }           
    }
    <div class="column column1">
    ...
    </div>
    <div class="column column2">
    ...
    </div>
    • This reply was modified 3 years, 6 months ago by v0van.
    Thread Starter v0van

    (@v0van)

    EN: Hooray! I figured out how to make it work. float: left; not needed.
    RU: ура! я разобрался как сделать чтобы работало. float: left; не нужен.

    3140

    /* Fallback for Internet Explorer */
    @media /* only */ screen and (min-width: 768px) /* and (-ms-high-contrast: none), (-ms-high-contrast: active) */ {
     
        .content-area {
            width: 70%; display: inline; /* float: left; */
            box-sizing: border-box;
            padding-right: 0.75rem;
        }
     
        .sidebar {
            width: 30%; display: inline; /* float: left; */
            box-sizing: border-box;
            padding-left: 0.75rem;
        }
    Theme Author Rough Pixels

    (@roughpixels)

    I will have to test this on on my end with a test site.
    However, I am currently working on an update for this theme–including the premium version.

    Best Regards,
    Andre

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Older browsers don’t understand 70-30% column responsiveness sidebar’ is closed to new replies.