Sha256: cb32c518a5240a197ade91c8718d3e75bd5b0237467d7075d80734d9fb351218
Contents?: true
Size: 1.6 KB
Versions: 3
Compression:
Stored size: 1.6 KB
Contents
.post-card { display: block; position: relative; width: 100%; min-height: 250px; border-radius: 4px; overflow: hidden; background-color: $bg-color; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); margin-bottom: 2.25rem; // don't use % value see more: https://github.com/philipwalton/flexbugs/issues/86 border-bottom: 0; transition: box-shadow .25s ease; &:hover, &:focus { border-bottom: 0; box-shadow: 0 2px 40px 0 hsla(232, 8%, 63%, .3); } @include breakpoint($md) { width: 48.4375%; margin-right: 3.125%; &:last-of-type, &:nth-child(2n+2) { margin-right: 0; } } @include breakpoint($xl) { width: 31.25%; margin-right: 3.125%; &:nth-child(2n+2) { margin-right: 3.125%; } &:last-of-type, &:nth-child(3n+3) { margin-right: 0; } } &__label { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 2; } &__inner { display: block; position: relative; padding: 1.875rem 1.25rem 0.625rem; width: 100%; color: $grey; border-bottom: 0; &:focus, &:hover { color: $grey; border-bottom: 0; } } &__header { margin-bottom: 0.75rem; } &__meta { font-size: 0.875rem; } } .post-card__thumb { margin: 0; background: $bg-color; position: relative; overflow: hidden; &::after { content: ""; display: block; height: 0; width: 100%; // 16:9 = 56.25% = calc(9 / 16 * 100%) padding-bottom: 56.25%; } > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll-sleek-0.1.9 | _sass/components/_card.scss |
jekyll-sleek-0.1.8 | _sass/components/_card.scss |
jekyll-sleek-0.1.7 | _sass/components/_card.scss |