Make covers square
Set fixed width and weight to the cover container and adjust the margin of the last book in a row.
This commit is contained in:
parent
6a14e2cf68
commit
f69b444411
|
@ -140,15 +140,36 @@ table .bg-dark-danger a { color: #fff; }
|
|||
|
||||
.container-fluid .book {
|
||||
margin-top: 20px;
|
||||
max-width: 180px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-right: 10px;
|
||||
max-width: 150px;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.container-fluid .book:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.cover { margin-bottom: 10px; }
|
||||
|
||||
.container-fluid .book .cover {
|
||||
height: 225px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 1px solid #ddd;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.container-fluid .book .cover img {
|
||||
height: 100%;
|
||||
width: auto;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.author-link img {
|
||||
|
@ -437,4 +458,4 @@ div.log {
|
|||
|
||||
.error-list {
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue