On Github Clevis / Skoleni-frontend
dnes s vámi vaří z vody: Matěj Šimek
build/ docs/ img/ js/ libs/ sass/ comps/ parts/ screen.sass index.html
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="libs/jquery/jquery.min.js"><\/script>')</script>
Authors must not use elements, attributes, or attribute values for purposes other than their appropriate intended semantic purpose, as doing so prevents software from correctly processing the page. @WHATWG
Pojmenování tříd:
authors are encouraged to use values that describe the nature of the content, rather than values that describe the desired presentation of the content. @WHATWG
Šílenci v Yahoo
<div class="Bfc M-10"> <div class="Fl-start Mend-10 W-25">column 1</div> <div class="Bfc">column 2</div> </div>
Ti ostatní
<div class="content-wrap"> <aside class="sidebar">column 1</aside> <section class="content">column 2</section> </div>
schema.org: Google výsledky (people, events, reviews, products, recipes and breadcrumb navigations)
OpenGraph: Facebook
Klasické html
<div> <h1>Avatar</h1> <span>Director: James Cameron (born August 16, 1954)</span> <span>Science fiction</span> <a href="../movies/avatar-theatrical-trailer.html">Trailer</a> </div>
Metadata schema.org
<div itemscope itemtype ="http://schema.org/Movie"> <h1 itemprop="name">Avatar</h1> <div itemprop="director" itemscope itemtype="http://schema.org/Person"> Director: <span itemprop="name">James Cameron</span> (born <span itemprop="birthDate">August 16, 1954)</span> </div> <span itemprop="genre">Science fiction</span> <a href="../movies/avatar-theatrical-trailer.html" itemprop="trailer">Trailer</a> </div>
Getting started with schema.org, Google Structured Data Testing Tool
Skvělá HTML5 dokumentace
Příklad
// Generation of classes for image sprites based on $count @Mobilove $i: $count @while $i > 0 ._i#{$i} background-position: (-$i*100 + 100%) 0 $i: $i - 1
.performers ._i7 {background-position:-600% 0} .performers ._i6 {background-position:-500% 0} .performers ._i5 {background-position:-400% 0} .performers ._i4 {background-position:-300% 0} .performers ._i3 {background-position:-200% 0} .performers ._i2 {background-position:-100% 0} .performers ._i1 {background-position:0% 0}
Dokumentování CSS zlepšuje čitelnost a udržitelnost kódu
/* Provides extra visual weight and identifies the primary action in a set of buttons. <button class="btn primary">Primary</button> */ .btn.primary { background: steelblue; color: snow; border: 2px outset steelblue; }
// A button suitable for giving stars to someone. // // :hover - Subtle hover highlight. // .stars-given - A highlight indicating you've already given a star. // .stars-given:hover - Subtle hover highlight on top of stars-given styling. // .disabled - Dims the button to indicate it cannot be used. // // Styleguide 2.1.3. a.button.star{ ... }
Kompilace, minifikace a spojení souborů, sledování změn, servírování souborů, ...
GRUNT - The JavaScript Task Runner
Frontbase - a starter fuel for web projects
Produktivní tipy & debug - názorná ukázka…