ildi-wp/dev/scss/components/_home-loop.scss
2018-08-15 08:11:52 -05:00

52 lines
862 B
SCSS

.home-loop {
position: relative;
overflow: hidden;
a {
display: block;
width: 100%;
min-height: 250px;
text-decoration: none;
&::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
background-color: $di-purple;
background-image: linear-gradient(-110deg, $di-orange, $di-orange-light);
content: '';
}
}
&:nth-of-type(even) {
a {
&::before {
background-color: $di-orange;
background-image: linear-gradient(110deg, $di-purple, $di-purple-light);
}
}
}
h1 {
margin: 0;
background-color: rgba($black, 0.15);
padding: $gutter;
color: $white;
}
img {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: -1;
width: 100%;
height: auto;
}
}