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

Bridging Design Gaps with Sass + Compass

Design Orlando
October 09, 2012

Bridging Design Gaps with Sass + Compass

Nick Walsh discussing the last ten percent of projects and how to use Sass and Compass to aid design.

Design Orlando

October 09, 2012
Tweet

More Decks by Design Orlando

Other Decks in Design

Transcript

  1. red() green() blue() mix() hue() saturation() lightness() adjust-hue() lighten() darken()

    saturate() desaturate() grayscale() complement() invert()
  2. red() green() blue() mix() hue() saturation() lightness() adjust-hue() lighten() darken()

    saturate() desaturate() grayscale() complement() invert()
  3. a { color: $color-link; &:hover, &:focus { color: lighten($color-link, 20%);

    } &:active { color: darken($color-link, 20%); } }
  4. a { color: $color-link; &:hover, &:focus { color: lighten($color-link, 20%);

    } &:active { color: darken($color-link, 20%); } }
  5. a { color: $color-link; &:hover, &:focus { color: lighten($color-link, 20%);

    } &:active { color: darken($color-link, 20%); } }
  6. @mixin respond-to($x) { @media (min-width: $x) { @content; } }

    aside { background: #333; @include respond-to(700px) { float: right; width: 30%; } }
  7. @mixin respond-to($x) { @media (min-width: $x) { @content; } }

    aside { background: #333; @include respond-to(700px) { float: right; width: 30%; } }
  8. @mixin respond-to($x) { @media (min-width: $x) { @content; } }

    aside { background: #333; @include respond-to(700px) { float: right; width: 30%; } }
  9. i { background: $icons; display: block; text-indent: -9999px; @media (-webkit-min-device-pixel-ratio:

    1.5) { @include background-size(100px 200px); background: $icons-hd; } }
  10. i { background: $icons; display: block; text-indent: -9999px; @media (-webkit-min-device-pixel-ratio:

    1.5) { @include background-size(100px 200px); background: $icons-hd; } }
  11. i { background: $icons; display: block; text-indent: -9999px; @media (-webkit-min-device-pixel-ratio:

    1.5) { @include background-size(100px 200px); background: $icons-hd; } }
  12. i { background: $icons; display: block; text-indent: -9999px; @media (-webkit-min-device-pixel-ratio:

    1.5) { @include background-size(100px 200px); background: $icons-hd; } }
  13. .icn-search { ... @media (-webkit-min-device-pixel-ratio: 1.5) { background-position: sprite-position($icons-hd, search);

    &:hover { background-position: sprite-position($icons-hd, search-active) } } }
  14. h1 { @include adjust-font-size-to(50px); } h2 { @include adjust-font-size-to(28px); }

    blockquote { @include adjust-font-size-to(20px); background: #ccc; }
  15. p { @include leader(1); @include trailer(1); } h1 { @include

    adjust-font-size-to(50px); @include leader(1, 50px); @include trailer(1, 50px); }