Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OOCSS - SMACSS - BEM

OOCSS - SMACSS - BEM

Prezentace z ostravského srazu Frontendistů 25.4.2014.

Patrik Illy

April 27, 2014
Tweet

More Decks by Patrik Illy

Other Decks in Technology

Transcript

  1. .MEDIA OBJEKT Lorem ipsum dolor sit amet, consectetur adipisicing elit,

    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  2. <div class="media"> <a class="media__img" href=“#"> <img src="" alt=“"> </a> <p

    class="media__body">Lorem ipsum dolor sit amet, consectetur adipisicing elit,sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div>
  3. .media { @extend %u-cf; display: block; } ! .media__img {

    float: left; margin-right: $base-unit; } ! .media__img img { display: block; } ! .media__body { overflow: hidden; }
  4. <div class="media"> ! <a class="media__img media__img--rev" href=“#"> <img src="" alt=“">

    </a> ! <p class="media__body">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> </div>
  5. <div class="panel"> <div class="panel__heading"> <h3 class="panel__title">Panel title</h3> </div> <div class="panel__body">

    Panel content </div> </div> ! <div class="panel panel--default">...</div> <div class="panel panel--primary">...</div>