Split styles into modular CSS files
This commit is contained in:
168
wwwroot/css/components.css
Normal file
168
wwwroot/css/components.css
Normal file
@@ -0,0 +1,168 @@
|
||||
.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: 8px;
|
||||
}
|
||||
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 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;
|
||||
cursor: pointer;
|
||||
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: #c5dff1;
|
||||
color: #2c1c0d;
|
||||
padding: 4px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
.chip.danger-chip {
|
||||
background: #e0564f;
|
||||
border: 1px solid #c54740;
|
||||
color: #fffaf3;
|
||||
}
|
||||
.chip.danger-chip:hover {
|
||||
background: #c9473f;
|
||||
border-color: #a83a35;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
Reference in New Issue
Block a user