More languages
More actions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
grid-template-columns: repeat(4, 25%); | grid-template-columns: repeat(4, 25%); | ||
grid-gap: 0 20px; | grid-gap: 0 20px; | ||
width:100%; | |||
} | } | ||
Revision as of 21:16, 21 July 2023
/* ----- flex styling ------ */
/*
.library-container-mini{
display: flex;
flex-flow: row wrap;
justify-content:space-between;
gap: 0 20px;
width:100%;
} */
/* --------- grid attempt -----------*/
.library-container-mini{
display:grid;
grid-template-columns: repeat(4, 25%);
grid-gap: 0 20px;
width:100%;
}
.library-card-mini-content{
display: inline-grid;
grid-template-columns: 45px 155px;
grid-template-rows: 1fr;
height:75px;
overflow:hidden; /* you get three lines of text, no more */
align-items:center;
}
.library-card-mini img{
height:35px;
width:35px;
object-fit:cover;
border-radius:5px;
transform:scale(1); /* cancels the scale-in effect that the library cards have*/
}
.library-card-mini img:hover{
transform:scale(1);
}
.library-card-mini-text{
grid-column-start:2;
grid-column-end:3;
}
.library-card-mini-title{
height:0;
width:0;
position:relative;
}
.library-card-mini-TOC{
position: absolute;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
}