-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathshell.css
More file actions
154 lines (138 loc) · 10.9 KB
/
Copy pathshell.css
File metadata and controls
154 lines (138 loc) · 10.9 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
153
154
/* Application-builder mockup shell — shared design primitives.
One source of truth for the look; every pillar mockup composes these classes.
Build boundary is encoded in markup: data-build="shell" = built in the builder,
.reuse (data-reuse="<component>") = existing Studio/objectui component, dropped in. */
:root {
--surface-1: #ffffff;
--surface-2: #f7f8fa;
--border: #e3e6ea;
--line: #eef0f2;
--text: #1f2733;
--muted: #7a828c;
--faint: #9aa0a8;
--accent: #2f6feb;
--accent-bg: #eaf1fe;
--chip: #f0f1f4;
--radius: 6px;
--font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #eceef1; padding: 24px; font-family: var(--font); }
/* ---- shell frame ---- */
.builder {
width: 1000px; margin: 0 auto; background: var(--surface-1);
border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
color: var(--text); font-size: 13px;
}
.topbar {
height: 44px; display: flex; align-items: center; gap: 24px;
padding: 0 16px; border-bottom: 1px solid var(--border);
}
.topbar .app { font-weight: 600; }
.topbar .pilltabs { display: flex; gap: 26px; margin: 0 auto; }
.topbar .pilltabs a { color: var(--muted); text-decoration: none; padding-bottom: 6px; }
.topbar .pilltabs a.active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.topbar .right { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.btn-publish { background: var(--accent); color: #fff; border: 0; border-radius: 5px; padding: 5px 12px; font-weight: 600; font-size: 12px; }
.body { display: flex; height: 560px; }
/* ---- left rail ---- */
.rail { width: 190px; background: var(--surface-2); border-right: 1px solid var(--border); padding: 14px 12px; }
.rail .label { font-size: 10.5px; letter-spacing: .6px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.rail .search { width: 100%; height: 26px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--muted); font-size: 11.5px; padding: 0 10px; line-height: 26px; }
.rail ul { list-style: none; margin: 12px 0 0; padding: 0; }
.rail li { padding: 6px 8px; border-radius: 5px; margin-bottom: 2px; }
.rail li.active { background: var(--accent-bg); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.rail .new { color: var(--muted); padding: 6px 8px; margin-top: 6px; }
/* ---- main zone ---- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.facettabs { height: 36px; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.facettabs a { color: var(--muted); text-decoration: none; padding-bottom: 8px; margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; }
.facettabs a.active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.facettabs .sep { width: 1px; height: 18px; background: var(--border); }
.facettabs .tag { font-size: 8.5px; color: var(--muted); background: var(--chip); border-radius: 7px; padding: 1px 6px; }
.toolbar { display: flex; align-items: center; gap: 18px; padding: 8px 16px; color: var(--muted); font-size: 11.5px; }
.toolbar .spacer { flex: 1; }
.toolbar .add { color: var(--accent); font-weight: 600; }
.workarea { flex: 1; padding: 0 16px 16px; overflow: auto; }
/* ---- reused-component marker ---- */
.reuse { position: relative; border: 1px dashed #c8ccd2; border-radius: var(--radius); }
.reuse > .reuse-tag { position: absolute; left: 10px; bottom: 6px; font-size: 9.5px; font-style: italic; color: var(--faint); background: var(--surface-1); padding: 0 4px; white-space: nowrap; }
/* ---- data grid (reused ListView) ---- */
table.grid { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.grid th { text-align: left; background: var(--surface-2); color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--border); }
table.grid td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.grid td.muted, table.grid th.muted { color: var(--muted); }
table.grid .col-selected { background: color-mix(in srgb, var(--accent-bg) 60%, transparent); }
table.grid th.col-selected { color: var(--accent); }
.grid-add { color: var(--muted); padding: 8px 12px 26px; }
/* ---- right inspector (reused protocol form) ---- */
.inspector { width: 220px; background: var(--surface-2); border-left: 1px solid var(--border); padding: 14px 16px; }
.inspector .eyebrow { font-size: 10.5px; letter-spacing: .4px; color: var(--muted); }
.inspector h3 { margin: 4px 0 10px; font-size: 14px; }
.inspector hr { border: 0; border-top: 1px solid var(--border); margin: 0 0 12px; }
.form { padding: 12px 12px 30px; }
.form .flabel { font-size: 10.5px; color: var(--muted); margin: 12px 0 5px; }
.form .flabel:first-child { margin-top: 0; }
.form .field { height: 26px; border: 1px solid var(--border); border-radius: 5px; background: #fff; font-size: 11.5px; padding: 0 10px; line-height: 26px; }
.form .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { background: var(--chip); border-radius: 11px; padding: 3px 10px; font-size: 10.5px; }
.form .add { color: var(--accent); font-size: 11px; }
.form .toggle-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.toggle { width: 36px; height: 18px; border-radius: 9px; background: #d7dbe0; position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 20px; }
/* ---- legend ---- */
.legend { display: flex; gap: 26px; padding: 8px 16px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--muted); }
.legend .sw { display: inline-block; width: 14px; height: 12px; vertical-align: -1px; margin-right: 6px; }
.legend .sw.built { border: 1px solid var(--text); }
.legend .sw.reused { border: 1px dashed #c8ccd2; }
/* ================================================================
Pillar-specific primitives — composed by the automation / interface
/ access / settings mockups. Same tokens; one shared look. */
/* ---- rail sub-groups + kind badges (interface nav tree, access, settings) ---- */
.rail .group { font-size: 10px; letter-spacing: .5px; color: var(--faint); text-transform: uppercase; margin: 14px 0 4px; }
.rail li { display: flex; align-items: center; gap: 6px; }
.rail li .kind { margin-left: auto; font-size: 8px; color: var(--faint); background: var(--chip); border-radius: 6px; padding: 1px 5px; text-transform: uppercase; letter-spacing: .3px; }
/* ---- flow canvas (automation) ---- */
.canvas-strip { display: flex; align-items: center; gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.canvas-strip .pill { border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; }
.canvas-strip .pill.on { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.canvas-strip .spacer { flex: 1; }
.canvas-strip .add { color: var(--accent); font-weight: 600; }
.canvas-wrap { flex: 1; padding: 0 16px 16px; overflow: auto; }
.canvas { position: relative; height: 100%; border: 1px dashed #c8ccd2; border-radius: var(--radius); padding: 28px 12px;
background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 16px 16px; }
.canvas .reuse-tag { position: absolute; left: 10px; bottom: 6px; font-size: 9.5px; font-style: italic; color: var(--faint); background: var(--surface-1); padding: 0 4px; }
.node { width: 260px; margin: 0 auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; display: flex; gap: 10px; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.node .ic { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.node .nlabel { font-weight: 600; font-size: 12px; }
.node .kind { font-size: 9px; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; }
.node-link { width: 1px; height: 22px; background: var(--border); margin: 0 auto; }
/* ---- source + live preview split (interface) ---- */
.split { display: flex; height: 100%; }
.split .code { flex: 1; background: #f6f8fa; border-right: 1px solid var(--border); padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: #4b5563; white-space: pre; overflow: auto; line-height: 1.75; }
.split .preview { flex: 1; padding: 16px 18px; overflow: auto; }
.split .preview .eyebrow { font-size: 9px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.split .preview h2 { font-size: 19px; margin: 6px 0 10px; }
.split .preview .card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-top: 10px; font-size: 11px; color: var(--muted); }
/* ---- permission matrix (access) ---- */
table.matrix { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.matrix th { text-align: center; background: var(--surface-2); color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.matrix th:first-child { text-align: left; }
table.matrix td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.matrix td:first-child { text-align: left; font-weight: 500; }
.ck { display: inline-block; width: 15px; height: 15px; border-radius: 4px; border: 1px solid #cfd4da; vertical-align: -2px; }
.ck.on { background: var(--accent); border-color: var(--accent); position: relative; }
.ck.on::after { content: "\2713"; color: #fff; font-size: 10px; line-height: 15px; position: absolute; left: 2.5px; top: -1px; }
.scope { font-size: 10px; color: var(--muted); background: var(--chip); border-radius: 10px; padding: 2px 9px; }
/* ---- settings (audience groups) ---- */
.settings { flex: 1; padding: 18px 22px; overflow: auto; }
.settings .sgroup { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.settings .sgroup > h4 { margin: 0; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.settings .sgroup > h4 .aud { margin-left: auto; font-size: 9px; color: var(--faint); background: var(--chip); border-radius: 6px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .4px; }
.settings .sub { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.settings .sub:last-child { border-bottom: 0; }
.settings .sub .subhead { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.settings .later { color: var(--faint); font-style: italic; }
.settings .tag { font-size: 8.5px; color: var(--muted); background: var(--chip); border-radius: 7px; padding: 1px 6px; }