@import "../node_modules/bootstrap/scss/bootstrap.scss"; body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } code { font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; } a { color: black; } %link-extended { &::after { position: absolute; top: 0; bottom: 0; right: 0; left: 0; content: ""; z-index: 10; } } .app { margin: 100px auto; } .app__header { margin-bottom: 5rem; text-align: center; } .gallery { list-style: none; padding: 0; margin: 0 auto; display: flex; margin-left: -1rem; flex-wrap: wrap; } .gallery__entry { &::after { padding-bottom: 56.25%; content: ""; } width: calc(33.33% - 1rem); margin-left: 1rem; margin-bottom: 1rem; position: relative; transform: scale(1) rotate(0); transition: 150ms ease-in-out transform; &:hover { transform: scale(1.02) rotate(0.3deg); } } .gallery__entry--action { background-color: #ddd; display: flex; align-items: center; justify-content: center; font-weight: bold; } .album { position: relative; display: flex; flex-direction: column-reverse; } .album__thumbnail, .photo__thumbnail { position: absolute; z-index: -1; width: 100%; background-color: #ddd; } .album__header { bottom: 0; background-color: rgba(black, 0.5); padding: 1rem; text-align: center; z-index: 1; } .album__title { font-weight: bold; color: white; text-shadow: 0 0 2px rgba(black, 0.5); @extend %link-extended; &:hover { color: white; } } .photo__photo { max-width: 100%; } .actions { list-style: none; margin: 0; padding: 0; } .actions__action { margin-right: .5rem; display: inline-block; } @include media-breakpoint-down(sm) { .gallery__entry { width: 100% } }