Repository navigation
Expand file tree
/
Copy pathdecoder.css
More file actions
98 lines (94 loc) · 9.16 KB
/
Copy pathdecoder.css
File metadata and controls
98 lines (94 loc) · 9.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* Copyright 2026 TheMakersWorkbench.com. Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE. */
/* TMWB Component Decoder. Everything is scoped under .tmwb-dec so it can be embedded in any page. */
.tmwb-dec{--bg:#262a31;--panel:#2f343c;--field:#1f2328;--line:#434a55;--ink:#e8ecf2;--mute:#9aa5b5;--accent:#4aa3ff;--ok:#7bd88f;--bad:#ff8a80;
font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;max-width:760px;margin:0 auto;overflow:hidden}
.tmwb-dec *{box-sizing:border-box}
.tmwb-dec [hidden]{display:none!important}
.tmwb-dec .tabbar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:8px;background:#1d2025}
.tmwb-dec .tabbar button{flex:0 0 auto;padding:9px 16px;border:1px solid var(--line);border-bottom:none;background:#2a2e35;color:var(--mute);font:inherit;font-size:15.2px;border-radius:8px 8px 0 0;cursor:pointer;white-space:nowrap}
.tmwb-dec .tabbar button[aria-selected=true]{background:var(--bg);color:var(--ink);font-weight:600;position:relative;top:1px}
.tmwb-dec .pane{padding:18px 20px 22px}
.tmwb-dec .pills{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.tmwb-dec .pills button,.tmwb-dec .chip{padding:5px 13px;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:999px;font:inherit;font-size:14.08px;cursor:pointer}
.tmwb-dec .pills button[aria-pressed=true],.tmwb-dec .chip.on{background:var(--accent);border-color:var(--accent);color:#06121f;font-weight:600}
.tmwb-dec .gfx{display:block;width:100%;height:auto;max-height:260px;margin:4px auto 14px}
.tmwb-dec .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px 12px;margin-bottom:16px}
.tmwb-dec .field label{display:block;font-size:14.08px;color:var(--mute);margin-bottom:3px}
.tmwb-dec .sel{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:0 0 0 8px}
.tmwb-dec .sel i{flex:0 0 16px;height:16px;border-radius:3px;border:1px solid rgba(255,255,255,.35)}
.tmwb-dec select,.tmwb-dec input[type=text]{width:100%;min-width:0;padding:8px;font:inherit;font-size:15.2px;color:var(--ink);background:transparent;border:none;outline:none}
.tmwb-dec select option{background:#2f343c;color:#e8ecf2}
.tmwb-dec .inputrow{display:flex;gap:10px;margin-bottom:8px}
.tmwb-dec .inputrow .box{flex:1;background:var(--field);border:1px solid var(--line);border-radius:8px;padding:2px 6px;font-size:18.4px}
.tmwb-dec .inputrow .box:focus-within{border-color:var(--accent)}
.tmwb-dec .inputrow input{font-size:18.4px;letter-spacing:.04em}
.tmwb-dec .tryrow{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0 14px;font-size:13.6px;color:var(--mute)}
.tmwb-dec .results{display:grid;grid-template-columns:140px 1fr;gap:6px 10px;align-items:center;margin-top:6px}
.tmwb-dec .results .k{color:var(--mute);text-align:left}
.tmwb-dec .results .v{background:var(--field);border:1px solid #2a3037;border-radius:5px;padding:7px 10px;text-align:center;font-weight:600;min-height:36px}
.tmwb-dec .results .v.big{font-size:18.4px}
.tmwb-dec .notice{font-style:italic;color:var(--mute);margin:10px 0 6px;font-size:14.72px}
.tmwb-dec .err{color:var(--bad);font-weight:600;margin:10px 0}
.tmwb-dec .steps{margin:14px 0 0;padding:12px 14px 12px 32px;background:var(--panel);border-radius:8px;font-size:14.72px}
.tmwb-dec .steps li{margin:2px 0}
.tmwb-dec .alt{margin-top:16px;padding-top:12px;border-top:1px dashed var(--line)}
.tmwb-dec .alt h4,.tmwb-dec .detail h3{margin:0 0 6px}
.tmwb-dec .note{color:var(--mute);font-size:14.4px;margin:8px 0 0}
.tmwb-dec .bandlist{list-style:none;margin:12px 0 0;padding:0}
.tmwb-dec .bandlist li{padding:3px 0}
.tmwb-dec .dot{display:inline-block;width:.9em;height:.9em;border-radius:50%;border:1px solid rgba(255,255,255,.4);vertical-align:-1px;margin-right:8px}
.tmwb-dec .plist{display:grid;gap:6px;margin:10px 0}
.tmwb-dec .plist button{display:flex;gap:10px;align-items:baseline;text-align:left;padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;color:var(--ink);font:inherit;cursor:pointer}
.tmwb-dec .plist button[aria-pressed=true]{border-color:var(--accent);background:#243447}
.tmwb-dec .plist b{min-width:96px;font-family:ui-monospace,Consolas,monospace}
.tmwb-dec .plist span{color:var(--mute);font-size:14.08px}
.tmwb-dec .detail{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-top:10px}
.tmwb-dec .detail .tag{display:inline-block;background:var(--accent);color:#06121f;font-size:12px;font-weight:700;padding:1px 8px;border-radius:999px;margin-bottom:6px}
.tmwb-dec .detail dl{display:grid;grid-template-columns:150px 1fr;gap:5px 12px;margin:10px 0}
.tmwb-dec .detail dt{color:var(--mute)} .tmwb-dec .detail dd{margin:0}
.tmwb-dec .detail p{margin:6px 0}
.tmwb-dec .about p{margin:0 0 10px}
.tmwb-dec .about a{color:var(--accent)}
@media (max-width:540px){
.tmwb-dec .pane{padding:14px 12px 18px}
.tmwb-dec .results,.tmwb-dec .detail dl{grid-template-columns:1fr}
.tmwb-dec .results .k{margin-top:4px}
}
.tmwb-dec .reftables h4{margin:14px 0 4px;font-size:15.2px}
.tmwb-dec .reftables table{border-collapse:collapse;font-size:13.6px;margin:4px 0;width:100%}
.tmwb-dec .reftables th,.tmwb-dec .reftables td{border:1px solid var(--line);padding:3px 8px;text-align:left}
.tmwb-dec .reftables th{background:var(--panel)}
.tmwb-dec details summary{cursor:pointer;font-weight:600}
.tmwb-dec .tabbar button{padding:8px 4px;border:1px solid var(--line);border-radius:8px;background:#2a2e35;color:var(--mute);font:inherit;font-size:13.12px;line-height:1.2;text-align:center;cursor:pointer}
.tmwb-dec .tabbar button[aria-selected=true]{background:var(--accent);border-color:var(--accent);color:#06121f;font-weight:700;top:0}
@media (max-width:640px){.tmwb-dec .tabbar{grid-template-columns:repeat(4,1fr)}}
@media (max-width:380px){.tmwb-dec .tabbar{grid-template-columns:repeat(3,1fr)}}
.tmwb-dec input[type=number]{width:100%;padding:8px;font:inherit;color:var(--ink);background:transparent;border:none;outline:none}
.tmwb-dec .dec-head{padding:18px 20px 6px}
.tmwb-dec .dec-title{margin:0 0 6px;font-size:25.6px;line-height:1.2;color:var(--ink)}
.tmwb-dec .dec-links{display:flex;gap:16px;flex-wrap:wrap;font-size:14.4px}
.tmwb-dec a{color:var(--accent)}
.tmwb-dec .dec-foot{padding:12px 20px;border-top:1px solid var(--line);background:#1d2025;color:var(--mute);font-size:13.6px;text-align:center}
.tmwb-dec .about h3{margin:16px 0 6px;font-size:16px;color:var(--ink)}
.tmwb-dec .about h3:first-child{margin-top:0}
/* header v2 */
.tmwb-dec .dec-head{position:relative;text-align:center;padding:26px 22px 24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220' viewBox='0 0 420 220' fill='none' stroke='white' stroke-opacity='.11' stroke-width='2'%3E%3Cpath d='M0 40h90l20 20h70M180 60h60l25-25h155M0 120h60l25 25h120l20-20h195M300 220v-50l30-30h90M120 0v38'/%3E%3Ccircle cx='90' cy='40' r='4' fill='white' fill-opacity='.14'/%3E%3Ccircle cx='240' cy='60' r='4' fill='white' fill-opacity='.14'/%3E%3Ccircle cx='85' cy='145' r='4' fill='white' fill-opacity='.14'/%3E%3Ccircle cx='330' cy='140' r='4' fill='white' fill-opacity='.14'/%3E%3Ccircle cx='265' cy='35' r='4' fill='white' fill-opacity='.14'/%3E%3C/svg%3E"),linear-gradient(135deg,#0D2B5E 0%,#17458f 55%,#2a73cf 100%);border-bottom:3px solid #4aa3ff;overflow:hidden}
.tmwb-dec .dec-head::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(74,163,255,.35),transparent 70%);pointer-events:none}
.tmwb-dec .dec-hero{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:14px;text-align:center}
.tmwb-dec .dec-logo{flex:0 0 auto;width:78px;height:78px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.tmwb-dec .dec-eyebrow{font-size:11.52px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#9fd0ff;margin-bottom:2px}
.tmwb-dec .dec-title{margin:0;font-size:29.6px;line-height:1.15;font-weight:800;letter-spacing:-.01em;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.tmwb-dec .dec-tag{margin-top:4px;font-size:16.32px;color:#dcebff}
.tmwb-dec .dec-intro{position:relative;z-index:1;margin:0 auto 18px;text-align:center;max-width:62ch;color:#c9dcf4;font-size:14.88px;line-height:1.55}
.tmwb-dec .dec-head .dec-links{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tmwb-dec .dec-btn{display:inline-block;padding:8px 16px;border-radius:9px;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.08);color:#fff;font-size:14.4px;font-weight:600;text-decoration:none;transition:background .15s,transform .15s}
.tmwb-dec .dec-btn:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.tmwb-dec .dec-btn-primary{background:#4aa3ff;border-color:#4aa3ff;color:#06121f}
.tmwb-dec .dec-btn-primary:hover{background:#74b9ff}
@media (max-width:540px){
.tmwb-dec .dec-head{padding:16px 14px 16px}
.tmwb-dec .dec-logo{width:54px;height:54px}
.tmwb-dec .dec-title{font-size:22.4px}
.tmwb-dec .dec-tag{font-size:14.4px}
.tmwb-dec .dec-btn{padding:7px 13px;font-size:13.6px}
}