aboutsummaryrefslogtreecommitdiff
path: root/src/style.css
diff options
context:
space:
mode:
authorLalleSX2026-10-24 04:35:56 +0200
committerLalleSX2026-10-24 04:35:56 +0200
commitc4c1c840f8761ea45a3d2dcc912a59d8ced78cb5 (patch)
tree8fcbbfffb6a34af73697a703f77e6b82f191b91f /src/style.css
download3D-Electrophysics-c4c1c840f8761ea45a3d2dcc912a59d8ced78cb5.tar.gz
3D-Electrophysics-c4c1c840f8761ea45a3d2dcc912a59d8ced78cb5.zip
init
Diffstat (limited to 'src/style.css')
-rw-r--r--src/style.css104
1 files changed, 104 insertions, 0 deletions
diff --git a/src/style.css b/src/style.css
new file mode 100644
index 0000000..a1d6ced
--- /dev/null
+++ b/src/style.css
@@ -0,0 +1,104 @@
+:root {
+ font-family: Inter, 'Segoe UI', system-ui, sans-serif;
+ color: #dbe7f0;
+ background: #101822;
+ font-synthesis: none;
+ color-scheme: dark;
+ --mint: #91e2cb;
+ --muted: #98adbf;
+ --border: #2a394a;
+}
+* { box-sizing: border-box; }
+body { margin: 0; }
+button, select, input { font: inherit; }
+button, select { color: inherit; }
+button, a, select, input { -webkit-tap-highlight-color: transparent; }
+button { cursor: pointer; }
+a { color: var(--mint); text-underline-offset: 4px; }
+button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
+.app-header { min-height: 96px; display: flex; align-items: center; gap: 22px; padding: 20px 32px; border-bottom: 1px solid var(--border); background: #121d29; }
+.brand { flex-shrink: 0; font: 700 19px monospace; text-decoration: none; color: var(--mint); border: 1px solid #3c7069; border-radius: 9px; padding: 15px 12px; }
+.brand span { color: #516a79; padding: 0 3px; }
+h1 { font-size: 19px; font-weight: 600; margin: 0; }
+.header-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
+.status { margin-left: auto; color: var(--mint); font: 10px monospace; letter-spacing: 1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
+.status i { background: var(--mint); width: 6px; height: 6px; border-radius: 50%; }
+.subjects { background: #121d29; border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0 24px; }
+[role='tablist'] { display: flex; min-width: max-content; }
+[role='tab'] { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 20px 13px; font-size: 12px; color: var(--muted); white-space: nowrap; }
+[role='tab'] span { color: #71899d; font: 10px monospace; }
+[role='tab']:hover { background: #1b2b3a; color: #dbe7f0; }
+[role='tab'][aria-selected='true'] { color: var(--mint); border-bottom-color: var(--mint); background: #192b32; }
+[role='tab'][aria-selected='true'] span { color: var(--mint); }
+main { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100dvh - 153px); }
+.controls-panel { padding: 28px 25px; border-right: 1px solid var(--border); background: #15212e; }
+.eyebrow { font: 10px monospace; color: var(--mint); letter-spacing: 2px; margin: 0 0 14px; }
+h2 { font-size: 26px; font-weight: 550; letter-spacing: -0.5px; line-height: 1.25; margin: 0 0 15px; }
+p { line-height: 1.7; }
+.description { color: var(--muted); font-size: 13px; margin: 0 0 30px; }
+.parameter { margin: 24px 0; }
+.parameter-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
+label { font-size: 12px; color: #c2d0dd; }
+output { flex-shrink: 0; color: var(--mint); font: 12px monospace; }
+input[type='range'] { display: block; width: 100%; accent-color: var(--mint); margin: 14px 0 0; cursor: pointer; }
+input:disabled { opacity: 0.35; cursor: default; }
+select { display: block; width: 100%; padding: 10px 8px; border: 1px solid #3b4d60; border-radius: 6px; background: #1c2c3d; margin-top: 10px; font-size: 12px; }
+.panel-actions button { width: 100%; border: 1px solid #3b4d60; border-radius: 6px; background: #1c2c3d; padding: 11px; font-size: 12px; }
+button:hover { border-color: var(--mint); }
+.measurements { margin-top: 25px; border: 1px solid #2a4252; border-radius: 8px; padding: 4px 16px; background: #101c27; }
+.measurement { padding: 14px 0; }
+.measurement + .measurement { border-top: 1px solid #243342; }
+.measurement > span { display: block; font-size: 11px; color: var(--muted); }
+.measurement > div { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
+.measurement strong { font: 23px monospace; color: var(--mint); }
+.measurement small { font-size: 11px; color: var(--muted); }
+.workbench { min-width: 0; }
+#viewport { position: relative; height: clamp(480px, 64dvh, 800px); min-width: 0; overflow: hidden; }
+#viewport > canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
+.scene-toolbar { position: absolute; z-index: 1; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
+.view-tag { font: 10px monospace; color: #71899d; letter-spacing: 2px; }
+.scene-toolbar > div { display: flex; gap: 8px; }
+.scene-toolbar button { pointer-events: auto; background: #15212ee8; border: 1px solid #34495c; border-radius: 5px; padding: 7px 10px; font-size: 11px; }
+.legend { position: absolute; z-index: 1; pointer-events: none; left: 24px; top: 64px; display: flex; flex-wrap: wrap; gap: 8px 18px; right: 24px; }
+.legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
+.legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
+.scene-footer { position: absolute; z-index: 1; pointer-events: none; bottom: 0; padding: 24px 24px 12px; width: 100%; background: linear-gradient(transparent, #101822ed); }
+.scene-footer p { margin: 3px 0; color: #b3c8d7; font-size: 11px; line-height: 1.6; }
+.scene-footer .hint { color: #7890a4; font-size: 10px; }
+.learning-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 28px 32px; border-top: 1px solid var(--border); background: #121d29; }
+.learning-panel p { font-size: 13px; color: var(--muted); margin: 12px 0; }
+.learning-panel .eyebrow { color: var(--mint); font-size: 10px; margin: 0 0 14px; }
+.equations p { color: #e3ecf3; font: 16px ui-monospace, monospace; line-height: 1.8; margin: 4px 0; }
+.learning-panel a { font-size: 11px; }
+.challenge { border-left: 1px solid var(--border); padding-left: 30px; }
+.challenge > p:not(.eyebrow) { color: #cad8e4; }
+details { margin-top: 20px; }
+summary { color: var(--muted); font-size: 11px; cursor: pointer; }
+details p { font-size: 11px !important; }
+.webgl-error { position: absolute; z-index: 2; top: 140px; left: 12%; right: 12%; padding: 24px; background: #1e2937; border: 1px solid #ff967b; border-radius: 8px; color: #ffb79f; font-size: 14px; line-height: 1.7; }
+@media (min-width: 1600px) { main { grid-template-columns: 340px minmax(0, 1fr); } .controls-panel { padding: 32px; } }
+@media (max-width: 1100px) { .app-header { padding: 16px 24px; } .subjects { padding: 0 12px; } [role='tab'] { padding: 18px 12px; } main { grid-template-columns: 280px minmax(0, 1fr); } .controls-panel { padding: 24px 20px; } .learning-panel { grid-template-columns: 1fr; gap: 24px; padding: 25px; } .challenge { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; } }
+@media (max-width: 760px) {
+ .app-header { padding: 16px; gap: 13px; min-height: 88px; }
+ .brand { font-size: 15px; padding: 12px 8px; }
+ h1 { font-size: 15px; }
+ .header-title p { font-size: 10px; }
+ .status { display: none; }
+ main { display: flex; flex-direction: column; }
+ .controls-panel { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px; }
+ h2 { font-size: 25px; }
+ #parameters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
+ .parameter { min-width: 0; margin: 10px 0 15px; }
+ .parameter-label { flex-wrap: wrap; gap: 6px; }
+ .measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 18px; }
+ .measurement { min-width: 0; }
+ .measurement strong { font-size: 21px; overflow-wrap: anywhere; }
+ .measurement > div { flex-wrap: wrap; gap: 4px; }
+ .measurement:nth-child(2) { border-top: 0; }
+ #viewport { height: 520px; }
+ .scene-toolbar { top: 18px; left: 16px; right: 16px; }
+ .scene-toolbar button { font-size: 10px; padding: 7px; }
+ .legend { left: 16px; right: 16px; }
+ .scene-footer { padding: 20px 16px 12px; }
+ .learning-panel { padding: 24px; }
+}