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

Frontent Development voor Programmeurs

Frontent Development voor Programmeurs

Presentatie voor gastcollege aan 1ste jaars studenten Applicatie Ontwikkeling

Babs Gösgens

April 01, 2014
Tweet

More Decks by Babs Gösgens

Other Decks in Programming

Transcript

  1. Specificity • Universal selectors • Tag (type) selectors • Class

    selectors • A ribute selectors • Pseudo-classes & Pseudo-elements • ID selectors • Inline styles * a, div, article .block [type=“checkbox”] :first-child, ::before #mainmenu style=“color: #f00;” bad!
  2. :{}

  3. :{}

  4. :{}

  5. :{}

  6. :{}

  7. <?php $array = array(‘Rood’ , ’Wit’ , ‘Blauw’); ?> !

    <?php foreach ($array as $color) { ?> <div class=“vlag<?php echo $color; ?>”></div> <?php } ?>
  8. Sources • h p://bem.info/ • h p://bradfrostweb.com/blog/post/atomic-web-design/ • h p://clubmate.fi/oocss-acss-bem-smacss-what-are-they-

    what-should-i-use/ • h p://coding.smashingmagazine.com/2011/12/12/an- introduction-to-object-oriented-css-oocss/ • h p://csswizardry.com/2011/09/writing-efficient-css- selectors/ • h p://csswizardry.com/2013/01/mindbemding-ge ing- your-head-round-bem-syntax/ • h p://hugogiraudel.com/ • h p://nicoespeon.com/en/2013/05/dive-into-oocss/ • h p://nicolasgallagher.com/about-html-semantics-front- end-architecture/ • h p://rhodesmill.org/brandon/2011/concentric-css/ • h p://sass-lang.com/ • h p://smacss.com/ • h p://snook.ca/ • h p://www.alwaystwisted.com/post.php?s=2014-02-27- even-easier-bem-ing-with-sass-33 • h p://www.bre jankord.com/2013/02/09/thoughts-on- semantic-html-class-names-and-maintainability/ • h p://www.mathayward.com/modular-css-with-sass- and-bem/ • h p://www.sitepoint.com/architecture-sass-project/ • h p://www.sitepoint.com/css-sass-styleguide/ • h p://www.slideshare.net/maxdesign/css-oocss-and- smacss • h ps://github.com/necolas/idiomatic-css • h ps://github.com/stubbornella/oocss/wiki
 h p://en.wikipedia.org/wiki/ Comparison_of_web_template_engines
 h p://alistapart.com/article/why-sass