162 lines
4.2 KiB
SCSS
162 lines
4.2 KiB
SCSS
@import 'styles_config';
|
|
|
|
|
|
.about_tier_container {
|
|
|
|
.tierlist {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
padding: 20px;
|
|
max-width: calc( min( 1170px, 100% ) );
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* A row is: [label | cells ] */
|
|
.tier-row {
|
|
display: grid;
|
|
grid-template-columns: 110px 1fr;
|
|
min-height: 56px;
|
|
|
|
border: 1px solid #000;
|
|
background: #AAAAAA;
|
|
}
|
|
|
|
.tier-label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
color: #222;
|
|
padding: 8px;
|
|
text-align: center;
|
|
word-break: break-word;
|
|
border-right: 1px solid #000;
|
|
}
|
|
|
|
.tier-cells {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.tier-cell {
|
|
display: grid;
|
|
gap: 1px;
|
|
width: 48px;
|
|
height: calc( 48px / var(--preview-aspect-ratio) );
|
|
flex: 0 0 auto;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.tier-0 .tier-label { background: #9aa; color: #000; }
|
|
.tier-5 .tier-label { background: #ff7f7f; }
|
|
.tier-4 .tier-label { background: #ffbf7f; }
|
|
.tier-3 .tier-label { background: #ffff7f; }
|
|
.tier-2 .tier-label { background: #bfff7f; }
|
|
.tier-1 .tier-label { background: #7fffbf; }
|
|
|
|
.book-item {
|
|
border-radius: 2px;
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.book-item:not(:hover) {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.book-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition: transform 0.2s ease-in-out, z-index 0s;
|
|
pointer-events: none;
|
|
display: flex;
|
|
}
|
|
|
|
.book-item.no-cover {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
/* Overlays (hidden until hover) */
|
|
.book-item .title-overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
|
|
color: white;
|
|
font-size: 2px;
|
|
padding: 4px 1px 1px 1px;
|
|
transition: opacity 0.2s ease-in-out;
|
|
white-space: wrap;
|
|
opacity: 0;
|
|
}
|
|
|
|
.rating-overlay {
|
|
position: absolute;
|
|
bottom: calc(100% + 0.5px);
|
|
right: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: right bottom;
|
|
opacity: 0;
|
|
}
|
|
|
|
.wordcount-overlay {
|
|
position: absolute;
|
|
top: calc(100% + 0.5px);
|
|
left: 0;
|
|
right: 0;
|
|
padding: 1px;
|
|
font-size: 2px;
|
|
text-align: center;
|
|
color: white;
|
|
background: rgba(0,0,0,0.7);
|
|
opacity: 0;
|
|
}
|
|
|
|
.rating-overlay[data-count="1.0"] { background-image: url('/data/images/ehr/stars_1.0.png'); }
|
|
.rating-overlay[data-count="1.5"] { background-image: url('/data/images/ehr/stars_1.5.png'); }
|
|
.rating-overlay[data-count="2.0"] { background-image: url('/data/images/ehr/stars_2.0.png'); }
|
|
.rating-overlay[data-count="2.5"] { background-image: url('/data/images/ehr/stars_2.5.png'); }
|
|
.rating-overlay[data-count="3.0"] { background-image: url('/data/images/ehr/stars_3.0.png'); }
|
|
.rating-overlay[data-count="3.5"] { background-image: url('/data/images/ehr/stars_3.5.png'); }
|
|
.rating-overlay[data-count="4.0"] { background-image: url('/data/images/ehr/stars_4.0.png'); }
|
|
.rating-overlay[data-count="4.5"] { background-image: url('/data/images/ehr/stars_4.5.png'); }
|
|
.rating-overlay[data-count="5.0"] { background-image: url('/data/images/ehr/stars_5.0.png'); }
|
|
|
|
.book-item:hover .book-container {
|
|
transform: scale(8);
|
|
z-index: 10;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
background-color: #FFF;
|
|
position: absolute;
|
|
width: 32px;
|
|
height: calc( 32px / var(--img-aspect-ratio) );
|
|
left: calc(50% - 16px);
|
|
top: calc(50% - (16px / var(--img-aspect-ratio)));
|
|
}
|
|
|
|
.book-item:hover .title-overlay { opacity: 1; }
|
|
.book-item:hover .wordcount-overlay { opacity: 1; }
|
|
.book-item:hover .rating-overlay { opacity: 1; }
|
|
|
|
|
|
} |