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

269 lines
4.6 KiB
CSS

:root {
--bg: #000000;
--fg: #ffffff;
--border: #ffffff;
--border-dim: #1a1a1a;
--muted: #666666;
--accent: #ffffff;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
[x-cloak] {
display: none !important;
}
html,
body {
height: 100%;
background-color: var(--bg);
overflow: hidden;
}
body {
color: var(--fg);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
line-height: 1.4;
-webkit-font-smoothing: antialiased;
display: flex;
justify-content: center;
}
.container {
max-width: 1200px;
width: 100%;
padding: 2.5rem;
display: flex;
flex-direction: column;
height: 100vh;
}
header {
margin-bottom: 2.5rem;
text-align: center;
border-bottom: 1px solid var(--border-dim);
padding-bottom: 1.5rem;
flex-shrink: 0;
}
h1 {
font-size: 1.5rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.2em;
}
main {
flex: 1;
overflow-y: auto;
min-height: 0;
padding: 0.5rem 0;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.25rem;
margin: 0 auto;
}
.card {
background-color: var(--bg);
border: 1px solid var(--border-dim);
padding: 1.75rem;
display: flex;
flex-direction: column;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
border-color: var(--muted);
background-color: #050505;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 2rem;
}
.card h3 {
font-size: 1.1rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: -0.01em;
}
.rank-badge {
font-family: monospace;
font-size: 0.7rem;
color: var(--muted);
background: #111;
padding: 3px 6px;
letter-spacing: 0.05em;
}
.stats-group {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
margin-bottom: 2rem;
}
.stat {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #111;
padding-bottom: 0.4rem;
}
.stat-label {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--muted);
}
.stat-value {
font-size: 0.9rem;
font-weight: 700;
font-family: monospace;
}
.btn-view {
margin-top: auto;
background: transparent;
border: 1px solid var(--border-dim);
color: var(--fg);
padding: 0.75rem;
font-size: 0.7rem;
font-weight: 800;
cursor: pointer;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.btn-view:hover {
background: var(--fg);
color: var(--bg);
border-color: var(--fg);
}
.modal-overlay {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
backdrop-filter: blur(8px);
}
.modal-panel {
background-color: var(--bg);
border: 1px solid var(--border-dim);
width: 90vw;
max-width: 1200px;
height: 80vh;
display: flex;
flex-direction: column;
}
.modal-header {
padding: 1.25rem 2rem;
border-bottom: 1px solid var(--border-dim);
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.modal-header h2 {
font-size: 0.8rem;
font-weight: 900;
letter-spacing: 0.2em;
}
.modal-body {
padding: 1.5rem 2rem;
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
min-height: 0;
}
.close-btn {
background: none;
border: none;
color: var(--muted);
cursor: pointer;
padding: 0.5rem;
}
.close-btn:hover {
color: var(--fg);
}
main::-webkit-scrollbar {
width: 4px;
}
main::-webkit-scrollbar-track {
background: var(--bg);
}
main::-webkit-scrollbar-thumb {
background: var(--border-dim);
}
.apexcharts-canvas,
.apexcharts-canvas *,
.apexcharts-canvas *:focus {
outline: none !important;
-webkit-tap-highlight-color: transparent;
}
.apexcharts-yaxis-label {
font-weight: 700 !important;
}
.apexcharts-tooltip {
background: #000 !important;
border: 1px solid #333 !important;
color: #fff !important;
border-radius: 0 !important;
box-shadow: none !important;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 1100px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 700px) {
.grid {
grid-template-columns: 1fr;
}
.container {
padding: 1.5rem;
}
}