-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
152 lines (135 loc) · 8.08 KB
/
Copy pathstyle.css
File metadata and controls
152 lines (135 loc) · 8.08 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/* DIMS-network — light, simplistic shared styles */
/* The palette is defined in the core, beside the documentation and the figures
that read it, and vendored here by tools/sync_tokens.py at the pinned
release. @import must come before every rule, so it stays at the top. */
@import url("vendor/tokens.css");
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
background:var(--bg);
color:var(--text);
font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
-webkit-font-smoothing:antialiased;
}
.wrap{max-width:1000px;margin:0 auto;padding:0 20px}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;
background:var(--panel2);border:1px solid var(--line);border-radius:5px;padding:.08em .38em}
/* nav */
.nav{border-bottom:1px solid var(--line);background:var(--bg);position:sticky;top:0;z-index:10}
.nav-in{display:flex;align-items:center;justify-content:space-between;height:56px}
.brand{font-weight:700;color:var(--text);letter-spacing:.01em}
.brand:hover{text-decoration:none}
.nav-links{display:flex;gap:22px;font-size:.95rem}
.nav-links a{color:var(--muted);font-weight:600}
.nav-links a:hover{color:var(--text);text-decoration:none}
.nav-links a.active{color:var(--text);border-bottom:2px solid var(--web);padding-bottom:2px}
/* header */
header{padding:56px 0 24px}
.eyebrow{letter-spacing:.2em;text-transform:uppercase;color:var(--web);font-weight:700;
font-size:.72rem;margin-bottom:12px}
h1{font-size:2.4rem;line-height:1.12;margin:0 0 14px;color:var(--text);font-weight:800;letter-spacing:-.01em}
.lede{color:var(--muted);font-size:1.08rem;max-width:740px;margin:0}
.lede b{color:var(--text)}
section{padding:26px 0}
h2{font-size:.95rem;text-transform:uppercase;letter-spacing:.12em;color:var(--dim);
margin:0 0 16px;font-weight:700}
h3{margin:0 0 6px;font-size:1.05rem}
/* diagram (home) */
.diagram{background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:14px 14px 6px}
canvas{width:100%;height:auto;display:block;border-radius:10px}
.legend{display:flex;gap:20px;flex-wrap:wrap;justify-content:center;color:var(--muted);
font-size:.82rem;padding:10px 6px 12px}
.legend span{display:inline-flex;align-items:center;gap:8px}
.dot{width:12px;height:12px;border-radius:3px;display:inline-block}
.ln{width:24px;height:0;border-top:2px solid var(--dim)}
.ln.dash{border-top:2px dashed var(--dim)}
.hint{text-align:center;color:var(--dim);font-size:.78rem;margin:2px 0 0}
/* cards (home) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px 18px 16px;
display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s}
.card:hover{border-color:#b9c1ca;box-shadow:0 2px 10px rgba(31,35,40,.06)}
.card.web{border-top:3px solid var(--web)}
.card.py{border-top:3px solid var(--py)}
.card h3 a{color:var(--text)}
.badges{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 10px}
.badge{font-size:.66rem;letter-spacing:.04em;text-transform:uppercase;font-weight:700;
padding:3px 8px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.badge.root{color:#fff;background:var(--web);border-color:transparent}
.badge.base{color:#fff;background:var(--py);border-color:transparent}
.badge.app{color:var(--accent);border-color:#aacbf2}
.badge.tool{color:var(--amber);border-color:#e6cf94}
.badge.private{color:var(--amber);border-color:#e6cf94;background:#fdf6e3}
.card p{margin:0 0 14px;color:var(--muted);font-size:.92rem;flex:1}
.links{display:flex;gap:14px;flex-wrap:wrap;font-size:.86rem;font-weight:600}
.links .live::before{content:"▶ ";color:var(--web)}
/* Used by the markup but previously undefined, so each rendered unstyled. */
.muted{color:var(--dim)}
.hero-cta{margin:14px 0 0;display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}
.hero-cta a{font-weight:700;font-size:1rem}
.hero-note{color:var(--muted);font-size:.88rem;font-weight:400}
.tabpanel[hidden]{display:none}
.diagram-error{background:var(--panel2);border:1px solid var(--line);border-left:3px solid var(--amber);
border-radius:10px;padding:14px 16px;color:var(--muted);font-size:.9rem;margin:0}
.cite{background:var(--panel2);border:1px solid var(--line);border-left:3px solid var(--py);
border-radius:10px;padding:16px 18px;color:var(--muted);font-size:.92rem}
.cite b{color:var(--text)}
footer{padding:28px 0 56px;color:var(--dim);font-size:.85rem;border-top:1px solid var(--line);margin-top:20px}
/* ---- setup page ---- */
.path{border:1px solid var(--line);border-radius:14px;padding:24px 24px 8px;margin:0 0 22px;background:var(--panel)}
.path.builder{border-top:3px solid var(--web)}
.path.manual{border-top:3px solid var(--py)}
.path > h3{font-size:1.35rem;margin-bottom:2px}
.path .sub{color:var(--muted);margin:0 0 4px}
pre.code{background:#0d1117;color:#e6edf3;border-radius:10px;padding:14px 16px;overflow:auto;
font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;margin:8px 0}
pre.code .c{color:#8b949e} /* comment */
pre.code .k{color:#79c0ff} /* keyword/path */
.callout{border:1px solid var(--line);border-left:3px solid var(--accent);background:var(--panel2);
border-radius:8px;padding:12px 16px;margin:14px 0;font-size:.92rem;color:var(--muted)}
.callout b{color:var(--text)}
.callout.tip{border-left-color:var(--web)}
.callout.warn{border-left-color:var(--amber)}
.tree{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:14px 16px;
font:13px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text);
white-space:pre;overflow:auto;margin:10px 0}
.tree .p{color:var(--web2)} /* path segment */
.tree .v{color:var(--muted)} /* annotation */
.cta{display:inline-block;background:var(--web);color:#fff;font-weight:700;border-radius:8px;
padding:10px 18px;margin:6px 0 2px}
.cta:hover{background:var(--web2);text-decoration:none}
.path.manual .cta{background:var(--py)}
.path.manual .cta:hover{background:var(--py2)}
@media(max-width:560px){h1{font-size:1.9rem}.path{padding:18px 16px 6px}}
.mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:14px 0}
.mini > div{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:var(--panel)}
.mini h4{margin:0 0 4px;font-size:.95rem}
.mini p{margin:0;color:var(--muted);font-size:.88rem}
table.spec{border-collapse:collapse;width:100%;margin:12px 0;font-size:.9rem}
table.spec th,table.spec td{border-bottom:1px solid var(--line);padding:8px 10px;text-align:left;
vertical-align:top;color:var(--muted)}
table.spec th{color:var(--text);font-weight:700;font-size:.82rem;text-transform:uppercase;
letter-spacing:.06em}
table.spec td:first-child{color:var(--text);white-space:nowrap}
/* ---- expandable sections ---- */
/* The page teaches one short path and folds everything else away. Native
<details>, so it works without JavaScript and the browser still loads the
images inside — which is what keeps the screenshot placeholders honest. */
details.more{border:1px solid var(--line);border-radius:12px;background:var(--panel);
margin:0 0 14px;overflow:hidden}
details.more[open]{border-color:#c3cbd4;box-shadow:0 2px 10px rgba(31,35,40,.05)}
details.more > summary{list-style:none;cursor:pointer;padding:16px 20px;
display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
details.more > summary::-webkit-details-marker{display:none}
details.more > summary::before{content:"›";color:var(--web);font-weight:700;font-size:1.15rem;
line-height:1;transform:translateY(1px);transition:transform .15s}
details.more[open] > summary::before{transform:rotate(90deg) translateX(1px)}
details.more > summary:hover{background:var(--panel2)}
details.more > summary b{font-size:1.05rem}
details.more > summary .cost{color:var(--dim);font-size:.85rem;margin-left:auto}
details.more > summary .what{color:var(--muted);font-size:.92rem;flex-basis:100%;
padding-left:24px;margin-top:-2px}
.more-body{padding:2px 20px 18px;border-top:1px solid var(--line)}
.more-body > :first-child{margin-top:14px}