More languages
More actions
No edit summary |
General-KJ (talk | contribs) mNo edit summary |
||
(69 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
/* STYLING LIBRARY CARD CONTAINER */ | /* STYLING FULL AND MID LIBRARY CARD CONTAINER */ | ||
.library-container{ | .library-container{ | ||
width:100%; | width:100%; | ||
Line 6: | Line 6: | ||
justify-content:center; | justify-content:center; | ||
align-items:flex-start; | align-items:flex-start; | ||
gap:20px 10px; | |||
margin-top:20px; | |||
} | } | ||
/* styling | /* styling full-size library cards */ | ||
.library-card{ | .library-card{ | ||
width:200px; | width:200px; | ||
padding:0; | padding:0; | ||
border:1px gray solid; | border:1px gray solid; | ||
Line 26: | Line 27: | ||
} | } | ||
.library-card | .library-card .library-card-image { | ||
height:270px; | |||
.library-card-image { | |||
height: | |||
padding:0; | padding:0; | ||
margin:0; | margin:0; | ||
Line 41: | Line 34: | ||
} | } | ||
.library-card-image img{ | .library-card .library-card-image img{ | ||
width:auto; | width:auto; | ||
height:100%; | height:100%; | ||
Line 53: | Line 46: | ||
} | } | ||
.library-card-image img:hover{ | .library-card .library-card-image img:hover{ | ||
transform:scale(1. | transform:scale(1.15); | ||
filter:grayscale(0.3); | filter:grayscale(0.3); | ||
} | |||
/*Common to full and mid size*/ | |||
.library-card-TOC{ | |||
position: absolute; | |||
width: 0; | |||
height: 0; | |||
overflow: hidden; | |||
visibility: hidden; | |||
} | } | ||
Line 66: | Line 68: | ||
overflow:hidden; | overflow:hidden; | ||
position:relative; | position:relative; | ||
} | |||
.library-card .library-card-content{ | |||
border-top:1px solid gray; | border-top:1px solid gray; | ||
} | |||
.library-card-content p{ | |||
line-height:0.1rem; | |||
} | } | ||
Line 78: | Line 87: | ||
} | } | ||
.library-card-works,.library-card-title , .library-card p{ | .library-card-works,.library-card-title, .library-card p, .library-card-mid p{ | ||
display:inline; | display:inline; | ||
} | } | ||
.library-card-content | /*styling mid-size library card*/ | ||
.library-card-mid{ | |||
width:150px; | |||
padding:0; | |||
/*border:1px gray solid;*/ | |||
/*border-radius:10px 10px 4px 4px;*/ | |||
overflow:hidden; | |||
z-index:10; | |||
/*box-shadow: 3px 1px 6px 1px gray;*/ | |||
transition: box-shadow 0.4s, transform 0.4s; | |||
} | |||
.library-card-mid:hover{ | |||
/*box-shadow: 5px 4px 11px 3px #666;*/ | |||
transform:scale(1.02); | |||
} | |||
.library-card-mid .library-card-image { | |||
height:150px; | |||
padding:0; | |||
margin:0; | |||
z-index:-1; | |||
display:flex; | |||
align-items:center; | |||
justify-content:center; | |||
clip-path: inset(0 round 10px); /*makes rounded edges, for some reason border-radius doesn't want to work*/ | |||
} | |||
.library-card-mid .library-card-image img{ | |||
width:100%; | |||
height:auto; | |||
transform: scale(1.1); | |||
overflow:hidden; | |||
padding:0; | |||
margin:0; | |||
transition: transform 0.4s, filter 0.4s; | |||
z-index:-1; | |||
filter:grayscale(1); | |||
} | } | ||
.library-card-mid .library-card-image img:hover{ | |||
filter:grayscale(0.3); | |||
} | |||
.library-card-mid .library-card-works{ | |||
font-size:1rem; | |||
} | |||
/* STYLING MINI LIBRARY CARD CONTAINER */ | /* STYLING MINI LIBRARY CARD CONTAINER */ | ||
.library-container-mini{ | .library-container-mini{ | ||
display: | display: flex; | ||
flex-flow:row wrap; | |||
justify-content:center; | |||
align-items:flex-start; | |||
width:100%; | width:100%; | ||
margin-top:20px; | |||
gap:30px 40px; | |||
} | } | ||
/* styling mini library cards */ | /* styling mini library cards */ | ||
.library-card-mini{ | |||
width:100px; | |||
} | |||
.library-card-mini-content{ | .library-card-mini-content{ | ||
height:75px; | height:75px; | ||
overflow:hidden; /* you get three lines of text, no more */ | overflow:hidden; /* you get three lines of text, no more */ | ||
} | |||
.library-card-mini-image{ | |||
width:100%; | |||
height:50px; | |||
overflow:hidden; | |||
display:flex; | |||
align-items:center; | align-items:center; | ||
justify-content:center; | |||
border-radius:5px; | |||
gap:0; | |||
} | } | ||
.library-card-mini img{ | .library-card-mini img{ | ||
height: | height:auto; | ||
width: | width:100px; | ||
object-fit:cover; | object-fit:cover; | ||
overflow:hidden; | overflow:hidden; | ||
padding:0; | padding:0; | ||
margin:0; | margin:0; | ||
Line 132: | Line 189: | ||
.library-card-mini-text{ | .library-card-mini-text{ | ||
text-align:center; | |||
line-height:1.3; | |||
} | } | ||
Line 150: | Line 207: | ||
} | } | ||
/*styling quote card*/ | |||
.quote-container{ | |||
width:100%; | |||
display:flex; | |||
flex-flow:row wrap; | |||
justify-content:center; | |||
align-items:flex-start; | |||
gap:10px 5px; | |||
margin:0; | |||
} | |||
.quote-card{ | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
justify-content: flex-start; | |||
width:110px; | |||
height:200px; | |||
padding:0; | |||
border:1px gray solid; | |||
border-radius:10px 10px 4px 4px; | |||
overflow:hidden; | |||
z-index:10; | |||
box-shadow: 3px 1px 8px 1px gray; | |||
transition: box-shadow 0.4s, transform 0.4s; | |||
text-align: center; | |||
} | |||
.quote-card:hover{ | |||
filter:grayscale(0); | |||
transform:scale(1.02); | |||
} | |||
.quote-card-content{ | |||
height:50px; | |||
padding:5px; | |||
margin:0; | |||
text-align:center; | |||
display:block; | |||
z-index:10; | |||
overflow:hidden; | |||
position:relative; | |||
border-top:2px solid gray; | |||
} | |||
.quote-card-image{ | |||
height:135px; | |||
width:100%; | |||
overflow:hidden; | |||
object-fit:contain; | |||
display:flex; | |||
margin:0; | |||
align-items:center; | |||
justify-content:center; | |||
gap:0; | |||
} | |||
.quote-card img{ | |||
height:135px; | |||
width:100px; | |||
object-fit:contain; | |||
overflow:hidden; | |||
margin:0; | |||
transition: filter 0.4s; | |||
z-index:-1; | |||
filter:grayscale(1); | |||
transform:scale(1); /* cancels any scale-in effect that may apply*/ | |||
} | |||
.quote-card-text{ | |||
width:100%; | |||
margin: 0; | |||
padding:5px; | |||
flex-grow: 0; /* Ensure that the text container takes up available space */ | |||
text-align: center; /* Center-align text inside the container */ | |||
display: flex; | |||
justify-content: flex-start; /* Align text at the top */ | |||
align-items: center; | |||
flex-direction: column; | |||
border-top:2px solid gray; | |||
} | |||
.quote-card-title{ | |||
height:0; | |||
width:0; | |||
position:relative; | |||
} | |||
.quote-card-TOC{ | |||
position: absolute; | |||
width: 0; | |||
height: 0; | |||
overflow: hidden; | |||
visibility: hidden; | |||
} | |||
.quote-card p { | |||
margin: 0; /* Remove any margin */ | |||
padding-top: 5px; /* Optional padding to give some space between the image and text */ | |||
align-self: flex-start; /* Align the text at the top of the container */ | |||
} | |||
/* MOBILE STYLING */ | /* MOBILE STYLING */ | ||
@media only screen and (max-width: 768px) { | @media only screen and (max-width: 768px) { | ||
.library-container-mini > p{ /* the every other row bug happens here too, but they're just empty <p> tags. Fixed with this. */ | .library-container-mini > p{ /* the every other row bug happens here too, but they're just empty <p> tags. Fixed with this. */ | ||
display:none; | display:none; |
Latest revision as of 23:29, 9 October 2024
/* STYLING FULL AND MID LIBRARY CARD CONTAINER */
.library-container{
width:100%;
display:flex;
flex-flow:row wrap;
justify-content:center;
align-items:flex-start;
gap:20px 10px;
margin-top:20px;
}
/* styling full-size library cards */
.library-card{
width:200px;
padding:0;
border:1px gray solid;
border-radius:10px 10px 4px 4px;
overflow:hidden;
z-index:10;
box-shadow: 3px 1px 8px 1px gray;
transition: box-shadow 0.4s, transform 0.4s;
}
.library-card:hover{
box-shadow: 5px 4px 11px 3px #666;
transform:scale(1.02);
}
.library-card .library-card-image {
height:270px;
padding:0;
margin:0;
z-index:-1;
}
.library-card .library-card-image img{
width:auto;
height:100%;
transform: scale(1.1);
overflow:hidden;
padding:0;
margin:0;
transition: transform 0.4s, filter 0.4s;
z-index:-1;
filter:grayscale(1);
}
.library-card .library-card-image img:hover{
transform:scale(1.15);
filter:grayscale(0.3);
}
/*Common to full and mid size*/
.library-card-TOC{
position: absolute;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
}
.library-card-content{
padding:15px 2px;
margin:0;
text-align:center;
display:block;
z-index:10;
overflow:hidden;
position:relative;
}
.library-card .library-card-content{
border-top:1px solid gray;
}
.library-card-content p{
line-height:0.1rem;
}
.library-card-title{
font-size:1.2rem;
font-weight:normal;
}
.library-card-works{
font-size:0.8rem;
}
.library-card-works,.library-card-title, .library-card p, .library-card-mid p{
display:inline;
}
/*styling mid-size library card*/
.library-card-mid{
width:150px;
padding:0;
/*border:1px gray solid;*/
/*border-radius:10px 10px 4px 4px;*/
overflow:hidden;
z-index:10;
/*box-shadow: 3px 1px 6px 1px gray;*/
transition: box-shadow 0.4s, transform 0.4s;
}
.library-card-mid:hover{
/*box-shadow: 5px 4px 11px 3px #666;*/
transform:scale(1.02);
}
.library-card-mid .library-card-image {
height:150px;
padding:0;
margin:0;
z-index:-1;
display:flex;
align-items:center;
justify-content:center;
clip-path: inset(0 round 10px); /*makes rounded edges, for some reason border-radius doesn't want to work*/
}
.library-card-mid .library-card-image img{
width:100%;
height:auto;
transform: scale(1.1);
overflow:hidden;
padding:0;
margin:0;
transition: transform 0.4s, filter 0.4s;
z-index:-1;
filter:grayscale(1);
}
.library-card-mid .library-card-image img:hover{
filter:grayscale(0.3);
}
.library-card-mid .library-card-works{
font-size:1rem;
}
/* STYLING MINI LIBRARY CARD CONTAINER */
.library-container-mini{
display: flex;
flex-flow:row wrap;
justify-content:center;
align-items:flex-start;
width:100%;
margin-top:20px;
gap:30px 40px;
}
/* styling mini library cards */
.library-card-mini{
width:100px;
}
.library-card-mini-content{
height:75px;
overflow:hidden; /* you get three lines of text, no more */
}
.library-card-mini-image{
width:100%;
height:50px;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
border-radius:5px;
gap:0;
}
.library-card-mini img{
height:auto;
width:100px;
object-fit:cover;
overflow:hidden;
padding:0;
margin:0;
transition: filter 0.4s;
z-index:-1;
filter:grayscale(1);
transform:scale(1); /* cancels any scale-in effect that may apply*/
}
.library-card-mini img:hover{
filter:grayscale(0.3);
}
.library-card-mini-text{
text-align:center;
line-height:1.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;
}
/*styling quote card*/
.quote-container{
width:100%;
display:flex;
flex-flow:row wrap;
justify-content:center;
align-items:flex-start;
gap:10px 5px;
margin:0;
}
.quote-card{
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width:110px;
height:200px;
padding:0;
border:1px gray solid;
border-radius:10px 10px 4px 4px;
overflow:hidden;
z-index:10;
box-shadow: 3px 1px 8px 1px gray;
transition: box-shadow 0.4s, transform 0.4s;
text-align: center;
}
.quote-card:hover{
filter:grayscale(0);
transform:scale(1.02);
}
.quote-card-content{
height:50px;
padding:5px;
margin:0;
text-align:center;
display:block;
z-index:10;
overflow:hidden;
position:relative;
border-top:2px solid gray;
}
.quote-card-image{
height:135px;
width:100%;
overflow:hidden;
object-fit:contain;
display:flex;
margin:0;
align-items:center;
justify-content:center;
gap:0;
}
.quote-card img{
height:135px;
width:100px;
object-fit:contain;
overflow:hidden;
margin:0;
transition: filter 0.4s;
z-index:-1;
filter:grayscale(1);
transform:scale(1); /* cancels any scale-in effect that may apply*/
}
.quote-card-text{
width:100%;
margin: 0;
padding:5px;
flex-grow: 0; /* Ensure that the text container takes up available space */
text-align: center; /* Center-align text inside the container */
display: flex;
justify-content: flex-start; /* Align text at the top */
align-items: center;
flex-direction: column;
border-top:2px solid gray;
}
.quote-card-title{
height:0;
width:0;
position:relative;
}
.quote-card-TOC{
position: absolute;
width: 0;
height: 0;
overflow: hidden;
visibility: hidden;
}
.quote-card p {
margin: 0; /* Remove any margin */
padding-top: 5px; /* Optional padding to give some space between the image and text */
align-self: flex-start; /* Align the text at the top of the container */
}
/* MOBILE STYLING */
@media only screen and (max-width: 768px) {
.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 > p{ /* reduce space between mini cards on mobile so we can fit more in the viewport */
margin:0;
}
.library-card-mini-content{ /* also reduces space between mini cards now that there is no margin. Calculated to fit 3 lines of text */
height:50px;
line-height:1;
}
}