Advertisement
Guest User

Untitled

a guest
Jul 13th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.85 KB | None | 0 0
  1. /* landing section */
  2.  
  3. $landing-overlay-color: $citrus-orange;
  4.  
  5. #landing {
  6.   @include set-size(100%,100%);
  7.  
  8.   padding: 0;
  9.   margin: 0;
  10. }
  11.  
  12. @mixin landing-background($image-src) {
  13.   @include set-size(100%,100%);
  14.   @include background-size(cover);
  15.   background-image: linear-gradient(
  16.                       rgba($landing-overlay-color, 0.3),
  17.                       rgba($landing-overlay-color, 0.3)),
  18.                       image-url($image-src);
  19.   background-repeat: no-repeat;
  20.   background-position: center;
  21.  
  22.   position: fixed;
  23.   z-index: -9999;
  24.   /* prevent content from dragging background around */
  25.   overflow: hidden;
  26. }
  27. @media (min-width: 321px) {
  28.   #landing-bg {
  29.     @include landing-background('ucr-campus.jpg');
  30.   }
  31. }
  32.  
  33. @media (max-width: 320px) {
  34. #landing-bg {
  35.     @include landing-background('small-ucr-campus.jpg');
  36.   }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement