Sha256: 2e6c9b6cc7b1b4a921526258f1de056fce7c8496b2896cc0cf95698a3f683432
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
// Responsive Photosets // // Based heavily on/stolen from: https://medium.com/coding-design/responsive-photosets-7742e6f93d9e .photoset { overflow: hidden; width: 100%; .photoset-row { margin-bottom: .5rem; overflow: hidden; width: 150%; &:last-child { margin: 0; } } .photoset-item { display: block; float: left; margin: 0 .25rem; &:first-child { margin-left: 0 !important; } &:last-child { margin-right: 0 !important; } a { background-position: center center; background-size: cover; border: 0; display: block; position: relative; width: 100%; height: 100%; } } figure { margin: 0; overflow: hidden; position: relative; display: block; width: auto; height: 100%; } figcaption { background-color: rgba(0, 0, 0, .49); box-sizing: border-box; font-size: .75rem; padding: .2rem 1rem; position: absolute; bottom: 0; left: 0; width: 100%; color: #fff; text-align: left; } img { display: block; max-width: 100%; } @media screen and (min-width: 480px) and (max-width: 768px) { figcaption { display: none; } } @media screen and (max-width: 480px) { .photoset-row { margin-bottom: 1px; } .photoset-item { margin-right: 1px; margin-left: 0px; } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plotline-0.1.1 | app/assets/stylesheets/plotline/photosets.scss |
plotline-0.1.0 | app/assets/stylesheets/plotline/photosets.scss |