Enhance cards: larger screenshots, lightbox, full-width styled vote slider
This commit is contained in:
@@ -62,15 +62,6 @@ body {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.name-box {
|
||||
min-width: 220px;
|
||||
max-width: 260px;
|
||||
background: #0b1224;
|
||||
border: 1px solid #1f2937;
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -134,10 +125,15 @@ button.ghost {
|
||||
}
|
||||
|
||||
.card-visual {
|
||||
height: 140px;
|
||||
height: 200px;
|
||||
background: linear-gradient(135deg, #1d4ed8, #22c55e);
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
border: none;
|
||||
width: 100%;
|
||||
display: block;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
@@ -172,6 +168,43 @@ button.ghost {
|
||||
|
||||
.results-grid .game-card { border-color: #2563eb44; }
|
||||
|
||||
/* Slider */
|
||||
input[type="range"].full-slider {
|
||||
-webkit-appearance: none;
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(90deg, #1d4ed8, #22c55e);
|
||||
outline: none;
|
||||
box-shadow: inset 0 0 0 1px #1f2937, 0 4px 12px rgba(0,0,0,0.25);
|
||||
}
|
||||
input[type="range"].full-slider::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #e5e7eb;
|
||||
border: 2px solid #0f172a;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
|
||||
}
|
||||
input[type="range"].full-slider::-moz-range-thumb {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: #e5e7eb;
|
||||
border: 2px solid #0f172a;
|
||||
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
|
||||
}
|
||||
input[type="range"].full-slider::-moz-range-track {
|
||||
height: 14px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(90deg, #1d4ed8, #22c55e);
|
||||
border: 1px solid #1f2937;
|
||||
}
|
||||
|
||||
.score { font-weight: 700; min-width: 36px; text-align: center; }
|
||||
|
||||
.hidden { display: none !important; }
|
||||
|
||||
.toast {
|
||||
@@ -213,6 +246,44 @@ button.ghost {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.lightbox {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.75);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 100;
|
||||
}
|
||||
.lightbox-content {
|
||||
position: relative;
|
||||
max-width: 90vw;
|
||||
max-height: 90vh;
|
||||
background: #0f172a;
|
||||
padding: 12px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 20px 50px rgba(0,0,0,0.6);
|
||||
}
|
||||
.lightbox-content img {
|
||||
max-width: 100%;
|
||||
max-height: 80vh;
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
}
|
||||
.lightbox-close {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
background: #111827;
|
||||
color: #e5e7eb;
|
||||
border: 1px solid #1f2937;
|
||||
border-radius: 999px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.panel-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
Reference in New Issue
Block a user