Skip to content

Instantly share code, notes, and snippets.

@jdcauley
Created February 12, 2015 19:11
Show Gist options
  • Save jdcauley/17560f2caab4087fb070 to your computer and use it in GitHub Desktop.
Save jdcauley/17560f2caab4087fb070 to your computer and use it in GitHub Desktop.
.listing-img-inner {
float: left;
display: block;
position: relative;
width: 100%;
// height: 100px;
background: @stone-blue;
overflow: hidden;
.small-up(@screen-tablet {
float: none;
width: 100%;
height: 270px;
});
.medium-up(@screen-tablet {
height: 169px;
});
.desktop(@screen-desktop {
height: 206px;
});
img {
position: relative;
height: auto;
bottom: 0;
width: 100%;
left: 0;
margin-left: 0;
.small-up(@screen-tablet {
bottom: 0;
left: 0;
// width: 380px;
margin-left: 0;
});
}
&:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 22px;
.opacity(0);
z-index: 1;
.gradients > .global;
.small-up(@screen-tablet {
.opacity(.75);
});
}
.register-cta {
position: absolute;
overflow: hidden;
width: 100%;
height: 147px;
left: -100%;
padding: 0;
color: @white;
text-align: center;
z-index: 5;
.opacity(0);
.transition(all, .4s, ease);
.gradients > .global;
.desktop(@screen-desktop {
height: 184px;
});
p {
display: inline-block;
color: @white;
padding-bottom: 8px;
margin-top: 33%;
margin-left: -155%;
.transition(all, .4s, ease);
font-size: 18px;
.fonts > .header-serif;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment