mirror of
https://github.com/Alexander-D-Karpov/about.git
synced 2026-03-16 22:06:08 +03:00
207 lines
3.7 KiB
CSS
207 lines
3.7 KiB
CSS
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
gap: 6px;
|
|
padding: 14px 12px;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
transition: border-color .2s ease;
|
|
min-height: 80px;
|
|
}
|
|
|
|
.stat-item:hover {
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.stat-label {
|
|
font-weight: 700;
|
|
font-size: 11px;
|
|
color: var(--ink-2);
|
|
white-space: nowrap;
|
|
text-transform: uppercase;
|
|
letter-spacing: .5px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-weight: 800;
|
|
font-family: var(--mono);
|
|
font-variant-numeric: tabular-nums;
|
|
font-size: 20px;
|
|
color: var(--accent);
|
|
white-space: nowrap;
|
|
line-height: 1;
|
|
}
|
|
|
|
.maps-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
gap: 10px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.map-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-radius: 10px;
|
|
background: transparent;
|
|
border: 1px solid var(--edge-0);
|
|
transition: border-color .15s ease;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.map-item:hover {
|
|
border-color: var(--edge-1);
|
|
}
|
|
|
|
.map-item[style*="cursor: pointer"]:hover {
|
|
border-color: color-mix(in oklch, var(--accent) 30%, transparent);
|
|
}
|
|
|
|
.map-cover {
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 8px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.map-info {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
flex: 1;
|
|
}
|
|
|
|
.map-name {
|
|
margin: 0;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.map-stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 10px;
|
|
color: var(--muted);
|
|
font: 11px/1.2 var(--mono);
|
|
align-items: center;
|
|
}
|
|
|
|
.map-stats span {
|
|
background: rgba(255, 255, 255, .04);
|
|
padding: 3px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.replay-indicator {
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 3px 7px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.beatleader-section h4 {
|
|
margin: 16px 0 10px 0;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--ink-2);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.view-profile-btn {
|
|
margin-top: 12px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border-radius: 8px;
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
transition: all .2s ease;
|
|
border: none;
|
|
}
|
|
|
|
.view-profile-btn:hover {
|
|
background: color-mix(in oklch, var(--accent) 85%, white);
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 10px;
|
|
}
|
|
|
|
.maps-list {
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 8px;
|
|
}
|
|
|
|
.stat-item {
|
|
padding: 12px 10px;
|
|
min-height: 70px;
|
|
}
|
|
|
|
.maps-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.map-cover {
|
|
width: 44px;
|
|
height: 44px;
|
|
}
|
|
|
|
.map-name {
|
|
font-size: 12px;
|
|
}
|
|
} |