More languages
More actions
(Created page with "→STYLING LIBRARY CARD CONTAINER: →STYLING MINI LIBRARY CARD CONTAINER: →it's weird but for some reason this grid specifically only wants to use 1 column out of 2, so I just added empty columns in between the actual ones and reduced the gap by half (10px instead of 20px) because these empty columns still apply their gap. ¯\_(ツ)_/¯: .library-container-mini{ display:grid; grid-template-columns: repeat(4, 1fr 0fr); grid-gap: 0 10px; width:100%; }...") |
No edit summary |
||
Line 1: | Line 1: | ||
/* STYLING LIBRARY CARD CONTAINER */ | /* STYLING LIBRARY CARD CONTAINER */ | ||
.library-container{ | |||
width:100%; | |||
display:flex; | |||
flex-flow:row wrap; | |||
justify-content:center; | |||
align-items:flex-start; | |||
} | |||
Revision as of 14:06, 17 September 2023
/* STYLING LIBRARY CARD CONTAINER */
.library-container{
width:100%;
display:flex;
flex-flow:row wrap;
justify-content:center;
align-items:flex-start;
}
/* STYLING MINI LIBRARY CARD CONTAINER */
/* it's weird but for some reason this grid specifically
only wants to use 1 column out of 2, so I just added
empty columns in between the actual ones and reduced
the gap by half (10px instead of 20px) because these
empty columns still apply their gap. ¯\_(ツ)_/¯
*/
.library-container-mini{
display:grid;
grid-template-columns: repeat(4, 1fr 0fr);
grid-gap: 0 10px;
width:100%;
}
/* resize grid on mobile so there's only one column */
@media only screen and (max-width: 768px) {
.library-container-mini{
display: grid;
grid-template-columns: 1fr;
grid-gap: 10px 0;
}
.library-container-mini > p{ /* the every other row bug happens here too, but they're just empty <p> tags. Fixed with this. */
display:none;
}
.library-card-mini-content{
height:25px;
}
}