sass - Safari flex-box -


trying make responsive layout app flexbox. flexbox working incorrect @ safari. when direction row, working right. column layout broken. having not idea why. tried changing prefixes.(not autoprefix problem)

at chrome: gif

at safari: gif

sass:

$right-section-color: #98ee99 $left-section-color: fade_out(grey,0.8) $font-color: fade_out(black,0.3)  .allsection   width: 100%   color: $font-color   .banner     @extend .bannersection   .section     display: flex     justify-content: center     flex-direction: row     span       margin: auto       padding: 0       flex: 1     .imagewithtext       flex: 1       margin: auto       display: flex       flex-direction: column       text-align: center       img         max-width: 10em         height: 100%         width: 100%         margin: auto     .text       flex: 1       margin: auto   @for $i 1 through 5     @if($i % 2 == 0)       .section:nth-child(#{$i})         background-color: $left-section-color         @media #{$small-and-down}           flex-direction: column     @else       .section:nth-child(#{$i})         background-color: $right-section-color         @media #{$small-and-down}           flex-direction: column-reverse 

jsx:

<element name="allsection" classname="allsection">     <div classname="banner">         <h3>Диспоузер status це</h3>     </div>     <div classname="section">         <div classname="imagewithtext">             <img src={ecologo} id='ecologo' alt="eco logo" />             <span>Екологічно</span>         </div>         <div classname="text">             <span>Використання подрібнювача скорочує обсяг перевезеного на звалища сміття. Крім того, харчові                             відходи є сировиною для виробництва біогазу. </span>         </div>     </div>     <div classname="section">         <div classname="text">             <span>Подрібнювачі миттєво усувають харчові відходи c кухні. Тепер не потрібно зберігати їх в сміттєвому відрі - джерелі неприємних запахів і бактерій.</span>         </div>         <div classname="imagewithtext">             <img src={wastedfood} alt="wasted food" />             <span>Гігієнічно</span>         </div>     </div>     <div classname="section">         <div classname="imagewithtext">             <img src={kitchenpicture} alt="kitchen washer" />             <span>Практично</span>         </div>         <div classname="text">             <span>Подрібнювач акуратно і легко встановлюється під раковину і не вимагає додаткових площ на                             кухні. </span>         </div>     </div>     <div classname="section">         <div classname="text">             <span>Подрібнювач абсолютно безпечний для дітей і дорослих. Всередині немає ножів і шнеків.                             Додаткову електробезпеку забезпечує пневмовимикач. </span>         </div>         <div classname="imagewithtext">             <img src={safetyicon} alt="wasted food" />             <span>Безпечно</span>         </div>     </div> </element>       

app created react-create-app, have autoprefixer. how can fix layout in safari?

update:

when setting width 50% of element want layout, working. how can make flex: 1?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -