diff --git a/resources/assets/sass/_grid.scss b/resources/assets/sass/_grid.scss index 9411db17b..e7ca26860 100644 --- a/resources/assets/sass/_grid.scss +++ b/resources/assets/sass/_grid.scss @@ -204,18 +204,22 @@ div[class^="col-"] img { display: flex; flex-direction: column; border: 1px solid #ddd; + margin-bottom: $-l; + border-radius: 4px; + overflow: hidden; min-width: 100px; + color: $text-dark; + transition: border-color ease-in-out 120ms, box-shadow ease-in-out 120ms; + &:hover { + color: $text-dark; + text-decoration: none; + box-shadow: $bs-card; + } h2 { width: 100%; font-size: 1.5em; margin: 0 0 10px; } - h2 a { - display: block; - width: 100%; - line-height: 1.2; - text-decoration: none; - } p { font-size: .85em; margin: 0; @@ -234,11 +238,6 @@ div[class^="col-"] img { } } -.book-grid-item .grid-card-content h2 a { - color: $color-book; - fill: $color-book; -} - .bookshelf-grid-item .grid-card-content h2 a { color: $color-bookshelf; fill: $color-bookshelf; diff --git a/resources/assets/sass/_lists.scss b/resources/assets/sass/_lists.scss index 8a0db05c2..386113f46 100644 --- a/resources/assets/sass/_lists.scss +++ b/resources/assets/sass/_lists.scss @@ -404,7 +404,6 @@ ul.pagination { .featured-image-container { position: relative; overflow: hidden; - background: #F2F2F2; a { display: block; } @@ -415,10 +414,10 @@ ul.pagination { height: auto; transition: all .5s ease-in-out; } - img:hover { - transform: scale(1.15); - opacity: .5; - } +} +.grid-card:hover .featured-image-container img { + transform: scale(1.15); + opacity: .5; } .action-link-list { diff --git a/resources/views/books/grid-item.blade.php b/resources/views/books/grid-item.blade.php index 9bbf69100..bfb95e33e 100644 --- a/resources/views/books/grid-item.blade.php +++ b/resources/views/books/grid-item.blade.php @@ -1,18 +1,17 @@ -
- \ No newline at end of file + \ No newline at end of file