Skip to content

Instantly share code, notes, and snippets.

@diamondo25
Created October 21, 2015 13:05
Show Gist options
  • Save diamondo25/615536f414ef6b69e2e7 to your computer and use it in GitHub Desktop.
Save diamondo25/615536f414ef6b69e2e7 to your computer and use it in GitHub Desktop.
CSS bug
.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