Posted By

FrederickWeiss on 03/23/14


Tagged

SASS mixin


Versions (?)

Box Sizing


 / Published in: CSS
 

  1. SASS /////////////////////////////////////
  2.  
  3.  
  4. @mixin box-sizing($box-model) {
  5. -webkit-box-sizing: $box-model; // Safari <= 5
  6. -moz-box-sizing: $box-model; // Firefox <= 19
  7. box-sizing: $box-model;
  8. }
  9.  
  10.  
  11.  
  12.  
  13. USAGE /////////////////////////////////////
  14.  
  15.  
  16. *,
  17. *:after,
  18. *:before {
  19. @include box-sizing(border-box);
  20. }

Report this snippet  

You need to login to post a comment.