Files
ncore-stats/web/style.css
T
2026-03-22 19:51:31 +01:00

291 lines
5.3 KiB
CSS

:root {
--bg: #0a0a0b;
--card-bg: #111113;
--fg: #f4f4f5;
--muted: #71717a;
--border: #27272a;
--accent: #10b981;
--accent-dim: rgba(16, 185, 129, 0.1);
--rank-bg: #18181b;
--blue: #3b82f6;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
[x-cloak] {
display: none !important;
}
html,
body {
height: 100%;
background-color: var(--bg);
color: var(--fg);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
body {
display: flex;
justify-content: center;
}
.container {
max-width: 1200px;
width: 100%;
padding: 2rem;
display: flex;
flex-direction: column;
height: 100vh;
}
header {
margin-bottom: 2.5rem;
text-align: center;
flex-shrink: 0;
}
h1 {
font-size: 1.75rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.15em;
background: linear-gradient(to right, #fff, #71717a);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.subtitle {
color: var(--muted);
font-size: 0.75rem;
margin-top: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.25em;
font-weight: 600;
}
main {
flex: 1;
overflow-y: auto;
min-height: 0;
padding: 1rem 0;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
}
.card {
background-color: var(--card-bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 1.75rem;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card:hover {
border-color: var(--accent);
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.75rem;
}
.card h3 {
font-size: 1.1rem;
font-weight: 700;
color: #fff;
}
.rank-badge {
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem;
color: var(--accent);
background: var(--accent-dim);
padding: 4px 10px;
border-radius: 6px;
font-weight: 700;
letter-spacing: 0.05em;
}
.stats-group {
display: grid;
grid-template-columns: 1fr;
gap: 1rem;
margin-bottom: 1.75rem;
}
.stat {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border);
}
.stat:last-child {
border-bottom: none;
}
.stat-label {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
font-weight: 600;
}
.stat-value {
font-size: 0.95rem;
font-weight: 600;
color: #efefef;
}
.btn-view {
margin-top: auto;
background: var(--bg);
border: 1px solid var(--border);
color: var(--fg);
padding: 0.85rem;
font-size: 0.75rem;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.btn-view:hover {
background: var(--accent);
color: #000;
border-color: var(--accent);
}
.modal-overlay {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(12px);
}
.modal-panel {
background-color: var(--card-bg);
border: 1px solid var(--border);
width: 90vw;
max-width: 1100px;
height: 75vh;
display: flex;
flex-direction: column;
border-radius: 16px;
overflow: hidden;
}
.modal-header {
padding: 1.5rem 2rem;
background: #18181b;
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.modal-header h2 {
font-size: 0.85rem;
font-weight: 800;
letter-spacing: 0.15em;
color: var(--muted);
}
.modal-body {
padding: 2rem;
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
min-height: 0;
}
.close-btn {
background: rgba(255, 255, 255, 0.05);
border: none;
color: var(--muted);
cursor: pointer;
padding: 0.5rem;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
}
.close-btn:hover {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}
main::-webkit-scrollbar {
width: 4px;
}
main::-webkit-scrollbar-track {
background: var(--bg);
}
main::-webkit-scrollbar-thumb {
background: var(--border);
border-radius: 10px;
}
.apexcharts-canvas,
.apexcharts-canvas *,
.apexcharts-canvas *:focus {
outline: none !important;
}
.apexcharts-tooltip {
background: #18181b !important;
border: 1px solid var(--border) !important;
border-radius: 8px !important;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}
@media (max-width: 700px) {}
@media (max-width: 700px) {
.container {
padding: 1.5rem;
}
.grid {
grid-template-columns: 1fr;
}
.modal-panel {
width: 95vw;
height: 90vh;
}
}