Manutenção e Refatoração de CSS

Lucas Mazza
November 23, 2013

Manutenção e Refatoração de CSS

Lucas Mazza

November 23, 2013

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

98 slides
  1. Código Código Código Código Código Código Código Código Código Código

    Código Código Código Código Código Código Código Código
  2. .product-list { } .product-list > li { } .product-list li.highlight

    { } .product-list { } .product-list-item { } .higlighted-list-item { } ✗ ✓
  3. <!-- app/views/events/_calendar.html.erb --> <div class='calendar'> <h2 class='calendar-heading'> <%= calendar.month %>

    </h2> ! <ul> <% calendar.days.each do |day| %> <li class='calendar-slot'><%= day %></li> <% end %> </ul> </div> ERB
  4. // ============================================================== // Profile card to display the players in

    the leaderboard. // // Supports an avatar wrapper, follower count and the user name. // Note that the 'avatar' and the 'follower count' are wrapped // inside an 'a' tag so everything will be clickable. Descrição
  5. // <div class='profile-card'> // <a href='#' class='profile-card-avatar'> // <img class='profile-card-avatar'

    width='120' height='120'> // <span class='profile-card-follower-count'>13220</span> // <p class='profile-card-star'>@HackerNewsOnion</p> // </a> // <a href='#' class='profile-card-name'>Hacker News Onion</a> // </div> // ============================================================== Exemplos
  6. Modificadores // ============================================================= // A full fledged replacement for '<select>'

    using a list of // unordered items. // // Modifiers: // // :hover - Subtle hover highlight. // .expanded - Expanded state, displaying the choices list. // .right-aligned - Aligns the 'toggle' icon to the right. // ============================================================= ! // Expanded state for the 'combo-selector'. // ============================================================== .combo-selector.expanded { }
  7. Kent Beck @ Smalltalk Best Practice Patterns “Code doesn't lie.

    If you're not listening, you won't hear the truths it tells.”

More Decks by Lucas Mazza

Other Decks in Technology