Created
October 21, 2015 13:05
-
-
Save diamondo25/615536f414ef6b69e2e7 to your computer and use it in GitHub Desktop.
CSS bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.featured-product { | |
margin-bottom: 20px; | |
.featured-product-image { | |
background-position: center center; | |
background-repeat: no-repeat; | |
background-size: cover; | |
height: 378px; | |
position: relative; | |
/* | |
&:after { | |
display: block; | |
content: ""; | |
width: 100%; | |
height: 100%; | |
top: 0; | |
left: 0; | |
position: absolute; | |
background: linear-gradient(45deg, rgba(#2e81d1, 0.15), rgba(#d1582e, 0.15)); | |
} | |
*/ | |
} | |
&.small { | |
@media (min-width: $screen-md) and (max-width: $screen-lg) { | |
.featured-product-text { | |
font-size: 12px; | |
} | |
} | |
} | |
.featured-product-text { | |
@include prefix(box-sizing, border-box); | |
background-color: white; | |
color: $blue; | |
font-family: $sofia-light; | |
font-size: 16px; | |
height: 172px; | |
padding: 40px 20px 40px; | |
position: relative; | |
text-align: center; | |
text-transform: uppercase; | |
.see-all-container { | |
position: absolute; | |
left: 0; | |
right: 0; | |
bottom: 40px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment