qube_rails 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +216 -0
- data/README.md +242 -69
- data/app/assets/javascripts/qube_rails/question.js +425 -38
- data/app/assets/stylesheets/qube_rails.css +1201 -907
- data/app/controllers/qube_rails/connections_controller.rb +23 -6
- data/app/controllers/qube_rails/questions_controller.rb +39 -7
- data/app/controllers/qube_rails/runs_controller.rb +4 -3
- data/app/models/qube_rails/connection.rb +22 -2
- data/app/models/qube_rails/run.rb +28 -10
- data/app/views/qube_rails/_error.html.erb +2 -2
- data/app/views/qube_rails/_question.html.erb +4 -1
- data/app/views/qube_rails/question/_choice.html.erb +36 -11
- data/app/views/qube_rails/question/_exit_button.html.erb +8 -0
- data/app/views/qube_rails/question/_field.html.erb +4 -3
- data/app/views/qube_rails/question/_footer.html.erb +19 -5
- data/app/views/qube_rails/question/_pick.html.erb +8 -3
- data/app/views/qube_rails/question/_picks.html.erb +4 -2
- data/app/views/qube_rails/question/_question.html.erb +22 -7
- data/app/views/qube_rails/question/_submit.html.erb +9 -0
- data/app/views/qube_rails/question/fields/_boolean.html.erb +2 -2
- data/app/views/qube_rails/question/fields/_number.html.erb +2 -2
- data/app/views/qube_rails/question/fields/_rows.html.erb +17 -4
- data/app/views/qube_rails/question/fields/_search.html.erb +3 -1
- data/app/views/qube_rails/question/fields/_select.html.erb +6 -5
- data/app/views/qube_rails/question/fields/_text.html.erb +2 -2
- data/app/views/qube_rails/question/rows/_segmented.html.erb +3 -1
- data/app/views/qube_rails/run_status/_detail.html.erb +5 -1
- data/app/views/qube_rails/run_status/_status.html.erb +5 -2
- data/config/locales/en.yml +23 -1
- data/db/migrate/20261031000000_add_qube_connection_type_and_run_headline.rb +12 -0
- data/lib/generators/qube_rails/templates/initializer.rb.tt +12 -4
- data/lib/qube_rails/configuration.rb +3 -2
- data/lib/qube_rails/connection_events.rb +3 -0
- data/lib/qube_rails/operation.rb +115 -32
- data/lib/qube_rails/question_view.rb +235 -29
- data/lib/qube_rails/rows_view.rb +18 -5
- data/lib/qube_rails/run_status_view.rb +12 -7
- data/lib/qube_rails/storyboard/ask_about_add.json +8 -10
- data/lib/qube_rails/storyboard/choose.json +8 -5
- data/lib/qube_rails/storyboard/enum_select.json +4 -3
- data/lib/qube_rails/storyboard/missing_record.json +10 -13
- data/lib/qube_rails/storyboard/name_clash.json +10 -18
- data/lib/qube_rails/storyboard/near_match.json +12 -14
- data/lib/qube_rails/storyboard/number_boolean.json +4 -3
- data/lib/qube_rails/storyboard/record_search.json +14 -15
- data/lib/qube_rails/storyboard/refusal.json +10 -18
- data/lib/qube_rails/storyboard/rows.json +11 -14
- data/lib/qube_rails/storyboard.rb +8 -3
- data/lib/qube_rails/sync_status.rb +4 -2
- data/lib/qube_rails/version.rb +1 -1
- data/lib/qube_rails/view_helpers.rb +4 -2
- data/lib/qube_rails.rb +2 -2
- metadata +5 -2
|
@@ -1,1115 +1,1409 @@
|
|
|
1
1
|
/* qube_rails: opt-in looks for the QuickBooks screens (a question, a record's status, the
|
|
2
|
-
storyboard). Every selector is inside :where(), so it has no specificity and
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
storyboard). Every selector is inside :where(), so it has no specificity, and it all sits in
|
|
3
|
+
the "components" cascade layer, after "base" and before "utilities" (Tailwind's order, declared
|
|
4
|
+
here so it holds whichever stylesheet loads first): your unlayered CSS and your utility classes
|
|
5
|
+
win, and a reset in "base" (Tailwind v4's preflight) doesn't strip it. Theme it with the
|
|
6
|
+
--qube-* variables (README, "Styling"), on :root or any element around the screens. No reset, no global styles: only qube- elements are touched.
|
|
5
7
|
Dark mode follows the page's color-scheme: with `color-scheme: light dark` on your page, the
|
|
6
8
|
accent, status colours and surfaces switch with prefers-color-scheme. */
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
--qube-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
10
|
-
--qube-accent-color: var(--qube-accent, #2563eb);
|
|
11
|
-
--qube-accent-text-color: var(--qube-accent-text, #fff);
|
|
12
|
-
--qube-border-color: var(--qube-border, color-mix(in srgb, currentColor 14%, transparent));
|
|
13
|
-
--qube-control-border-color: var(--qube-control-border, color-mix(in srgb, currentColor 24%, transparent));
|
|
14
|
-
--qube-tint-color: color-mix(in srgb, currentColor 4%, transparent);
|
|
15
|
-
--qube-radius-size: var(--qube-radius, 8px);
|
|
16
|
-
--qube-control-radius: calc(var(--qube-radius-size) - 2px);
|
|
17
|
-
--qube-gap-size: var(--qube-gap, 16px);
|
|
18
|
-
--qube-muted-color: var(--qube-muted, color-mix(in srgb, currentColor 62%, transparent));
|
|
19
|
-
--qube-error-color: var(--qube-error, #c2410c);
|
|
20
|
-
--qube-success-color: var(--qube-success, #15803d);
|
|
21
|
-
--qube-warning-color: var(--qube-warning, #d97706);
|
|
22
|
-
--qube-surface-color: var(--qube-surface, transparent);
|
|
23
|
-
--qube-solid-color: var(--qube-surface, Canvas);
|
|
24
|
-
font-family: var(--qube-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
|
|
25
|
-
font-size: var(--qube-font-size, 0.875rem);
|
|
26
|
-
line-height: 1.5;
|
|
27
|
-
}
|
|
10
|
+
@layer theme, base, components, utilities;
|
|
28
11
|
|
|
29
|
-
@
|
|
12
|
+
@layer components {
|
|
30
13
|
:where(.qube-question, .qube-run-status, .qube-error, .qube-storyboard) {
|
|
31
|
-
--qube-
|
|
32
|
-
--qube-
|
|
33
|
-
--qube-
|
|
34
|
-
--qube-
|
|
14
|
+
--qube-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
15
|
+
--qube-accent-color: var(--qube-accent, #2563eb);
|
|
16
|
+
--qube-accent-text-color: var(--qube-accent-text, #fff);
|
|
17
|
+
--qube-border-color: var(--qube-border, color-mix(in srgb, currentColor 14%, transparent));
|
|
18
|
+
--qube-control-border-color: var(--qube-control-border, color-mix(in srgb, currentColor 24%, transparent));
|
|
19
|
+
--qube-tint-color: color-mix(in srgb, currentColor 4%, transparent);
|
|
20
|
+
--qube-radius-size: var(--qube-radius, 8px);
|
|
21
|
+
--qube-control-radius: calc(var(--qube-radius-size) - 2px);
|
|
22
|
+
--qube-gap-size: var(--qube-gap, 16px);
|
|
23
|
+
--qube-muted-color: var(--qube-muted, color-mix(in srgb, currentColor 62%, transparent));
|
|
24
|
+
--qube-error-color: var(--qube-error, #c2410c);
|
|
25
|
+
--qube-success-color: var(--qube-success, #15803d);
|
|
26
|
+
--qube-warning-color: var(--qube-warning, #d97706);
|
|
27
|
+
--qube-surface-color: var(--qube-surface, transparent);
|
|
28
|
+
--qube-solid-color: var(--qube-surface, Canvas);
|
|
29
|
+
font-family: var(--qube-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
|
|
30
|
+
font-size: var(--qube-font-size, 0.875rem);
|
|
31
|
+
line-height: 1.5;
|
|
35
32
|
}
|
|
36
|
-
}
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
border-radius: var(--qube-radius-size);
|
|
47
|
-
background: var(--qube-surface-color);
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
}
|
|
34
|
+
@supports (color: light-dark(#000, #fff)) {
|
|
35
|
+
:where(.qube-question, .qube-run-status, .qube-error, .qube-storyboard) {
|
|
36
|
+
--qube-accent-color: var(--qube-accent, light-dark(#2563eb, #3b82f6));
|
|
37
|
+
--qube-error-color: var(--qube-error, light-dark(#c2410c, #fb923c));
|
|
38
|
+
--qube-success-color: var(--qube-success, light-dark(#15803d, #4ade80));
|
|
39
|
+
--qube-warning-color: var(--qube-warning, light-dark(#d97706, #fbbf24));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
50
42
|
|
|
51
|
-
:
|
|
52
|
-
max-width: 65ch;
|
|
53
|
-
margin: 0;
|
|
54
|
-
font-size: 1.1429em;
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
line-height: 1.45;
|
|
57
|
-
text-wrap: pretty;
|
|
58
|
-
}
|
|
43
|
+
/* ---- The question card: the message first, then what it's about, then the choices */
|
|
59
44
|
|
|
60
|
-
/*
|
|
61
|
-
:where(.qube-question
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
font-size: 0.9286em;
|
|
65
|
-
}
|
|
45
|
+
/* Under the record's status, not touching it */
|
|
46
|
+
:where(.qube-run-status ~ .qube-question) {
|
|
47
|
+
margin-top: var(--qube-gap-size, 16px);
|
|
48
|
+
}
|
|
66
49
|
|
|
67
|
-
:where(.qube-question
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
:where(.qube-question) {
|
|
51
|
+
display: grid;
|
|
52
|
+
gap: var(--qube-gap-size);
|
|
53
|
+
max-width: var(--qube-max-width, 52rem);
|
|
54
|
+
padding: clamp(16px, 3vw, 24px);
|
|
55
|
+
border: 1px solid var(--qube-border-color);
|
|
56
|
+
border-radius: var(--qube-radius-size);
|
|
57
|
+
background: var(--qube-surface-color);
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
}
|
|
75
60
|
|
|
76
|
-
:where(.qube-question-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
61
|
+
:where(.qube-question-message) {
|
|
62
|
+
max-width: 65ch;
|
|
63
|
+
margin: 0;
|
|
64
|
+
font-size: 1.1429em;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 1.45;
|
|
67
|
+
text-wrap: pretty;
|
|
68
|
+
}
|
|
80
69
|
|
|
81
|
-
/*
|
|
82
|
-
|
|
83
|
-
|
|
70
|
+
/* What it's about: a quiet two-column key/value list */
|
|
71
|
+
:where(.qube-question-details) {
|
|
72
|
+
justify-self: start;
|
|
73
|
+
border-collapse: collapse;
|
|
74
|
+
font-size: 0.9286em;
|
|
75
|
+
}
|
|
84
76
|
|
|
85
|
-
:where(.qube-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
77
|
+
:where(.qube-question-details th) {
|
|
78
|
+
padding: 2px 24px 2px 0;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
text-align: left;
|
|
81
|
+
vertical-align: top;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
color: var(--qube-muted-color);
|
|
84
|
+
}
|
|
91
85
|
|
|
92
|
-
:where(.qube-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
86
|
+
:where(.qube-question-details td) {
|
|
87
|
+
padding: 2px 0;
|
|
88
|
+
font-variant-numeric: tabular-nums;
|
|
89
|
+
}
|
|
97
90
|
|
|
98
|
-
/*
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
gap: 8px;
|
|
102
|
-
}
|
|
91
|
+
/* ---- Choices, by kind: picks as option rows, each form choice its own section ("or" between),
|
|
92
|
+
exits in a footer row. At most one filled button: the first offered record's "Use this one", a
|
|
93
|
+
form's submit, or in a plain question the first choice. */
|
|
103
94
|
|
|
104
|
-
:where(.qube-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
min-height: 48px;
|
|
111
|
-
padding: 10px 14px;
|
|
112
|
-
font: inherit;
|
|
113
|
-
text-align: left;
|
|
114
|
-
color: inherit;
|
|
115
|
-
background: var(--qube-solid-color);
|
|
116
|
-
border: 1px solid var(--qube-control-border-color);
|
|
117
|
-
border-radius: var(--qube-control-radius);
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
user-select: none;
|
|
120
|
-
touch-action: manipulation;
|
|
121
|
-
-webkit-tap-highlight-color: transparent;
|
|
122
|
-
transition: transform 160ms var(--qube-ease-out), background-color 150ms ease, border-color 150ms ease;
|
|
123
|
-
}
|
|
95
|
+
:where(.qube-choices) {
|
|
96
|
+
display: grid;
|
|
97
|
+
gap: 16px;
|
|
98
|
+
padding-top: var(--qube-gap-size);
|
|
99
|
+
container: qube-choices / inline-size;
|
|
100
|
+
}
|
|
124
101
|
|
|
125
|
-
:where(.qube-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
}
|
|
102
|
+
:where(.qube-choice) {
|
|
103
|
+
display: grid;
|
|
104
|
+
gap: 12px;
|
|
105
|
+
margin: 0;
|
|
106
|
+
}
|
|
132
107
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
108
|
+
/* A pick: a quiet, full-width option row that says what clicking it does */
|
|
109
|
+
:where(.qube-picks) {
|
|
110
|
+
display: grid;
|
|
111
|
+
gap: 8px;
|
|
112
|
+
}
|
|
136
113
|
|
|
137
|
-
:where(.qube-pick
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
114
|
+
:where(.qube-pick) {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: space-between;
|
|
118
|
+
gap: 16px;
|
|
119
|
+
width: 100%;
|
|
120
|
+
min-height: 48px;
|
|
121
|
+
padding: 10px 14px;
|
|
122
|
+
font: inherit;
|
|
123
|
+
text-align: left;
|
|
124
|
+
color: inherit;
|
|
125
|
+
background: var(--qube-solid-color);
|
|
126
|
+
border: 1px solid var(--qube-control-border-color);
|
|
127
|
+
border-radius: var(--qube-control-radius);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
user-select: none;
|
|
130
|
+
touch-action: manipulation;
|
|
131
|
+
-webkit-tap-highlight-color: transparent;
|
|
132
|
+
transition: transform 160ms var(--qube-ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
|
|
133
|
+
}
|
|
144
134
|
|
|
145
|
-
:where(.qube-pick-
|
|
146
|
-
|
|
147
|
-
|
|
135
|
+
:where(.qube-pick-action) {
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
font-size: 0.9286em;
|
|
138
|
+
font-weight: 500;
|
|
139
|
+
color: var(--qube-accent-color);
|
|
140
|
+
white-space: nowrap;
|
|
141
|
+
}
|
|
148
142
|
|
|
149
|
-
:where(.qube-pick
|
|
150
|
-
|
|
151
|
-
}
|
|
143
|
+
:where(.qube-pick:active) {
|
|
144
|
+
transform: scale(0.99);
|
|
145
|
+
}
|
|
152
146
|
|
|
153
|
-
:where(.qube-pick-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
:where(.qube-pick-text) {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-wrap: wrap;
|
|
150
|
+
align-items: baseline;
|
|
151
|
+
gap: 2px 10px;
|
|
152
|
+
min-width: 0;
|
|
153
|
+
}
|
|
158
154
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
background: color-mix(in srgb, currentColor 4%, var(--qube-solid-color));
|
|
162
|
-
border-color: color-mix(in srgb, currentColor 34%, transparent);
|
|
155
|
+
:where(.qube-pick-label) {
|
|
156
|
+
font-weight: 500;
|
|
163
157
|
}
|
|
164
|
-
}
|
|
165
158
|
|
|
166
|
-
|
|
167
|
-
:
|
|
168
|
-
|
|
169
|
-
align-items: center;
|
|
170
|
-
gap: 12px;
|
|
171
|
-
font-size: 0.8571em;
|
|
172
|
-
color: var(--qube-muted-color);
|
|
173
|
-
}
|
|
159
|
+
:where(.qube-pick-detail) {
|
|
160
|
+
color: var(--qube-muted-color);
|
|
161
|
+
}
|
|
174
162
|
|
|
175
|
-
|
|
176
|
-
:where(.qube-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
163
|
+
/* A detail's parts (name, email, phone) wrap between, not inside, unless one is wider than the line */
|
|
164
|
+
:where(.qube-detail-part) {
|
|
165
|
+
display: inline-block;
|
|
166
|
+
max-width: 100%;
|
|
167
|
+
overflow-wrap: anywhere;
|
|
168
|
+
}
|
|
181
169
|
|
|
182
|
-
|
|
183
|
-
:
|
|
184
|
-
|
|
185
|
-
|
|
170
|
+
:where(.qube-pick-description) {
|
|
171
|
+
flex-basis: 100%;
|
|
172
|
+
font-size: 0.9286em;
|
|
173
|
+
color: var(--qube-muted-color);
|
|
174
|
+
}
|
|
186
175
|
|
|
187
|
-
|
|
188
|
-
:where(.qube-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
176
|
+
@media (hover: hover) and (pointer: fine) {
|
|
177
|
+
:where(.qube-pick:hover) {
|
|
178
|
+
background: color-mix(in srgb, currentColor 4%, var(--qube-solid-color));
|
|
179
|
+
border-color: color-mix(in srgb, currentColor 34%, transparent);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
194
182
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
183
|
+
/* "or" between picks and a form, or between forms */
|
|
184
|
+
:where(.qube-choice-divider) {
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: 12px;
|
|
188
|
+
font-size: 0.8571em;
|
|
189
|
+
color: var(--qube-muted-color);
|
|
190
|
+
}
|
|
199
191
|
|
|
200
|
-
:where(.qube-choice-
|
|
201
|
-
|
|
202
|
-
|
|
192
|
+
:where(.qube-choice-divider)::before,
|
|
193
|
+
:where(.qube-choice-divider)::after {
|
|
194
|
+
content: "";
|
|
195
|
+
flex: 1;
|
|
196
|
+
}
|
|
203
197
|
|
|
204
|
-
:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
gap: 8px;
|
|
209
|
-
min-height: 40px;
|
|
210
|
-
padding: 0 14px;
|
|
211
|
-
font: inherit;
|
|
212
|
-
font-weight: 500;
|
|
213
|
-
line-height: 1.25;
|
|
214
|
-
text-align: left;
|
|
215
|
-
color: inherit;
|
|
216
|
-
background: var(--qube-solid-color);
|
|
217
|
-
border: 1px solid var(--qube-control-border-color);
|
|
218
|
-
border-radius: var(--qube-control-radius);
|
|
219
|
-
cursor: pointer;
|
|
220
|
-
user-select: none;
|
|
221
|
-
touch-action: manipulation;
|
|
222
|
-
-webkit-tap-highlight-color: transparent;
|
|
223
|
-
transition:
|
|
224
|
-
transform 160ms var(--qube-ease-out),
|
|
225
|
-
background-color 150ms ease,
|
|
226
|
-
border-color 150ms ease,
|
|
227
|
-
color 150ms ease,
|
|
228
|
-
opacity 150ms ease;
|
|
229
|
-
}
|
|
198
|
+
/* A form choice: its fields, then its button row, in one column (a rows field takes the width) */
|
|
199
|
+
:where(.qube-choice-form) {
|
|
200
|
+
max-width: var(--qube-form-width, 36rem);
|
|
201
|
+
}
|
|
230
202
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
203
|
+
:where(.qube-choice-form:has(.qube-rows-field)) {
|
|
204
|
+
max-width: none;
|
|
205
|
+
}
|
|
235
206
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
207
|
+
/* Beside full-width picks a form takes the width too, so every button shares one right edge */
|
|
208
|
+
:where(.qube-question:has(.qube-picks) .qube-choice-form) {
|
|
209
|
+
max-width: none;
|
|
210
|
+
}
|
|
240
211
|
|
|
241
|
-
|
|
242
|
-
:
|
|
243
|
-
|
|
244
|
-
background: var(--qube-accent-color);
|
|
245
|
-
border-color: var(--qube-accent-color);
|
|
246
|
-
}
|
|
212
|
+
:where(.qube-choice-form .qube-label) {
|
|
213
|
+
font-size: 1em;
|
|
214
|
+
}
|
|
247
215
|
|
|
248
|
-
/*
|
|
249
|
-
:where(.qube-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
216
|
+
/* "(optional)" after a label */
|
|
217
|
+
:where(.qube-optional) {
|
|
218
|
+
font-weight: 400;
|
|
219
|
+
color: var(--qube-muted-color);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* A button row: cancel at the start, the rest (step count, Back, Next or the submit) at the end,
|
|
223
|
+
which is the right edge of the fields above. The exits' own row (the footer) is laid out the same. */
|
|
224
|
+
:where(.qube-choice-actions, .qube-choice-footer) {
|
|
225
|
+
display: flex;
|
|
226
|
+
flex-wrap: wrap;
|
|
227
|
+
align-items: center;
|
|
228
|
+
gap: 8px 16px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:where(.qube-choice-actions-start, .qube-choice-actions-end, .qube-choice-footer-start, .qube-choice-footer-end) {
|
|
232
|
+
display: flex;
|
|
233
|
+
flex-wrap: wrap;
|
|
234
|
+
align-items: center;
|
|
235
|
+
gap: 8px;
|
|
236
|
+
}
|
|
254
237
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
238
|
+
:where(.qube-choice-actions-end, .qube-choice-footer-end) {
|
|
239
|
+
justify-content: flex-end;
|
|
240
|
+
margin-inline-start: auto;
|
|
258
241
|
}
|
|
259
242
|
|
|
260
|
-
:where(.qube-choice-
|
|
261
|
-
|
|
262
|
-
|
|
243
|
+
:where(.qube-choice-actions-start:empty, .qube-choice-footer-start:empty, .qube-choice-footer-end:empty) {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* A ghost (cancel) at the start of a row: its text lines up with the fields' left edge */
|
|
248
|
+
:where(.qube-choice-actions-start, .qube-choice-footer-start) :where([data-qube-button="ghost"]) {
|
|
249
|
+
margin-inline-start: -14px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
:where(.qube-picks, .qube-choice-form) + :where(.qube-choice-footer) {
|
|
253
|
+
padding-top: 16px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* Exits with descriptions stack, each with its own, cancel last (still at the start) */
|
|
257
|
+
:where(.qube-choice-footer:has(.qube-choice-description)) {
|
|
258
|
+
flex-direction: column;
|
|
259
|
+
align-items: stretch;
|
|
260
|
+
gap: 16px;
|
|
263
261
|
}
|
|
264
262
|
|
|
265
|
-
:where(.qube-choice-
|
|
263
|
+
:where(.qube-choice-footer:has(.qube-choice-description)) :where(.qube-choice-footer-start, .qube-choice-footer-end) {
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
align-items: stretch;
|
|
266
|
+
gap: 16px;
|
|
267
|
+
margin-inline-start: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
:where(.qube-choice-footer:has(.qube-choice-description) .qube-choice-footer-start) {
|
|
271
|
+
order: 1;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/* Where a rows field is in its steps: "2 of 3", before Back */
|
|
275
|
+
:where(.qube-rows-step) {
|
|
276
|
+
margin-inline-end: 4px;
|
|
277
|
+
font-size: 0.9286em;
|
|
278
|
+
font-variant-numeric: tabular-nums;
|
|
279
|
+
color: var(--qube-muted-color);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy) {
|
|
283
|
+
display: inline-flex;
|
|
284
|
+
align-items: center;
|
|
285
|
+
justify-self: start;
|
|
286
|
+
gap: 8px;
|
|
287
|
+
min-height: 40px;
|
|
288
|
+
padding: 8px 14px;
|
|
289
|
+
box-sizing: border-box;
|
|
290
|
+
font: inherit;
|
|
291
|
+
font-weight: 500;
|
|
292
|
+
line-height: 1.25;
|
|
293
|
+
text-align: left;
|
|
266
294
|
color: inherit;
|
|
267
|
-
background: var(--qube-
|
|
295
|
+
background: var(--qube-solid-color);
|
|
296
|
+
border: 1px solid var(--qube-control-border-color);
|
|
297
|
+
border-radius: var(--qube-control-radius);
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
user-select: none;
|
|
300
|
+
touch-action: manipulation;
|
|
301
|
+
-webkit-tap-highlight-color: transparent;
|
|
302
|
+
transition:
|
|
303
|
+
transform 160ms var(--qube-ease-out),
|
|
304
|
+
background-color 150ms ease,
|
|
305
|
+
border-color 150ms ease,
|
|
306
|
+
color 150ms ease,
|
|
307
|
+
opacity 150ms ease;
|
|
268
308
|
}
|
|
269
|
-
}
|
|
270
309
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
310
|
+
/* Pressing gives way a little */
|
|
311
|
+
:where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:active:not(:disabled)) {
|
|
312
|
+
transform: scale(0.97);
|
|
313
|
+
}
|
|
275
314
|
|
|
276
|
-
:where(.qube-choice-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
color: var(--qube-muted-color);
|
|
281
|
-
}
|
|
315
|
+
:where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button):where(:disabled) {
|
|
316
|
+
opacity: 0.45;
|
|
317
|
+
cursor: not-allowed;
|
|
318
|
+
}
|
|
282
319
|
|
|
283
|
-
/*
|
|
320
|
+
/* The one primary action, and the retry */
|
|
321
|
+
:where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start) {
|
|
322
|
+
color: var(--qube-accent-text-color);
|
|
323
|
+
background: var(--qube-accent-color);
|
|
324
|
+
border-color: var(--qube-accent-color);
|
|
325
|
+
}
|
|
284
326
|
|
|
285
|
-
:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
327
|
+
/* Cancel: no box until hovered */
|
|
328
|
+
:where(.qube-choice-button[data-qube-button="ghost"]) {
|
|
329
|
+
color: var(--qube-muted-color);
|
|
330
|
+
background: transparent;
|
|
331
|
+
border-color: transparent;
|
|
332
|
+
}
|
|
289
333
|
|
|
290
|
-
|
|
334
|
+
@media (hover: hover) and (pointer: fine) {
|
|
335
|
+
:where(.qube-choice-button, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy):where(:hover:not(:disabled)) {
|
|
336
|
+
background: color-mix(in srgb, currentColor 6%, var(--qube-solid-color));
|
|
337
|
+
}
|
|
291
338
|
|
|
292
|
-
:where(.qube-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
339
|
+
:where(.qube-choice-button[data-qube-button="primary"], .qube-retry-start):where(:hover:not(:disabled)) {
|
|
340
|
+
background: color-mix(in srgb, var(--qube-accent-color) 88%, black);
|
|
341
|
+
border-color: color-mix(in srgb, var(--qube-accent-color) 88%, black);
|
|
342
|
+
}
|
|
296
343
|
|
|
297
|
-
:where(.qube-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
344
|
+
:where(.qube-choice-button[data-qube-button="ghost"]):where(:hover) {
|
|
345
|
+
color: inherit;
|
|
346
|
+
background: var(--qube-tint-color);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
303
349
|
|
|
304
|
-
:where(.qube-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
350
|
+
:where(.qube-choice-detail) {
|
|
351
|
+
font-weight: 400;
|
|
352
|
+
opacity: 0.72;
|
|
353
|
+
}
|
|
309
354
|
|
|
310
|
-
:where(.qube-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
355
|
+
:where(.qube-choice-description) {
|
|
356
|
+
max-width: 65ch;
|
|
357
|
+
margin: -4px 0 0;
|
|
358
|
+
font-size: 0.9286em;
|
|
359
|
+
color: var(--qube-muted-color);
|
|
360
|
+
}
|
|
315
361
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
min-height: 38px;
|
|
322
|
-
padding: 0 10px;
|
|
323
|
-
font: inherit;
|
|
324
|
-
color: inherit;
|
|
325
|
-
background: var(--qube-solid-color);
|
|
326
|
-
border: 1px solid var(--qube-control-border-color);
|
|
327
|
-
border-radius: var(--qube-control-radius);
|
|
328
|
-
transition: border-color 150ms ease;
|
|
329
|
-
}
|
|
362
|
+
/* Under a ghost button (no box), the description starts where the button's text does; at the
|
|
363
|
+
start of a row the ghost's text is already at the edge */
|
|
364
|
+
:where([data-qube-button="ghost"] ~ .qube-choice-description) {
|
|
365
|
+
padding-inline-start: 14px;
|
|
366
|
+
}
|
|
330
367
|
|
|
331
|
-
:where(.qube-
|
|
332
|
-
|
|
333
|
-
}
|
|
368
|
+
:where(.qube-choice-actions-start, .qube-choice-footer-start) :where([data-qube-button="ghost"] ~ .qube-choice-description) {
|
|
369
|
+
padding-inline-start: 0;
|
|
370
|
+
}
|
|
334
371
|
|
|
335
|
-
:
|
|
336
|
-
border-color: var(--qube-error-color);
|
|
337
|
-
}
|
|
372
|
+
/* ---- Focus: always visible from the keyboard, never removed */
|
|
338
373
|
|
|
339
|
-
:where(.qube-
|
|
340
|
-
|
|
341
|
-
|
|
374
|
+
:where(.qube-question, .qube-run-status, .qube-storyboard) :where(:focus-visible) {
|
|
375
|
+
outline: 2px solid var(--qube-accent-color);
|
|
376
|
+
outline-offset: 2px;
|
|
377
|
+
}
|
|
342
378
|
|
|
343
|
-
|
|
344
|
-
width: 16px;
|
|
345
|
-
height: 16px;
|
|
346
|
-
margin: 0;
|
|
347
|
-
accent-color: var(--qube-accent-color);
|
|
348
|
-
cursor: pointer;
|
|
349
|
-
}
|
|
379
|
+
/* ---- Fields */
|
|
350
380
|
|
|
351
|
-
|
|
381
|
+
:where(.qube-field) {
|
|
382
|
+
display: grid;
|
|
383
|
+
gap: 6px;
|
|
384
|
+
}
|
|
352
385
|
|
|
353
|
-
:where(.qube-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
386
|
+
:where(.qube-field-boolean) {
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
gap: 10px;
|
|
390
|
+
min-height: 40px;
|
|
391
|
+
}
|
|
357
392
|
|
|
358
|
-
:where(.qube-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
z-index: 20;
|
|
364
|
-
display: grid;
|
|
365
|
-
gap: 1px;
|
|
366
|
-
max-height: 16rem;
|
|
367
|
-
overflow-y: auto;
|
|
368
|
-
padding: 4px;
|
|
369
|
-
background: var(--qube-solid-color);
|
|
370
|
-
border: 1px solid var(--qube-border-color);
|
|
371
|
-
border-radius: var(--qube-radius-size);
|
|
372
|
-
box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.25), 0 2px 6px -2px rgb(0 0 0 / 0.08);
|
|
373
|
-
transform-origin: top center;
|
|
374
|
-
transition: opacity 150ms var(--qube-ease-out), transform 150ms var(--qube-ease-out);
|
|
375
|
-
}
|
|
393
|
+
:where(.qube-label, .qube-rows-label) {
|
|
394
|
+
margin: 0;
|
|
395
|
+
font-size: 0.9286em;
|
|
396
|
+
font-weight: 500;
|
|
397
|
+
}
|
|
376
398
|
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
transform: translateY(-4px) scale(0.98);
|
|
399
|
+
:where(.qube-field-boolean .qube-label) {
|
|
400
|
+
font-size: 1em;
|
|
401
|
+
font-weight: 400;
|
|
402
|
+
cursor: pointer;
|
|
382
403
|
}
|
|
383
|
-
}
|
|
384
404
|
|
|
385
|
-
:where(.qube-search-
|
|
386
|
-
|
|
387
|
-
|
|
405
|
+
:where(.qube-input, .qube-select, .qube-search-input) {
|
|
406
|
+
box-sizing: border-box;
|
|
407
|
+
width: 100%;
|
|
408
|
+
max-width: 28rem;
|
|
409
|
+
min-width: 8rem;
|
|
410
|
+
min-height: 38px;
|
|
411
|
+
padding: 0 10px;
|
|
412
|
+
font: inherit;
|
|
413
|
+
color: inherit;
|
|
414
|
+
background: var(--qube-solid-color);
|
|
415
|
+
border: 1px solid var(--qube-control-border-color);
|
|
416
|
+
border-radius: var(--qube-control-radius);
|
|
417
|
+
transition: border-color 150ms ease, background-color 150ms ease;
|
|
418
|
+
}
|
|
388
419
|
|
|
389
|
-
:where(.qube-search-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
min-height: 36px;
|
|
393
|
-
padding: 7px 10px;
|
|
394
|
-
font: inherit;
|
|
395
|
-
text-align: left;
|
|
396
|
-
color: inherit;
|
|
397
|
-
background: transparent;
|
|
398
|
-
border: 0;
|
|
399
|
-
border-radius: calc(var(--qube-radius-size) - 4px);
|
|
400
|
-
cursor: pointer;
|
|
401
|
-
}
|
|
420
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:focus) {
|
|
421
|
+
border-color: var(--qube-accent-color);
|
|
422
|
+
}
|
|
402
423
|
|
|
403
|
-
|
|
404
|
-
:
|
|
405
|
-
|
|
406
|
-
}
|
|
424
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:user-invalid, [aria-invalid="true"]) {
|
|
425
|
+
border-color: var(--qube-error-color);
|
|
426
|
+
}
|
|
407
427
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
428
|
+
/* A search box being typed in has no pick yet, which isn't a mistake: the error edge waits
|
|
429
|
+
until the focus leaves it (or QuBe Sync refuses the answer) */
|
|
430
|
+
:where(.qube-search-input:user-invalid:focus:not([aria-invalid="true"])) {
|
|
431
|
+
border-color: var(--qube-accent-color);
|
|
432
|
+
}
|
|
413
433
|
|
|
414
|
-
:where(.qube-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
434
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:disabled) {
|
|
435
|
+
opacity: 0.5;
|
|
436
|
+
}
|
|
418
437
|
|
|
419
|
-
|
|
420
|
-
|
|
438
|
+
:where(.qube-checkbox) {
|
|
439
|
+
width: 16px;
|
|
440
|
+
height: 16px;
|
|
441
|
+
margin: 0;
|
|
442
|
+
accent-color: var(--qube-accent-color);
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
}
|
|
421
445
|
|
|
422
|
-
:
|
|
423
|
-
gap: 12px;
|
|
424
|
-
}
|
|
446
|
+
/* ---- The search box: a combobox whose matches drop down from the input */
|
|
425
447
|
|
|
426
|
-
:where(.qube-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
gap: 8px;
|
|
431
|
-
font-size: 0.9286em;
|
|
432
|
-
}
|
|
448
|
+
:where(.qube-search) {
|
|
449
|
+
position: relative;
|
|
450
|
+
max-width: 28rem;
|
|
451
|
+
}
|
|
433
452
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
453
|
+
/* In a form choice they fill its column, so the submit lines up (after the widths above) */
|
|
454
|
+
:where(.qube-choice-form) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
|
|
455
|
+
max-width: none;
|
|
456
|
+
}
|
|
437
457
|
|
|
438
|
-
:
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
458
|
+
/* A picked match: a check in the box and an accent edge, so its text reads as the selection */
|
|
459
|
+
:where(.qube-search[data-qube-picked] .qube-search-input) {
|
|
460
|
+
padding-inline-start: 34px;
|
|
461
|
+
font-weight: 500;
|
|
462
|
+
background: color-mix(in srgb, var(--qube-accent-color) 6%, var(--qube-solid-color));
|
|
463
|
+
border-color: color-mix(in srgb, var(--qube-accent-color) 60%, var(--qube-control-border-color));
|
|
464
|
+
}
|
|
442
465
|
|
|
443
|
-
:where(.qube-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
466
|
+
:where(.qube-search[data-qube-picked])::before {
|
|
467
|
+
content: "";
|
|
468
|
+
position: absolute;
|
|
469
|
+
inset-inline-start: 11px;
|
|
470
|
+
top: 0;
|
|
471
|
+
width: 16px;
|
|
472
|
+
height: 100%;
|
|
473
|
+
max-height: 38px;
|
|
474
|
+
background: var(--qube-accent-color);
|
|
475
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
|
|
476
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
|
|
477
|
+
pointer-events: none;
|
|
478
|
+
animation: qube-picked-in 240ms var(--qube-ease-out);
|
|
479
|
+
}
|
|
448
480
|
|
|
449
|
-
:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
481
|
+
/* The check confirms the pick: it pops in, not from nothing */
|
|
482
|
+
@keyframes qube-picked-in {
|
|
483
|
+
from {
|
|
484
|
+
opacity: 0;
|
|
485
|
+
transform: scale(0.7);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
455
488
|
|
|
456
|
-
:where(.qube-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
489
|
+
:where(.qube-search-results) {
|
|
490
|
+
position: absolute;
|
|
491
|
+
top: calc(100% + 4px);
|
|
492
|
+
left: 0;
|
|
493
|
+
right: 0;
|
|
494
|
+
z-index: 20;
|
|
495
|
+
display: grid;
|
|
496
|
+
gap: 1px;
|
|
497
|
+
max-height: 16rem;
|
|
498
|
+
overflow-y: auto;
|
|
499
|
+
padding: 4px;
|
|
500
|
+
background: var(--qube-solid-color);
|
|
501
|
+
border: 1px solid var(--qube-border-color);
|
|
502
|
+
border-radius: var(--qube-radius-size);
|
|
503
|
+
box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.25), 0 2px 6px -2px rgb(0 0 0 / 0.08);
|
|
504
|
+
transform-origin: top center;
|
|
505
|
+
transition: opacity 150ms var(--qube-ease-out), transform 150ms var(--qube-ease-out);
|
|
506
|
+
}
|
|
463
507
|
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
508
|
+
/* Enters from the input; closes at once */
|
|
509
|
+
@starting-style {
|
|
510
|
+
:where(.qube-search-results) {
|
|
511
|
+
opacity: 0;
|
|
512
|
+
transform: translateY(-4px) scale(0.98);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
467
515
|
|
|
468
|
-
:where(.qube-
|
|
469
|
-
|
|
470
|
-
}
|
|
516
|
+
:where(.qube-search-results:empty) {
|
|
517
|
+
display: none;
|
|
518
|
+
}
|
|
471
519
|
|
|
472
|
-
:where(.qube-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
520
|
+
:where(.qube-search-result) {
|
|
521
|
+
display: grid;
|
|
522
|
+
gap: 2px;
|
|
523
|
+
min-height: 36px;
|
|
524
|
+
padding: 7px 10px;
|
|
525
|
+
font: inherit;
|
|
526
|
+
text-align: left;
|
|
527
|
+
color: inherit;
|
|
528
|
+
background: transparent;
|
|
529
|
+
border: 0;
|
|
530
|
+
border-radius: calc(var(--qube-radius-size) - 4px);
|
|
531
|
+
cursor: pointer;
|
|
532
|
+
}
|
|
477
533
|
|
|
478
|
-
:
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
534
|
+
/* The highlighted match: instant, from the keyboard or the pointer */
|
|
535
|
+
:where(.qube-search-result[aria-selected="true"]) {
|
|
536
|
+
background: color-mix(in srgb, var(--qube-accent-color) 12%, transparent);
|
|
537
|
+
}
|
|
483
538
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
}
|
|
539
|
+
:where(.qube-search-result [data-qube-search-detail]) {
|
|
540
|
+
font-size: 0.9286em;
|
|
541
|
+
color: var(--qube-muted-color);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
:where(.qube-search-results [data-qube-search-note]) {
|
|
545
|
+
padding: 7px 10px;
|
|
546
|
+
color: var(--qube-muted-color);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* ---- A rows field: a block per record, its fields stacked. Nothing scrolls sideways: each
|
|
550
|
+
record's name sits beside its fields when there's room, above them when there isn't. */
|
|
551
|
+
|
|
552
|
+
:where(.qube-rows-field) {
|
|
553
|
+
gap: 12px;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
:where(.qube-rows-set-all) {
|
|
557
|
+
display: flex;
|
|
558
|
+
flex-wrap: wrap;
|
|
559
|
+
align-items: center;
|
|
560
|
+
gap: 8px;
|
|
561
|
+
font-size: 0.9286em;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
:where(.qube-rows-set-all-label) {
|
|
565
|
+
color: var(--qube-muted-color);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
:where(.qube-set-all-button) {
|
|
569
|
+
min-height: 36px;
|
|
570
|
+
padding: 0 12px;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
:where(.qube-rows) {
|
|
574
|
+
display: grid;
|
|
575
|
+
container-type: inline-size;
|
|
576
|
+
}
|
|
488
577
|
|
|
489
|
-
@container (min-width: 36rem) {
|
|
490
578
|
:where(.qube-row) {
|
|
491
|
-
|
|
492
|
-
gap: 12px
|
|
493
|
-
|
|
579
|
+
display: grid;
|
|
580
|
+
gap: 12px;
|
|
581
|
+
padding: 16px 0;
|
|
494
582
|
}
|
|
495
583
|
|
|
496
584
|
:where(.qube-row-header) {
|
|
497
|
-
|
|
498
|
-
|
|
585
|
+
display: flex;
|
|
586
|
+
flex-wrap: wrap;
|
|
587
|
+
align-items: baseline;
|
|
588
|
+
gap: 2px 8px;
|
|
589
|
+
min-width: 0;
|
|
499
590
|
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
:where(.qube-row .qube-label) {
|
|
503
|
-
font-size: 0.9286em;
|
|
504
|
-
}
|
|
505
591
|
|
|
506
|
-
:where(.qube-row-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
592
|
+
:where(.qube-row-label) {
|
|
593
|
+
font-weight: 500;
|
|
594
|
+
}
|
|
510
595
|
|
|
511
|
-
|
|
512
|
-
:
|
|
513
|
-
|
|
514
|
-
transition: opacity 150ms var(--qube-ease-out);
|
|
515
|
-
}
|
|
596
|
+
:where(.qube-row-detail) {
|
|
597
|
+
color: var(--qube-muted-color);
|
|
598
|
+
}
|
|
516
599
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
600
|
+
:where(.qube-row-body) {
|
|
601
|
+
display: grid;
|
|
602
|
+
gap: 12px;
|
|
603
|
+
min-width: 0;
|
|
520
604
|
}
|
|
521
|
-
}
|
|
522
605
|
|
|
523
|
-
|
|
524
|
-
:
|
|
525
|
-
|
|
526
|
-
|
|
606
|
+
:where(.qube-row-fields) {
|
|
607
|
+
display: grid;
|
|
608
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
|
|
609
|
+
gap: 12px 16px;
|
|
610
|
+
}
|
|
527
611
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
612
|
+
/* Nothing to show yet (no choice made): no gap for it */
|
|
613
|
+
:where(.qube-row-fields:not(:has(> .qube-row-cell:not([hidden])))) {
|
|
614
|
+
display: none;
|
|
615
|
+
}
|
|
533
616
|
|
|
534
|
-
|
|
535
|
-
:where(.qube-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}
|
|
617
|
+
@container (min-width: 36rem) {
|
|
618
|
+
:where(.qube-row) {
|
|
619
|
+
grid-template-columns: 12rem minmax(0, 1fr);
|
|
620
|
+
gap: 12px 24px;
|
|
621
|
+
align-items: start;
|
|
622
|
+
}
|
|
541
623
|
|
|
542
|
-
:where(.qube-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
clip-path: inset(50%);
|
|
548
|
-
white-space: nowrap;
|
|
549
|
-
}
|
|
624
|
+
:where(.qube-row-header) {
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
padding-top: 9px;
|
|
627
|
+
}
|
|
628
|
+
}
|
|
550
629
|
|
|
551
|
-
:where(.qube-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
gap: 2px;
|
|
555
|
-
width: fit-content;
|
|
556
|
-
max-width: 100%;
|
|
557
|
-
padding: 3px;
|
|
558
|
-
border-radius: calc(var(--qube-control-radius) + 2px);
|
|
559
|
-
background: color-mix(in srgb, currentColor 7%, transparent);
|
|
560
|
-
box-sizing: border-box;
|
|
561
|
-
}
|
|
630
|
+
:where(.qube-row .qube-label) {
|
|
631
|
+
font-size: 0.9286em;
|
|
632
|
+
}
|
|
562
633
|
|
|
563
|
-
:where(.qube-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
align-items: center;
|
|
568
|
-
justify-content: center;
|
|
569
|
-
min-height: 36px;
|
|
570
|
-
padding: 0 14px;
|
|
571
|
-
font-weight: 500;
|
|
572
|
-
color: var(--qube-muted-color);
|
|
573
|
-
border-radius: var(--qube-control-radius);
|
|
574
|
-
cursor: pointer;
|
|
575
|
-
user-select: none;
|
|
576
|
-
-webkit-tap-highlight-color: transparent;
|
|
577
|
-
transition:
|
|
578
|
-
transform 160ms var(--qube-ease-out),
|
|
579
|
-
background-color 150ms ease,
|
|
580
|
-
color 150ms ease,
|
|
581
|
-
box-shadow 150ms ease;
|
|
582
|
-
}
|
|
634
|
+
:where(.qube-row-fields) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
|
|
635
|
+
max-width: none;
|
|
636
|
+
min-width: 0;
|
|
637
|
+
}
|
|
583
638
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
margin: 0;
|
|
590
|
-
opacity: 0;
|
|
591
|
-
cursor: pointer;
|
|
592
|
-
}
|
|
639
|
+
/* A field that starts to apply fades in; one that stops is gone at once (hidden) */
|
|
640
|
+
:where(.qube-row-cell) {
|
|
641
|
+
min-width: 0;
|
|
642
|
+
transition: opacity 150ms var(--qube-ease-out);
|
|
643
|
+
}
|
|
593
644
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
645
|
+
@starting-style {
|
|
646
|
+
:where(.qube-row-cell) {
|
|
647
|
+
opacity: 0;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
599
650
|
|
|
600
|
-
:
|
|
601
|
-
|
|
602
|
-
|
|
651
|
+
/* What the record already has: read-only */
|
|
652
|
+
:where(.qube-row-preset) {
|
|
653
|
+
gap: 6px;
|
|
654
|
+
}
|
|
603
655
|
|
|
604
|
-
:where(.qube-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
656
|
+
:where(.qube-row-preset-value) {
|
|
657
|
+
display: flex;
|
|
658
|
+
align-items: center;
|
|
659
|
+
min-height: 38px;
|
|
660
|
+
}
|
|
608
661
|
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
662
|
+
/* The record's choice (create it, or use one QuickBooks has): a segmented control */
|
|
663
|
+
:where(.qube-segmented-field) {
|
|
664
|
+
min-width: 0;
|
|
665
|
+
margin: 0;
|
|
666
|
+
padding: 0;
|
|
667
|
+
border: 0;
|
|
668
|
+
}
|
|
613
669
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
670
|
+
:where(.qube-visually-hidden) {
|
|
671
|
+
position: absolute;
|
|
672
|
+
width: 1px;
|
|
673
|
+
height: 1px;
|
|
674
|
+
overflow: hidden;
|
|
675
|
+
clip-path: inset(50%);
|
|
676
|
+
white-space: nowrap;
|
|
617
677
|
}
|
|
618
|
-
}
|
|
619
678
|
|
|
620
|
-
@container (max-width: 24rem) {
|
|
621
679
|
:where(.qube-segmented) {
|
|
680
|
+
display: flex;
|
|
681
|
+
flex-wrap: wrap;
|
|
682
|
+
gap: 2px;
|
|
683
|
+
width: fit-content;
|
|
684
|
+
max-width: 100%;
|
|
685
|
+
padding: 3px;
|
|
686
|
+
border-radius: calc(var(--qube-control-radius) + 2px);
|
|
687
|
+
background: color-mix(in srgb, currentColor 7%, transparent);
|
|
688
|
+
box-sizing: border-box;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
:where(.qube-segment) {
|
|
692
|
+
position: relative;
|
|
693
|
+
display: inline-flex;
|
|
694
|
+
flex: 1 1 auto;
|
|
695
|
+
align-items: center;
|
|
696
|
+
justify-content: center;
|
|
697
|
+
min-height: 36px;
|
|
698
|
+
padding: 7px 14px;
|
|
699
|
+
box-sizing: border-box;
|
|
700
|
+
font-weight: 500;
|
|
701
|
+
line-height: 1.5;
|
|
702
|
+
text-align: center;
|
|
703
|
+
color: var(--qube-muted-color);
|
|
704
|
+
border-radius: var(--qube-control-radius);
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
user-select: none;
|
|
707
|
+
-webkit-tap-highlight-color: transparent;
|
|
708
|
+
transition:
|
|
709
|
+
transform 160ms var(--qube-ease-out),
|
|
710
|
+
background-color 150ms ease,
|
|
711
|
+
color 150ms ease,
|
|
712
|
+
box-shadow 150ms ease;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
:where(.qube-segment-input) {
|
|
716
|
+
position: absolute;
|
|
717
|
+
inset: 0;
|
|
622
718
|
width: 100%;
|
|
719
|
+
height: 100%;
|
|
720
|
+
margin: 0;
|
|
721
|
+
opacity: 0;
|
|
722
|
+
cursor: pointer;
|
|
623
723
|
}
|
|
624
|
-
}
|
|
625
724
|
|
|
626
|
-
|
|
627
|
-
:
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
margin-top: 2px;
|
|
632
|
-
padding: 0;
|
|
633
|
-
font: inherit;
|
|
634
|
-
font-size: 0.9286em;
|
|
635
|
-
font-weight: 500;
|
|
636
|
-
color: var(--qube-accent-color);
|
|
637
|
-
background: none;
|
|
638
|
-
border: 0;
|
|
639
|
-
cursor: pointer;
|
|
640
|
-
transition: transform 160ms var(--qube-ease-out);
|
|
641
|
-
}
|
|
725
|
+
:where(.qube-segment:has(:checked)) {
|
|
726
|
+
color: inherit;
|
|
727
|
+
background: var(--qube-solid-color);
|
|
728
|
+
box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 0 0 1px var(--qube-border-color);
|
|
729
|
+
}
|
|
642
730
|
|
|
643
|
-
:where(.qube-
|
|
644
|
-
|
|
645
|
-
}
|
|
731
|
+
:where(.qube-segment:active) {
|
|
732
|
+
transform: scale(0.97);
|
|
733
|
+
}
|
|
646
734
|
|
|
647
|
-
:where(.qube-
|
|
648
|
-
|
|
649
|
-
|
|
735
|
+
:where(.qube-segment:has(:focus-visible)) {
|
|
736
|
+
outline: 2px solid var(--qube-accent-color);
|
|
737
|
+
outline-offset: 2px;
|
|
738
|
+
}
|
|
650
739
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
text-underline-offset: 3px;
|
|
740
|
+
:where(.qube-segment:has(:disabled)) {
|
|
741
|
+
opacity: 0.5;
|
|
742
|
+
cursor: not-allowed;
|
|
655
743
|
}
|
|
656
|
-
}
|
|
657
744
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
745
|
+
@media (hover: hover) and (pointer: fine) {
|
|
746
|
+
:where(.qube-segment:hover) {
|
|
747
|
+
color: inherit;
|
|
748
|
+
}
|
|
662
749
|
}
|
|
663
|
-
}
|
|
664
750
|
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
751
|
+
@container (max-width: 24rem) {
|
|
752
|
+
:where(.qube-segmented) {
|
|
753
|
+
width: 100%;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
668
756
|
|
|
669
|
-
/*
|
|
757
|
+
/* "Use for all N": a text button under a filled field */
|
|
758
|
+
:where(.qube-use-for-all) {
|
|
759
|
+
display: inline-flex;
|
|
760
|
+
align-items: center;
|
|
761
|
+
min-height: 32px;
|
|
762
|
+
margin-top: 2px;
|
|
763
|
+
padding: 0;
|
|
764
|
+
font: inherit;
|
|
765
|
+
font-size: 0.9286em;
|
|
766
|
+
font-weight: 500;
|
|
767
|
+
color: var(--qube-accent-color);
|
|
768
|
+
background: none;
|
|
769
|
+
border: 0;
|
|
770
|
+
cursor: pointer;
|
|
771
|
+
transition: transform 160ms var(--qube-ease-out);
|
|
772
|
+
}
|
|
670
773
|
|
|
671
|
-
:where(.qube-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
gap: 8px;
|
|
675
|
-
}
|
|
774
|
+
:where(.qube-use-for-all[hidden]) {
|
|
775
|
+
display: none;
|
|
776
|
+
}
|
|
676
777
|
|
|
677
|
-
:where(.qube-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
align-items: flex-start;
|
|
681
|
-
gap: 8px;
|
|
682
|
-
max-width: 100%;
|
|
683
|
-
margin: 0;
|
|
684
|
-
padding: 3px 12px 3px 10px;
|
|
685
|
-
font-weight: 500;
|
|
686
|
-
border: 1px solid var(--qube-border-color);
|
|
687
|
-
border-radius: 14px;
|
|
688
|
-
box-sizing: border-box;
|
|
689
|
-
background: var(--qube-tint-color);
|
|
690
|
-
}
|
|
778
|
+
:where(.qube-use-for-all:active) {
|
|
779
|
+
transform: scale(0.97);
|
|
780
|
+
}
|
|
691
781
|
|
|
692
|
-
:
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
border-radius: 50%;
|
|
699
|
-
background: var(--qube-dot-color);
|
|
700
|
-
}
|
|
782
|
+
@media (hover: hover) and (pointer: fine) {
|
|
783
|
+
:where(.qube-use-for-all:hover) {
|
|
784
|
+
text-decoration: underline;
|
|
785
|
+
text-underline-offset: 3px;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
701
788
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
789
|
+
/* What "Use for the other records too" just did, where the button was */
|
|
790
|
+
:where(.qube-used-for-all) {
|
|
791
|
+
display: flex;
|
|
792
|
+
align-items: center;
|
|
793
|
+
min-height: 32px;
|
|
794
|
+
margin-top: 2px;
|
|
795
|
+
font-size: 0.9286em;
|
|
796
|
+
color: var(--qube-muted-color);
|
|
797
|
+
}
|
|
705
798
|
|
|
706
|
-
:
|
|
707
|
-
|
|
708
|
-
|
|
799
|
+
/* What "Set all to" or "Use for all" just filled: a tint that fades out */
|
|
800
|
+
@keyframes qube-filled {
|
|
801
|
+
from {
|
|
802
|
+
background-color: color-mix(in srgb, var(--qube-accent-color) 22%, var(--qube-solid-color));
|
|
803
|
+
}
|
|
804
|
+
}
|
|
709
805
|
|
|
710
|
-
:where(.qube-
|
|
711
|
-
|
|
712
|
-
}
|
|
806
|
+
:where([data-qube-filled]) :where(.qube-input, .qube-select, .qube-search-input, .qube-segmented) {
|
|
807
|
+
animation: qube-filled 600ms ease-out;
|
|
808
|
+
}
|
|
713
809
|
|
|
714
|
-
:
|
|
715
|
-
--qube-dot-color: var(--qube-muted-color);
|
|
716
|
-
}
|
|
810
|
+
/* ---- Status: a compact pill with a coloured dot */
|
|
717
811
|
|
|
718
|
-
:where(.qube-run-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
812
|
+
:where(.qube-run-status) {
|
|
813
|
+
display: grid;
|
|
814
|
+
justify-items: start;
|
|
815
|
+
gap: 8px;
|
|
816
|
+
}
|
|
722
817
|
|
|
723
|
-
:where(.qube-run-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
818
|
+
:where(.qube-run-summary) {
|
|
819
|
+
--qube-dot-color: var(--qube-accent-color);
|
|
820
|
+
display: inline-flex;
|
|
821
|
+
align-items: flex-start;
|
|
822
|
+
gap: 8px;
|
|
823
|
+
max-width: 100%;
|
|
824
|
+
margin: 0;
|
|
825
|
+
padding: 3px 12px 3px 10px;
|
|
826
|
+
font-weight: 500;
|
|
827
|
+
border: 1px solid var(--qube-border-color);
|
|
828
|
+
border-radius: 14px;
|
|
829
|
+
box-sizing: border-box;
|
|
830
|
+
background: var(--qube-tint-color);
|
|
831
|
+
}
|
|
728
832
|
|
|
729
|
-
|
|
730
|
-
:
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
833
|
+
:where(.qube-run-summary)::before {
|
|
834
|
+
content: "";
|
|
835
|
+
flex-shrink: 0;
|
|
836
|
+
width: 8px;
|
|
837
|
+
height: 8px;
|
|
838
|
+
margin-top: calc(0.75em - 4px);
|
|
839
|
+
border-radius: 50%;
|
|
840
|
+
background: var(--qube-dot-color);
|
|
841
|
+
}
|
|
738
842
|
|
|
739
|
-
:where(.qube-
|
|
740
|
-
|
|
741
|
-
}
|
|
843
|
+
:where(.qube-sync-needs_answer .qube-run-summary, .qube-connection-stalled .qube-run-summary) {
|
|
844
|
+
--qube-dot-color: var(--qube-warning-color);
|
|
845
|
+
}
|
|
742
846
|
|
|
743
|
-
|
|
847
|
+
:where(.qube-sync-in_quickbooks .qube-run-summary, .qube-sync-done .qube-run-summary) {
|
|
848
|
+
--qube-dot-color: var(--qube-success-color);
|
|
849
|
+
}
|
|
744
850
|
|
|
745
|
-
:where(.qube-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
851
|
+
:where(.qube-sync-failed .qube-run-summary) {
|
|
852
|
+
--qube-dot-color: var(--qube-error-color);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
:where(.qube-sync-cancelled .qube-run-summary) {
|
|
856
|
+
--qube-dot-color: var(--qube-muted-color);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
:where(.qube-run-reason) {
|
|
860
|
+
max-width: 65ch;
|
|
861
|
+
margin: 0;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
:where(.qube-run-error-detail, .qube-run-quiet) {
|
|
865
|
+
max-width: 65ch;
|
|
866
|
+
margin: 0;
|
|
867
|
+
color: var(--qube-muted-color);
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
/* Why it waits: the connection stalled. Calm, like an error, in the warning colour */
|
|
871
|
+
:where(.qube-run-stall) {
|
|
872
|
+
max-width: 65ch;
|
|
873
|
+
margin: 0;
|
|
874
|
+
padding: 10px 14px;
|
|
875
|
+
border-radius: var(--qube-control-radius);
|
|
876
|
+
background: color-mix(in srgb, var(--qube-warning-color) 9%, transparent);
|
|
877
|
+
box-shadow: inset 3px 0 0 var(--qube-warning-color);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
:where(.qube-retry-start-form, .qube-redeliver-form) {
|
|
881
|
+
margin: 0;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/* ---- A one-shot error: calm, inline, a coloured edge */
|
|
754
885
|
|
|
755
|
-
@starting-style {
|
|
756
886
|
:where(.qube-error) {
|
|
757
|
-
|
|
758
|
-
|
|
887
|
+
max-width: 65ch;
|
|
888
|
+
margin: 0;
|
|
889
|
+
padding: 10px 14px;
|
|
890
|
+
border-radius: var(--qube-control-radius);
|
|
891
|
+
background: color-mix(in srgb, var(--qube-error-color) 8%, transparent);
|
|
892
|
+
box-shadow: inset 3px 0 0 var(--qube-error-color);
|
|
893
|
+
transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
|
|
759
894
|
}
|
|
760
|
-
}
|
|
761
895
|
|
|
762
|
-
|
|
896
|
+
@starting-style {
|
|
897
|
+
:where(.qube-error) {
|
|
898
|
+
opacity: 0;
|
|
899
|
+
transform: translateY(-4px);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
763
902
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
903
|
+
/* ---- Sections: what it's about, the choices, then the way out, each under a hairline */
|
|
904
|
+
|
|
905
|
+
:where(.qube-choices) {
|
|
906
|
+
border-top: 1px solid var(--qube-border-color);
|
|
767
907
|
}
|
|
768
908
|
|
|
769
|
-
|
|
770
|
-
|
|
909
|
+
/* The exits' row, or a lone form's button row, is the card's footer */
|
|
910
|
+
:where(.qube-choice-footer:not([data-qube-plain])),
|
|
911
|
+
:where(.qube-choices > .qube-choice-form:not(:has(~ .qube-choice-footer:not([hidden]))) > .qube-choice-actions) {
|
|
912
|
+
margin-top: 4px;
|
|
913
|
+
padding-top: 16px;
|
|
914
|
+
border-top: 1px solid var(--qube-border-color);
|
|
771
915
|
}
|
|
772
|
-
}
|
|
773
916
|
|
|
774
|
-
/*
|
|
917
|
+
/* A card that is one form is as wide as the form, so its lines and buttons end together */
|
|
918
|
+
:where(.qube-question:not(:has(.qube-picks, .qube-rows-field)):has(.qube-choice-form)) {
|
|
919
|
+
max-width: calc(var(--qube-form-width, 36rem) + 2 * clamp(16px, 3vw, 24px) + 2px);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/* ---- A chain (offered records with a search), a branch at a time */
|
|
923
|
+
|
|
924
|
+
/* The way back to the offered records, over a chain's search */
|
|
925
|
+
:where(.qube-branch-back) {
|
|
926
|
+
justify-self: start;
|
|
927
|
+
margin-inline-start: -14px;
|
|
928
|
+
}
|
|
775
929
|
|
|
776
|
-
|
|
777
|
-
:where(.qube-
|
|
930
|
+
/* The search keeps the width the offered records had, so the card doesn't move */
|
|
931
|
+
:where(.qube-question:has(.qube-branch-back)),
|
|
932
|
+
:where(.qube-question:has(.qube-branch-back) .qube-choice-form) {
|
|
933
|
+
max-width: none;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/* A search's note with no matches under it ("No matches", a failed search) is a line under the
|
|
937
|
+
box, not a floating list over the buttons */
|
|
938
|
+
:where(.qube-search-results:has(> [data-qube-search-note]):not(:has([data-qube-search-result]))) {
|
|
939
|
+
position: static;
|
|
940
|
+
padding: 0;
|
|
941
|
+
background: none;
|
|
942
|
+
border: 0;
|
|
943
|
+
box-shadow: none;
|
|
778
944
|
transform: none;
|
|
779
945
|
}
|
|
780
946
|
|
|
947
|
+
:where(.qube-search-results:not(:has([data-qube-search-result])) > [data-qube-search-note]) {
|
|
948
|
+
padding: 6px 0 0;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* Moving between a chain's branches (the script marks the question, so a page load is still):
|
|
952
|
+
the branch comes in from its side, the search from the right and the records from the left */
|
|
953
|
+
:where([data-qube-branch-moved] [data-qube-branch-part]:not(.qube-choice-button)) {
|
|
954
|
+
transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
|
|
955
|
+
}
|
|
956
|
+
|
|
781
957
|
@starting-style {
|
|
782
|
-
:where(
|
|
783
|
-
|
|
958
|
+
:where([data-qube-branch-moved="search"] [data-qube-branch-part]:not(.qube-choice-button)) {
|
|
959
|
+
opacity: 0;
|
|
960
|
+
transform: translateX(8px);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
:where([data-qube-branch-moved="offered"] [data-qube-branch-part]:not(.qube-choice-button)) {
|
|
964
|
+
opacity: 0;
|
|
965
|
+
transform: translateX(-8px);
|
|
784
966
|
}
|
|
785
967
|
}
|
|
786
968
|
|
|
787
|
-
|
|
788
|
-
|
|
969
|
+
/* "Use this one" arrives as a match is picked */
|
|
970
|
+
:where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
|
|
971
|
+
transition:
|
|
972
|
+
transform 160ms var(--qube-ease-out),
|
|
973
|
+
opacity 160ms var(--qube-ease-out),
|
|
974
|
+
background-color 150ms ease,
|
|
975
|
+
border-color 150ms ease,
|
|
976
|
+
color 150ms ease;
|
|
789
977
|
}
|
|
790
|
-
}
|
|
791
978
|
|
|
792
|
-
|
|
979
|
+
@starting-style {
|
|
980
|
+
:where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
|
|
981
|
+
opacity: 0;
|
|
982
|
+
transform: scale(0.97);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
793
985
|
|
|
794
|
-
:
|
|
795
|
-
display: grid;
|
|
796
|
-
gap: 24px;
|
|
797
|
-
max-width: 76rem;
|
|
798
|
-
margin: 0 auto;
|
|
799
|
-
padding: 24px 16px 64px;
|
|
800
|
-
box-sizing: border-box;
|
|
801
|
-
}
|
|
986
|
+
/* ---- Narrow screens: choices stack, full width */
|
|
802
987
|
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
988
|
+
/* A search's row that also holds the decline is long once "Use this one" joins it. Where it
|
|
989
|
+
wouldn't fit on a line, its end is on top and cancel under it from the start, so a pick
|
|
990
|
+
moves nothing */
|
|
991
|
+
@container qube-choices (max-width: 44rem) {
|
|
992
|
+
:where(.qube-choice[data-qube-choice-role="search"] > .qube-choice-actions:has(.qube-choice-actions-end > [data-qube-exit])) {
|
|
993
|
+
flex-direction: column-reverse;
|
|
994
|
+
align-items: stretch;
|
|
995
|
+
}
|
|
810
996
|
|
|
811
|
-
:where(.qube-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
line-height: 1.25;
|
|
816
|
-
letter-spacing: -0.01em;
|
|
817
|
-
}
|
|
997
|
+
:where(.qube-choice[data-qube-choice-role="search"] > .qube-choice-actions:has(.qube-choice-actions-end > [data-qube-exit]) > .qube-choice-actions-end) {
|
|
998
|
+
margin-inline-start: 0;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
818
1001
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
1002
|
+
@media (max-width: 30rem) {
|
|
1003
|
+
/* An offered record: its "Use this one" under its text, so the text has the whole width */
|
|
1004
|
+
:where(.qube-pick) {
|
|
1005
|
+
flex-wrap: wrap;
|
|
1006
|
+
gap: 10px;
|
|
1007
|
+
}
|
|
824
1008
|
|
|
825
|
-
:where(.qube-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
box-shadow: inset 3px 0 0 var(--qube-success-color);
|
|
831
|
-
}
|
|
1009
|
+
:where(.qube-pick-action.qube-choice-button) {
|
|
1010
|
+
flex-grow: 1;
|
|
1011
|
+
justify-content: center;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
832
1014
|
|
|
833
|
-
/*
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
border-radius: var(--qube-radius-size);
|
|
841
|
-
}
|
|
1015
|
+
/* A narrow question: a button row's end (step count, Back, the primary) on top, wrapping only if
|
|
1016
|
+
it must, and cancel under it; stacked exits fill the width */
|
|
1017
|
+
@container qube-choices (max-width: 30rem) {
|
|
1018
|
+
:where(.qube-choice-actions, .qube-choice-footer) {
|
|
1019
|
+
flex-direction: column-reverse;
|
|
1020
|
+
align-items: stretch;
|
|
1021
|
+
}
|
|
842
1022
|
|
|
843
|
-
:where(.qube-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
height: 1px;
|
|
847
|
-
overflow: hidden;
|
|
848
|
-
clip-path: inset(50%);
|
|
849
|
-
}
|
|
1023
|
+
:where(.qube-choice-actions-end, .qube-choice-footer-end) {
|
|
1024
|
+
margin-inline-start: 0;
|
|
1025
|
+
}
|
|
850
1026
|
|
|
851
|
-
:where(.qube-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
align-items: center;
|
|
855
|
-
min-height: 32px;
|
|
856
|
-
padding: 0 12px;
|
|
857
|
-
font-size: 0.9286em;
|
|
858
|
-
font-weight: 500;
|
|
859
|
-
color: var(--qube-muted-color);
|
|
860
|
-
border-radius: var(--qube-control-radius);
|
|
861
|
-
cursor: pointer;
|
|
862
|
-
transition: background-color 150ms ease, color 150ms ease;
|
|
863
|
-
}
|
|
1027
|
+
:where(.qube-choice-actions-start, .qube-choice-footer-start) {
|
|
1028
|
+
justify-content: flex-start;
|
|
1029
|
+
}
|
|
864
1030
|
|
|
865
|
-
:where(.qube-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
cursor: pointer;
|
|
871
|
-
}
|
|
1031
|
+
:where(.qube-choice-footer-end) :where(.qube-choice, .qube-choice-button),
|
|
1032
|
+
:where(.qube-choice-actions-end > .qube-choice-button) {
|
|
1033
|
+
flex-grow: 1;
|
|
1034
|
+
justify-content: center;
|
|
1035
|
+
}
|
|
872
1036
|
|
|
873
|
-
:where(.qube-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
1037
|
+
:where(.qube-choice-footer:has(.qube-choice-description)) :where(.qube-choice-button) {
|
|
1038
|
+
justify-self: stretch;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
877
1041
|
|
|
878
|
-
|
|
879
|
-
outline: 2px solid var(--qube-accent-color);
|
|
880
|
-
outline-offset: 2px;
|
|
881
|
-
}
|
|
1042
|
+
/* ---- Reduced motion: fades stay, movement goes */
|
|
882
1043
|
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
}
|
|
1044
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1045
|
+
:where(.qube-choice-button, .qube-retry-start, .qube-redeliver, .qube-set-all-button, .qube-storyboard-copy, .qube-pick):where(:active) {
|
|
1046
|
+
transform: none;
|
|
1047
|
+
}
|
|
887
1048
|
|
|
888
|
-
|
|
889
|
-
:where(.qube-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
z-index: 5;
|
|
893
|
-
display: flex;
|
|
894
|
-
gap: 16px;
|
|
895
|
-
margin: 0 -16px;
|
|
896
|
-
padding: 8px 16px;
|
|
897
|
-
overflow-x: auto;
|
|
898
|
-
background: var(--qube-solid-color);
|
|
899
|
-
border-bottom: 1px solid var(--qube-border-color);
|
|
900
|
-
}
|
|
1049
|
+
@starting-style {
|
|
1050
|
+
:where(.qube-search-results, .qube-error) {
|
|
1051
|
+
transform: none;
|
|
1052
|
+
}
|
|
901
1053
|
|
|
902
|
-
:where(.qube-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
1054
|
+
:where([data-qube-branch-moved] [data-qube-branch-part]:not(.qube-choice-button)),
|
|
1055
|
+
:where(.qube-choice[data-qube-choice-role="search"] .qube-choice-actions-end > button[type="submit"]) {
|
|
1056
|
+
transform: none;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
907
1059
|
|
|
908
|
-
:where(.qube-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
font-weight: 600;
|
|
912
|
-
white-space: nowrap;
|
|
913
|
-
color: var(--qube-muted-color);
|
|
914
|
-
}
|
|
1060
|
+
:where(.qube-segment, .qube-use-for-all):where(:active) {
|
|
1061
|
+
transform: none;
|
|
1062
|
+
}
|
|
915
1063
|
|
|
916
|
-
:where(.qube-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
padding: 0;
|
|
921
|
-
list-style: none;
|
|
922
|
-
}
|
|
1064
|
+
:where(.qube-search[data-qube-picked])::before {
|
|
1065
|
+
animation-name: qube-fade-in;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
923
1068
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
text-decoration: none;
|
|
930
|
-
border-radius: var(--qube-control-radius);
|
|
931
|
-
}
|
|
1069
|
+
@keyframes qube-fade-in {
|
|
1070
|
+
from {
|
|
1071
|
+
opacity: 0;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
932
1074
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
1075
|
+
/* ---- The storyboard (GET qube/storyboard): a gallery of every screen */
|
|
1076
|
+
|
|
1077
|
+
:where(.qube-storyboard) {
|
|
1078
|
+
display: grid;
|
|
1079
|
+
gap: 24px;
|
|
1080
|
+
max-width: 76rem;
|
|
1081
|
+
margin: 0 auto;
|
|
1082
|
+
padding: 24px 16px 64px;
|
|
1083
|
+
box-sizing: border-box;
|
|
936
1084
|
}
|
|
937
|
-
}
|
|
938
1085
|
|
|
939
|
-
:where(.qube-storyboard-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
1086
|
+
:where(.qube-storyboard-header) {
|
|
1087
|
+
display: flex;
|
|
1088
|
+
flex-wrap: wrap;
|
|
1089
|
+
align-items: flex-end;
|
|
1090
|
+
justify-content: space-between;
|
|
1091
|
+
gap: 16px;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
:where(.qube-storyboard-header h1) {
|
|
1095
|
+
margin: 0 0 4px;
|
|
1096
|
+
font-size: 1.5rem;
|
|
1097
|
+
font-weight: 600;
|
|
1098
|
+
line-height: 1.25;
|
|
1099
|
+
letter-spacing: -0.01em;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
:where(.qube-storyboard-note) {
|
|
1103
|
+
max-width: 70ch;
|
|
1104
|
+
margin: 0;
|
|
1105
|
+
color: var(--qube-muted-color);
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
:where(.qube-storyboard-notice) {
|
|
1109
|
+
margin: 0;
|
|
1110
|
+
padding: 10px 14px;
|
|
1111
|
+
border-radius: var(--qube-control-radius);
|
|
1112
|
+
background: color-mix(in srgb, var(--qube-success-color) 10%, transparent);
|
|
1113
|
+
box-shadow: inset 3px 0 0 var(--qube-success-color);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/* The canvas theme: App (as your page is), Light or Dark */
|
|
1117
|
+
:where(.qube-storyboard-theme) {
|
|
1118
|
+
display: inline-flex;
|
|
1119
|
+
gap: 2px;
|
|
1120
|
+
margin: 0;
|
|
1121
|
+
padding: 2px;
|
|
1122
|
+
border: 1px solid var(--qube-border-color);
|
|
1123
|
+
border-radius: var(--qube-radius-size);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
:where(.qube-storyboard-theme legend) {
|
|
1127
|
+
position: absolute;
|
|
1128
|
+
width: 1px;
|
|
1129
|
+
height: 1px;
|
|
1130
|
+
overflow: hidden;
|
|
1131
|
+
clip-path: inset(50%);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
:where(.qube-storyboard-theme label) {
|
|
1135
|
+
position: relative;
|
|
1136
|
+
display: inline-flex;
|
|
1137
|
+
align-items: center;
|
|
1138
|
+
min-height: 32px;
|
|
1139
|
+
padding: 0 12px;
|
|
1140
|
+
font-size: 0.9286em;
|
|
1141
|
+
font-weight: 500;
|
|
1142
|
+
color: var(--qube-muted-color);
|
|
1143
|
+
border-radius: var(--qube-control-radius);
|
|
1144
|
+
cursor: pointer;
|
|
1145
|
+
transition: background-color 150ms ease, color 150ms ease;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
:where(.qube-storyboard-theme input) {
|
|
1149
|
+
position: absolute;
|
|
1150
|
+
inset: 0;
|
|
1151
|
+
margin: 0;
|
|
1152
|
+
opacity: 0;
|
|
1153
|
+
cursor: pointer;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
:where(.qube-storyboard-theme label:has(:checked)) {
|
|
1157
|
+
color: inherit;
|
|
1158
|
+
background: color-mix(in srgb, currentColor 9%, transparent);
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
:where(.qube-storyboard-theme label:has(:focus-visible)) {
|
|
1162
|
+
outline: 2px solid var(--qube-accent-color);
|
|
1163
|
+
outline-offset: 2px;
|
|
1164
|
+
}
|
|
943
1165
|
|
|
944
|
-
@media (min-width: 60rem) {
|
|
945
1166
|
:where(.qube-storyboard-body) {
|
|
946
|
-
|
|
947
|
-
gap:
|
|
948
|
-
align-items: start;
|
|
1167
|
+
display: grid;
|
|
1168
|
+
gap: 24px;
|
|
949
1169
|
}
|
|
950
1170
|
|
|
1171
|
+
/* The screens' list: a sticky strip on a narrow screen, a sticky sidebar on a wide one */
|
|
951
1172
|
:where(.qube-storyboard-nav) {
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
overflow-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
border: 0;
|
|
1173
|
+
position: sticky;
|
|
1174
|
+
top: 0;
|
|
1175
|
+
z-index: 5;
|
|
1176
|
+
display: flex;
|
|
1177
|
+
gap: 16px;
|
|
1178
|
+
margin: 0 -16px;
|
|
1179
|
+
padding: 8px 16px;
|
|
1180
|
+
overflow-x: auto;
|
|
1181
|
+
background: var(--qube-solid-color);
|
|
1182
|
+
border-bottom: 1px solid var(--qube-border-color);
|
|
963
1183
|
}
|
|
964
1184
|
|
|
965
1185
|
:where(.qube-storyboard-nav-group) {
|
|
966
|
-
|
|
967
|
-
align-items:
|
|
1186
|
+
display: flex;
|
|
1187
|
+
align-items: center;
|
|
1188
|
+
gap: 4px;
|
|
968
1189
|
}
|
|
969
1190
|
|
|
970
1191
|
:where(.qube-storyboard-nav-title) {
|
|
971
|
-
margin: 0 0
|
|
1192
|
+
margin: 0 4px 0 0;
|
|
1193
|
+
font-size: 0.8571em;
|
|
1194
|
+
font-weight: 600;
|
|
1195
|
+
white-space: nowrap;
|
|
1196
|
+
color: var(--qube-muted-color);
|
|
972
1197
|
}
|
|
973
1198
|
|
|
974
1199
|
:where(.qube-storyboard-nav ul) {
|
|
975
|
-
|
|
1200
|
+
display: flex;
|
|
1201
|
+
gap: 2px;
|
|
1202
|
+
margin: 0;
|
|
1203
|
+
padding: 0;
|
|
1204
|
+
list-style: none;
|
|
976
1205
|
}
|
|
977
1206
|
|
|
978
1207
|
:where(.qube-storyboard-nav a) {
|
|
979
|
-
|
|
1208
|
+
display: block;
|
|
1209
|
+
padding: 6px 10px;
|
|
1210
|
+
white-space: nowrap;
|
|
1211
|
+
color: inherit;
|
|
1212
|
+
text-decoration: none;
|
|
1213
|
+
border-radius: var(--qube-control-radius);
|
|
980
1214
|
}
|
|
981
|
-
}
|
|
982
1215
|
|
|
983
|
-
:
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
}
|
|
1216
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1217
|
+
:where(.qube-storyboard-nav a:hover) {
|
|
1218
|
+
background: color-mix(in srgb, currentColor 6%, transparent);
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
988
1221
|
|
|
989
|
-
:where(.qube-storyboard-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
padding-top: 24px;
|
|
994
|
-
border-top: 1px solid var(--qube-border-color);
|
|
995
|
-
scroll-margin-top: 72px;
|
|
996
|
-
}
|
|
1222
|
+
:where(.qube-storyboard-nav a[aria-current]) {
|
|
1223
|
+
font-weight: 500;
|
|
1224
|
+
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
1225
|
+
}
|
|
997
1226
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1227
|
+
@media (min-width: 60rem) {
|
|
1228
|
+
:where(.qube-storyboard-body) {
|
|
1229
|
+
grid-template-columns: 13rem minmax(0, 1fr);
|
|
1230
|
+
gap: 40px;
|
|
1231
|
+
align-items: start;
|
|
1232
|
+
}
|
|
1002
1233
|
|
|
1003
|
-
:where(.qube-storyboard-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1234
|
+
:where(.qube-storyboard-nav) {
|
|
1235
|
+
top: 16px;
|
|
1236
|
+
flex-direction: column;
|
|
1237
|
+
gap: 20px;
|
|
1238
|
+
max-height: calc(100vh - 32px);
|
|
1239
|
+
margin: 0;
|
|
1240
|
+
padding: 0;
|
|
1241
|
+
overflow-x: hidden;
|
|
1242
|
+
overflow-y: auto;
|
|
1243
|
+
scrollbar-width: thin;
|
|
1244
|
+
background: none;
|
|
1245
|
+
border: 0;
|
|
1246
|
+
}
|
|
1009
1247
|
|
|
1010
|
-
:where(.qube-storyboard-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1248
|
+
:where(.qube-storyboard-nav-group) {
|
|
1249
|
+
flex-direction: column;
|
|
1250
|
+
align-items: stretch;
|
|
1251
|
+
}
|
|
1015
1252
|
|
|
1016
|
-
:where(.qube-storyboard-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}
|
|
1253
|
+
:where(.qube-storyboard-nav-title) {
|
|
1254
|
+
margin: 0 0 4px 10px;
|
|
1255
|
+
}
|
|
1020
1256
|
|
|
1021
|
-
:where(.qube-storyboard-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
opacity: 0;
|
|
1025
|
-
transition: opacity 150ms ease;
|
|
1026
|
-
}
|
|
1257
|
+
:where(.qube-storyboard-nav ul) {
|
|
1258
|
+
flex-direction: column;
|
|
1259
|
+
}
|
|
1027
1260
|
|
|
1028
|
-
:where(.qube-storyboard-
|
|
1029
|
-
|
|
1030
|
-
}
|
|
1261
|
+
:where(.qube-storyboard-nav a) {
|
|
1262
|
+
white-space: normal;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1031
1265
|
|
|
1032
|
-
:where(.qube-storyboard-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1266
|
+
:where(.qube-storyboard-screens) {
|
|
1267
|
+
display: grid;
|
|
1268
|
+
gap: 24px;
|
|
1269
|
+
min-width: 0;
|
|
1270
|
+
}
|
|
1036
1271
|
|
|
1037
|
-
:where(.qube-storyboard-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1272
|
+
:where(.qube-storyboard-panel) {
|
|
1273
|
+
display: grid;
|
|
1274
|
+
gap: 12px;
|
|
1275
|
+
min-width: 0;
|
|
1276
|
+
padding-top: 24px;
|
|
1277
|
+
border-top: 1px solid var(--qube-border-color);
|
|
1278
|
+
scroll-margin-top: 72px;
|
|
1279
|
+
}
|
|
1042
1280
|
|
|
1043
|
-
:where(.qube-storyboard-panel
|
|
1044
|
-
|
|
1045
|
-
|
|
1281
|
+
:where(.qube-storyboard-panel:first-child) {
|
|
1282
|
+
padding-top: 0;
|
|
1283
|
+
border-top: 0;
|
|
1284
|
+
}
|
|
1046
1285
|
|
|
1047
|
-
|
|
1048
|
-
:
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1286
|
+
:where(.qube-storyboard-panel-head) {
|
|
1287
|
+
display: flex;
|
|
1288
|
+
flex-wrap: wrap;
|
|
1289
|
+
align-items: baseline;
|
|
1290
|
+
gap: 4px 12px;
|
|
1291
|
+
}
|
|
1054
1292
|
|
|
1055
|
-
:where(.qube-storyboard
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
}
|
|
1293
|
+
:where(.qube-storyboard-panel h2) {
|
|
1294
|
+
margin: 0;
|
|
1295
|
+
font-size: 1.1429em;
|
|
1296
|
+
font-weight: 600;
|
|
1297
|
+
}
|
|
1060
1298
|
|
|
1061
|
-
:where(.qube-storyboard
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1299
|
+
:where(.qube-storyboard-panel h2 a) {
|
|
1300
|
+
color: inherit;
|
|
1301
|
+
text-decoration: none;
|
|
1302
|
+
}
|
|
1066
1303
|
|
|
1067
|
-
:where(.qube-storyboard-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1304
|
+
:where(.qube-storyboard-panel h2 a)::after {
|
|
1305
|
+
content: " #";
|
|
1306
|
+
color: var(--qube-muted-color);
|
|
1307
|
+
opacity: 0;
|
|
1308
|
+
transition: opacity 150ms ease;
|
|
1309
|
+
}
|
|
1071
1310
|
|
|
1072
|
-
:where(.qube-storyboard-
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1311
|
+
:where(.qube-storyboard-panel h2 a:hover, .qube-storyboard-panel h2 a:focus-visible)::after {
|
|
1312
|
+
opacity: 1;
|
|
1313
|
+
}
|
|
1075
1314
|
|
|
1076
|
-
:where(.qube-storyboard-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
cursor: pointer;
|
|
1081
|
-
}
|
|
1315
|
+
:where(.qube-storyboard-group) {
|
|
1316
|
+
font-size: 0.8571em;
|
|
1317
|
+
color: var(--qube-muted-color);
|
|
1318
|
+
}
|
|
1082
1319
|
|
|
1083
|
-
:where(.qube-storyboard-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
list-style: none;
|
|
1089
|
-
}
|
|
1320
|
+
:where(.qube-storyboard-open) {
|
|
1321
|
+
margin-left: auto;
|
|
1322
|
+
font-size: 0.9286em;
|
|
1323
|
+
color: var(--qube-muted-color);
|
|
1324
|
+
}
|
|
1090
1325
|
|
|
1091
|
-
:where(.qube-storyboard-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
gap: 8px;
|
|
1095
|
-
min-width: 0;
|
|
1096
|
-
}
|
|
1326
|
+
:where(.qube-storyboard-panel > .qube-storyboard-note) {
|
|
1327
|
+
margin-top: -6px;
|
|
1328
|
+
}
|
|
1097
1329
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1330
|
+
/* Each screen on a neutral canvas */
|
|
1331
|
+
:where(.qube-storyboard-canvas) {
|
|
1332
|
+
display: grid;
|
|
1333
|
+
padding: clamp(20px, 5vw, 48px) clamp(16px, 5vw, 48px);
|
|
1334
|
+
color: inherit;
|
|
1335
|
+
background: color-mix(in srgb, currentColor 2.5%, transparent);
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
:where(.qube-storyboard:has([data-qube-canvas-theme="light"]:checked) .qube-storyboard-canvas) {
|
|
1339
|
+
color-scheme: light;
|
|
1340
|
+
color: #18181b;
|
|
1341
|
+
background: #f6f6f7;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
:where(.qube-storyboard:has([data-qube-canvas-theme="dark"]:checked) .qube-storyboard-canvas) {
|
|
1345
|
+
color-scheme: dark;
|
|
1346
|
+
color: #ececee;
|
|
1347
|
+
background: #111113;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
:where(.qube-storyboard-empty) {
|
|
1351
|
+
margin: 0;
|
|
1352
|
+
color: var(--qube-muted-color);
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
:where(.qube-storyboard-files) {
|
|
1356
|
+
font-size: 0.9286em;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
:where(.qube-storyboard-files summary) {
|
|
1360
|
+
width: fit-content;
|
|
1361
|
+
padding: 6px 0;
|
|
1362
|
+
color: var(--qube-muted-color);
|
|
1363
|
+
cursor: pointer;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
:where(.qube-storyboard-files ul) {
|
|
1367
|
+
display: grid;
|
|
1368
|
+
gap: 4px;
|
|
1369
|
+
margin: 4px 0 0;
|
|
1370
|
+
padding: 0;
|
|
1371
|
+
list-style: none;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
:where(.qube-storyboard-files li) {
|
|
1375
|
+
display: flex;
|
|
1376
|
+
align-items: center;
|
|
1377
|
+
gap: 8px;
|
|
1378
|
+
min-width: 0;
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
:where(.qube-storyboard-files code) {
|
|
1382
|
+
min-width: 0;
|
|
1383
|
+
overflow-x: auto;
|
|
1384
|
+
padding: 4px 8px;
|
|
1385
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
1386
|
+
font-size: 0.9231em;
|
|
1387
|
+
white-space: nowrap;
|
|
1388
|
+
border-radius: var(--qube-control-radius);
|
|
1389
|
+
background: var(--qube-tint-color);
|
|
1390
|
+
user-select: all;
|
|
1391
|
+
}
|
|
1109
1392
|
|
|
1110
|
-
:where(.qube-storyboard-copy) {
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1393
|
+
:where(.qube-storyboard-copy) {
|
|
1394
|
+
flex-shrink: 0;
|
|
1395
|
+
min-height: 28px;
|
|
1396
|
+
padding: 0 10px;
|
|
1397
|
+
font-size: 0.9231em;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/* Hidden stays hidden: what needs the script (a rows field and its submit), a chain's branch not
|
|
1401
|
+
on show, a search's submit before a pick, and an exit's form in another form's button row (it
|
|
1402
|
+
takes no row of the grid). Last, so no rule above that sets display wins the zero-specificity tie. */
|
|
1403
|
+
:where([data-qube-needs-script][hidden]),
|
|
1404
|
+
:where([data-qube-branch-part][hidden]),
|
|
1405
|
+
:where(.qube-choice-button[hidden]),
|
|
1406
|
+
:where(.qube-choice[hidden]) {
|
|
1407
|
+
display: none;
|
|
1408
|
+
}
|
|
1115
1409
|
}
|