Files
GameList/wwwroot/css/components.css

239 lines
4.5 KiB
CSS

.card {
background: rgba(255, 255, 255, 0.9);
border: 1px solid #e3d4bd;
border-radius: 14px;
padding: 16px;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
margin-bottom: 16px;
}
.card h2 {
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 12px;
margin-top: 12px;
margin-bottom: 12px;
width: 100%;
max-width: 1280px;
margin-inline: auto;
}
.results-grid {
max-width: none;
}
.game-card {
background: #fffaf3;
border: 1px solid #e5d6c2;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 220px;
}
.card-visual {
height: 200px;
background: linear-gradient(135deg, #f0d9b5, #f6b24f);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: #f6b24f;
border: none;
width: 100%;
display: block;
padding: 0;
}
.card-visual.hovering {
cursor: zoom-in;
}
.card-body {
padding: 12px;
display: flex;
flex-direction: column;
gap: 6px;
flex: 1;
}
.card-title-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
min-width: 0;
}
.card-title {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.title-meta {
display: flex;
align-items: center;
gap: 8px;
}
.title-meta .chip {
max-width: 140px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.chip {
background: #f1dfc5;
color: #2c1c0d;
padding: 2px 8px;
border-radius: 999px;
min-width: 30px;
height: 30px;
border: 1px solid transparent;
}
button .chip {
cursor: pointer;
}
.chip.icon {
padding: 2px;
width: 30px;
font-size: 18px;
}
.chip.danger-chip {
background: #e0564f;
border: 1px solid #c54740;
color: #fffaf3;
}
.chip.danger-chip:hover {
background: #c9473f;
border-color: #a83a35;
}
.nav-btn {
min-width: 64px;
font-weight: 700;
}
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
border-radius: 999px;
font-size: 12px;
border: 1px solid transparent;
}
.badge.warning {
background: #fff0d6;
color: #7a4a00;
border-color: #f0c66b;
}
.toggle-row {
display: flex;
gap: 8px;
align-items: center;
font-weight: 600;
}
.phase-nav {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.phase-nav .nav-text {
display: flex;
flex-direction: column;
gap: 6px;
color: #4b3a26;
}
.phase-nav .nav-actions {
display: flex;
gap: 8px;
align-items: center;
}
.warning-text {
color: #b23b3b;
font-weight: 600;
margin-bottom: 6px;
}
.vote-row {
display: grid;
grid-template-columns: 1fr auto auto;
align-items: center;
gap: 8px;
}
.vote-controls {
display: flex;
gap: 10px;
align-items: center;
margin-top: auto;
padding-top: 6px;
}
.score {
font-weight: 700;
min-width: 36px;
font-size: 24px;
text-align: center;
}
.score-emoji {
font-size: 24px;
text-align: center;
}
.results-grid .game-card {
border-color: #f0c56b;
}
.results-frame {
background: rgba(255, 255, 255, 0.92);
border: 1px solid #e3d4bd;
border-radius: 14px;
padding: 12px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
/* Slider */
input[type="range"].full-slider {
-webkit-appearance: none;
width: 100%;
height: 20px;
border-radius: 999px;
background: linear-gradient(90deg, #c52222, #d5c522, #22c55e);
outline: none;
box-shadow:
inset 0 0 0 1px #e3d4bd,
0 4px 12px rgba(0, 0, 0, 0.18);
}
input[type="range"].full-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 28px;
height: 28px;
border-radius: 50%;
background: #fffaf3;
border: 2px solid #d5c7b5;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
input[type="range"].full-slider::-moz-range-thumb {
width: 28px;
height: 28px;
border-radius: 50%;
background: #fffaf3;
border: 2px solid #d5c7b5;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
input[type="range"].full-slider::-moz-range-track {
height: 14px;
border-radius: 999px;
background: linear-gradient(90deg, #f28b3c, #f2c94c, #2ca25f);
border: 1px solid #e3d4bd;
}