Posted By

madr on 02/09/11


Tagged

css textmate SASS


Versions (?)

relative-container


 / Published in: Other
 

  1. // use for containers with absolutely positioned children
  2. @mixin relative-container ($padding-top: 0, $padding-bottom: 0) {
  3. position: relative;
  4.  
  5. @if $padding-top != 0 {
  6. padding-top: $padding-top;
  7. }
  8.  
  9. @if $padding-bottom != 0 {
  10. padding-bottom: $padding-bottom;
  11. }
  12. }

Report this snippet  

You need to login to post a comment.