app/assets/stylesheets/layout/_image_background.scss in patterns-0.1.1 vs app/assets/stylesheets/layout/_image_background.scss in patterns-0.1.2
- old
+ new
@@ -4,6 +4,25 @@
background: $image_url no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
+}
+
+@mixin image_background_contaner {
+ position:fixed;
+ top:-50%;
+ left:-50%;
+ width:200%;
+ height:200%;
+
+ & > img {
+ position:absolute;
+ top:0;
+ left:0;
+ right:0;
+ bottom:0;
+ margin:auto;
+ min-width:50%;
+ min-height:50%;
+ }
}
\ No newline at end of file