lbry.tech/.vuepress/scss/components/_feature-links.scss
2018-05-29 10:23:44 -05:00

57 lines
1 KiB
SCSS

.feature-links {
list-style-type: none;
padding-top: 0.5rem;
}
.feature-link {
width: 320px; min-height: 135px;
background-color: $white;
border: 1px solid rgba($black, 0.1);
border-radius: 3px;
display: inline-block;
margin-bottom: 1rem;
position: relative;
vertical-align: top;
> div:first-of-type {
top: 85px; left: 5%;
position: relative;
width: 90%;
z-index: 1;
}
&:not(:last-of-type) {
margin-right: 1rem;
}
}
.feature-link__title {
background-color: $white;
border: 1px solid rgba($black, 0.1);
box-decoration-break: clone;
display: inline;
font-size: 1.15rem;
line-height: 1.7;
padding: 0.25rem 0.5rem;
position: relative;
}
.feature-link__background {
width: calc(100% + 2px); height: 100px;
top: -1px; left: -1px;
background-color: $teal;
border-top-right-radius: 3px;
border-top-left-radius: 3px;
position: absolute;
z-index: 0;
img {
width: 100%; height: 100%;
object-fit: cover;
object-position: center;
}
}