initial commit
This commit is contained in:
Executable
+186
@@ -0,0 +1,186 @@
|
||||
/* =======================
|
||||
Console Green Theme
|
||||
======================= */
|
||||
:root {
|
||||
--bg: #0b0f0c;
|
||||
--fg: #00ff66;
|
||||
--fg-soft: #66ff99;
|
||||
--bar: #1a1a1a;
|
||||
--bar-border: #242424;
|
||||
}
|
||||
/* Reset */
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html { background-color: var(--bg); }
|
||||
html, body { overflow-x: hidden; } /* prevent sideways scroll */
|
||||
body {
|
||||
background: var(--bg); color: var(--fg);
|
||||
font-family: Consolas, "Liberation Mono", Menlo, "DejaVu Sans Mono", "Source Code Pro", "Courier New", monospace;
|
||||
line-height: 1.6; letter-spacing: 0.02em;
|
||||
text-shadow: 0 0 6px rgba(0, 255, 102, 0.3);
|
||||
min-height: 100vh;
|
||||
}
|
||||
/* =======================
|
||||
Top Bar
|
||||
======================= */
|
||||
.topbar {
|
||||
position: fixed; top: 0; left: 0; right: 0; height: 56px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
background: var(--bar); border-bottom: 1px solid var(--bar-border);
|
||||
padding: 0 20px; z-index: 1000;
|
||||
}
|
||||
.topbar, .topbar a { color: var(--fg); text-shadow: none; }
|
||||
.logo { font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
|
||||
/* Nav */
|
||||
.main-nav ul { list-style: none; display: flex; gap: 20px; }
|
||||
.main-nav a { text-decoration: none; border-bottom: 2px solid transparent; }
|
||||
.main-nav a:hover { color: var(--fg-soft); }
|
||||
/* =======================
|
||||
Content
|
||||
======================= */
|
||||
.content {
|
||||
max-width: 1400px; margin: 0 auto; padding: 96px 20px 40px;
|
||||
}
|
||||
.page-title { text-align: center; margin-bottom: 1rem; }
|
||||
/* =======================
|
||||
Toolbar
|
||||
======================= */
|
||||
.trader-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
|
||||
.toolbar-flex { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
|
||||
.toolbar-flex .spacer { flex: 1 1 auto; min-width: 0; }
|
||||
.btn {
|
||||
background: #1f2636; color: var(--fg);
|
||||
border: 1px solid #2a3246; border-radius: 8px;
|
||||
padding: 8px 14px; cursor: pointer;
|
||||
}
|
||||
.btn:hover { background: #273049; }
|
||||
/* Toggle */
|
||||
.mode-toggle {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 6px 10px; border: 1px solid #2a3246; border-radius: 8px;
|
||||
background: #1a2030; user-select: none;
|
||||
}
|
||||
.mode-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: #00ff66; cursor: pointer; }
|
||||
.mode-toggle span { color: var(--fg); font-size: 0.95rem; }
|
||||
.mode-toggle:hover { background: #20273a; }
|
||||
/* =======================
|
||||
Unified update bubble
|
||||
======================= */
|
||||
.update-bar { width: 100%; margin: 4px 0 8px; }
|
||||
.badge {
|
||||
padding: .25rem .5rem; border-radius: 999px;
|
||||
background: rgba(0,255,102,.08); border: 1px solid rgba(0,255,102,.25);
|
||||
color: #a7f3d0; font-size: .85rem; display: inline-flex; align-items: center;
|
||||
max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
.update-pill {
|
||||
display: block; width: 100%; text-align: left;
|
||||
padding: .35rem .65rem;
|
||||
}
|
||||
/* =======================
|
||||
Trader Grid & Cards
|
||||
======================= */
|
||||
.trader-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 28px; justify-items: center; align-items: start; width: 100%;
|
||||
}
|
||||
.trader-card {
|
||||
width: 100%; max-width: 320px;
|
||||
background: #151924; border-radius: 12px; padding: 14px;
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
|
||||
display: flex; flex-direction: column; box-sizing: border-box;
|
||||
transition: transform .18s ease, box-shadow .18s ease;
|
||||
}
|
||||
/* Hover animation on devices that support hover */
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.trader-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
|
||||
}
|
||||
.trader-figure {
|
||||
width: 100%; aspect-ratio: 4 / 3; margin-bottom: 10px;
|
||||
overflow: hidden; border-radius: 8px; border: 1px solid rgba(0, 255, 102, 0.18);
|
||||
}
|
||||
.trader-img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.trader-name { font-weight: 700; margin-bottom: 6px; color: var(--fg); }
|
||||
.trader-countdown { font-size: 1.25rem; font-variant-numeric: tabular-nums; color: var(--fg); }
|
||||
.trader-meta { font-size: 0.9rem; margin-top: 6px; color: var(--fg-soft); white-space: nowrap; }
|
||||
/* Single column on small phones */
|
||||
@media (max-width: 560px) {
|
||||
.trader-grid { grid-template-columns: 1fr; gap: 20px; }
|
||||
.trader-card { max-width: 100%; }
|
||||
}
|
||||
/* =======================
|
||||
CRT overlay
|
||||
======================= */
|
||||
html::before {
|
||||
content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
|
||||
background-image: repeating-linear-gradient(to bottom,
|
||||
rgba(0, 255, 102, 0.035), rgba(0, 255, 102, 0.035) 1px,
|
||||
rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 8px);
|
||||
opacity: 0.5;
|
||||
}
|
||||
/* =======================
|
||||
Hamburger menu (mobile)
|
||||
======================= */
|
||||
.nav-toggle {
|
||||
display: inline-grid; grid-auto-rows: 3px; gap: 4px;
|
||||
align-items: center; justify-content: center; width: 40px; height: 40px;
|
||||
padding: 0; background: transparent; border: 1px solid transparent; border-radius: 8px;
|
||||
color: var(--fg); cursor: pointer; transform: translateY(10px);
|
||||
}
|
||||
.nav-toggle:focus-visible { outline: 2px solid rgba(0, 255, 102, .7); outline-offset: 2px; }
|
||||
.nav-toggle__bar { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; box-shadow: 0 0 6px rgba(0, 255, 102, .45); }
|
||||
/* Mobile dropdown nav */
|
||||
.main-nav {
|
||||
position: absolute; top: 56px; left: 0; right: 0; display: none;
|
||||
background: var(--bar); border-bottom: 1px solid var(--bar-border); padding: 12px 16px 16px;
|
||||
}
|
||||
.main-nav.is-open { display: block; animation: menuDrop 160ms ease-out; }
|
||||
.main-nav.is-open ul { display: grid; gap: 10px; }
|
||||
.main-nav a { display: block; padding: 10px 12px; color: var(--fg); }
|
||||
@keyframes menuDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
|
||||
/* Desktop nav */
|
||||
@media (min-width: 900px) {
|
||||
.nav-toggle { display: none; }
|
||||
.main-nav { position: static; display: block; background: transparent; border: 0; padding: 0; }
|
||||
.main-nav ul { display: flex; gap: 20px; }
|
||||
.main-nav a { display: inline-block; padding: 6px 8px; }
|
||||
}
|
||||
body.nav-open { overflow: hidden; }
|
||||
/* Optional: styling for the matches block injected above results */
|
||||
.quest-alt-matches {
|
||||
background: #151924;
|
||||
border-radius: 12px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid rgba(0, 255, 102, 0.18);
|
||||
margin: 8px 0 10px;
|
||||
}
|
||||
.quest-alt-matches details > summary {
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
color: var(--fg);
|
||||
}
|
||||
.quest-alt-matches .linklike {
|
||||
background: none;
|
||||
color: var(--fg);
|
||||
border: 0;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
/* General hero title used across pages */
|
||||
.hero {
|
||||
font-size: 44px;
|
||||
letter-spacing: .02em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Sortable header styles */
|
||||
#ammoTable thead th.is-sortable { cursor: pointer; user-select: none; }
|
||||
#ammoTable thead th.is-sorted-asc::after { content: " ▲"; color: #8fd8b3; }
|
||||
#ammoTable thead th.is-sorted-desc::after { content: " ▼"; color: #8fd8b3; }
|
||||
|
||||
.table-scroll { overflow:auto; border:1px solid rgba(0,255,102,.25); }
|
||||
.spread-table { width:100%; border-collapse:collapse; }
|
||||
.spread-table th, .spread-table td { padding:.5rem .75rem; border-bottom:1px solid rgba(0,255,102,.15); }
|
||||
.spread-table thead th { position:sticky; top:0; background:#0b0b0b; }
|
||||
.spread-table tbody tr:hover { background:rgba(0,255,102,.05); }
|
||||
Reference in New Issue
Block a user