qube_rails 0.2.0 → 0.3.0
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 +321 -0
- data/README.md +406 -76
- data/app/assets/javascripts/qube_rails/question.js +469 -43
- data/app/assets/stylesheets/qube_rails.css +1349 -912
- data/app/controllers/qube_rails/connections_controller.rb +42 -9
- data/app/controllers/qube_rails/questions_controller.rb +39 -7
- data/app/controllers/qube_rails/runs_controller.rb +4 -3
- data/app/controllers/qube_rails/storyboard_controller.rb +1 -1
- data/app/models/qube_rails/connection.rb +131 -9
- data/app/models/qube_rails/quickbooks_record.rb +22 -0
- data/app/models/qube_rails/run.rb +28 -10
- data/app/views/qube_rails/_error.html.erb +2 -2
- data/app/views/qube_rails/_manage_connection.html.erb +19 -0
- data/app/views/qube_rails/_question.html.erb +4 -1
- data/app/views/qube_rails/question/_choice.html.erb +34 -11
- data/app/views/qube_rails/question/_disclosure.html.erb +7 -0
- 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 +12 -4
- data/app/views/qube_rails/question/_inline_search.html.erb +12 -0
- data/app/views/qube_rails/question/_pick.html.erb +29 -6
- data/app/views/qube_rails/question/_picks.html.erb +2 -1
- data/app/views/qube_rails/question/_question.html.erb +31 -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 +6 -3
- 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/app/views/qube_rails/storyboard/show.html.erb +4 -3
- data/config/locales/en.yml +30 -1
- data/config/routes.rb +2 -0
- data/db/migrate/20261031000000_add_qube_connection_type_and_run_headline.rb +12 -0
- data/db/migrate/20261124000000_add_qube_company_file_change.rb +17 -0
- data/lib/generators/qube_rails/templates/connection_events.rb.tt +17 -1
- data/lib/generators/qube_rails/templates/initializer.rb.tt +12 -4
- data/lib/qube_rails/configuration.rb +5 -2
- data/lib/qube_rails/connection_events.rb +70 -7
- data/lib/qube_rails/engine.rb +1 -0
- data/lib/qube_rails/link_check.rb +274 -0
- data/lib/qube_rails/operation.rb +116 -32
- data/lib/qube_rails/question_view.rb +293 -35
- data/lib/qube_rails/request.rb +2 -0
- 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 +9 -11
- data/lib/qube_rails/storyboard/choose.json +10 -7
- data/lib/qube_rails/storyboard/enum_select.json +5 -4
- data/lib/qube_rails/storyboard/missing_record.json +11 -14
- data/lib/qube_rails/storyboard/name_clash.json +51 -21
- data/lib/qube_rails/storyboard/near_match.json +18 -15
- data/lib/qube_rails/storyboard/number_boolean.json +5 -4
- data/lib/qube_rails/storyboard/record_search.json +15 -16
- data/lib/qube_rails/storyboard/refusal.json +15 -18
- data/lib/qube_rails/storyboard/rows.json +45 -31
- data/lib/qube_rails/storyboard.rb +28 -7
- data/lib/qube_rails/sync_status.rb +16 -3
- data/lib/qube_rails/version.rb +1 -1
- data/lib/qube_rails/view_helpers.rb +4 -2
- data/lib/qube_rails.rb +11 -2
- metadata +10 -2
|
@@ -1,1115 +1,1552 @@
|
|
|
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
|
+
}
|
|
254
221
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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;
|
|
258
229
|
}
|
|
259
230
|
|
|
260
|
-
:where(.qube-choice-
|
|
261
|
-
|
|
262
|
-
|
|
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;
|
|
263
236
|
}
|
|
264
237
|
|
|
265
|
-
:where(.qube-choice-
|
|
266
|
-
|
|
267
|
-
|
|
238
|
+
:where(.qube-choice-actions-end, .qube-choice-footer-end) {
|
|
239
|
+
justify-content: flex-end;
|
|
240
|
+
margin-inline-start: auto;
|
|
268
241
|
}
|
|
269
|
-
}
|
|
270
242
|
|
|
271
|
-
:where(.qube-choice-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
243
|
+
:where(.qube-choice-actions-start:empty, .qube-choice-footer-start:empty, .qube-choice-footer-end:empty) {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
275
246
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
color: var(--qube-muted-color);
|
|
281
|
-
}
|
|
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
|
+
}
|
|
282
251
|
|
|
283
|
-
|
|
252
|
+
:where(.qube-picks, .qube-choice-form) + :where(.qube-choice-footer) {
|
|
253
|
+
padding-top: 16px;
|
|
254
|
+
}
|
|
284
255
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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;
|
|
261
|
+
}
|
|
289
262
|
|
|
290
|
-
|
|
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
|
+
}
|
|
291
269
|
|
|
292
|
-
:where(.qube-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
270
|
+
:where(.qube-choice-footer:has(.qube-choice-description) .qube-choice-footer-start) {
|
|
271
|
+
order: 1;
|
|
272
|
+
}
|
|
296
273
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
+
}
|
|
303
281
|
|
|
304
|
-
:where(.qube-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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;
|
|
294
|
+
color: inherit;
|
|
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;
|
|
308
|
+
}
|
|
309
309
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
}
|
|
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
|
+
}
|
|
315
314
|
|
|
316
|
-
:where(.qube-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
min-width: 8rem;
|
|
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
|
-
}
|
|
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
|
+
}
|
|
330
319
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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
|
+
}
|
|
334
326
|
|
|
335
|
-
:
|
|
336
|
-
|
|
337
|
-
|
|
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
|
+
}
|
|
338
333
|
|
|
339
|
-
:
|
|
340
|
-
|
|
341
|
-
|
|
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
|
+
}
|
|
342
338
|
|
|
343
|
-
:where(.qube-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
accent-color: var(--qube-accent-color);
|
|
348
|
-
cursor: pointer;
|
|
349
|
-
}
|
|
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
|
+
}
|
|
350
343
|
|
|
351
|
-
|
|
344
|
+
:where(.qube-choice-button[data-qube-button="ghost"]):where(:hover) {
|
|
345
|
+
color: inherit;
|
|
346
|
+
background: var(--qube-tint-color);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
352
349
|
|
|
353
|
-
:where(.qube-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
350
|
+
:where(.qube-choice-detail) {
|
|
351
|
+
font-weight: 400;
|
|
352
|
+
opacity: 0.72;
|
|
353
|
+
}
|
|
357
354
|
|
|
358
|
-
:where(.qube-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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
|
-
}
|
|
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
|
+
}
|
|
376
361
|
|
|
377
|
-
/*
|
|
378
|
-
|
|
379
|
-
:where(.qube-
|
|
380
|
-
|
|
381
|
-
transform: translateY(-4px) scale(0.98);
|
|
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;
|
|
382
366
|
}
|
|
383
|
-
}
|
|
384
367
|
|
|
385
|
-
:where(.qube-
|
|
386
|
-
|
|
387
|
-
}
|
|
368
|
+
:where(.qube-choice-actions-start, .qube-choice-footer-start) :where([data-qube-button="ghost"] ~ .qube-choice-description) {
|
|
369
|
+
padding-inline-start: 0;
|
|
370
|
+
}
|
|
388
371
|
|
|
389
|
-
:
|
|
390
|
-
display: grid;
|
|
391
|
-
gap: 2px;
|
|
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
|
-
}
|
|
372
|
+
/* ---- Focus: always visible from the keyboard, never removed */
|
|
402
373
|
|
|
403
|
-
|
|
404
|
-
:
|
|
405
|
-
|
|
406
|
-
}
|
|
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
|
+
}
|
|
407
378
|
|
|
408
|
-
|
|
409
|
-
overflow-wrap: anywhere;
|
|
410
|
-
font-size: 0.9286em;
|
|
411
|
-
color: var(--qube-muted-color);
|
|
412
|
-
}
|
|
379
|
+
/* ---- Fields */
|
|
413
380
|
|
|
414
|
-
:where(.qube-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
381
|
+
:where(.qube-field) {
|
|
382
|
+
display: grid;
|
|
383
|
+
gap: 6px;
|
|
384
|
+
}
|
|
418
385
|
|
|
419
|
-
|
|
420
|
-
|
|
386
|
+
:where(.qube-field-boolean) {
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
gap: 10px;
|
|
390
|
+
min-height: 40px;
|
|
391
|
+
}
|
|
421
392
|
|
|
422
|
-
:where(.qube-rows-
|
|
423
|
-
|
|
424
|
-
|
|
393
|
+
:where(.qube-label, .qube-rows-label) {
|
|
394
|
+
margin: 0;
|
|
395
|
+
font-size: 0.9286em;
|
|
396
|
+
font-weight: 500;
|
|
397
|
+
}
|
|
425
398
|
|
|
426
|
-
:where(.qube-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
font-size: 0.9286em;
|
|
432
|
-
}
|
|
399
|
+
:where(.qube-field-boolean .qube-label) {
|
|
400
|
+
font-size: 1em;
|
|
401
|
+
font-weight: 400;
|
|
402
|
+
cursor: pointer;
|
|
403
|
+
}
|
|
433
404
|
|
|
434
|
-
:where(.qube-
|
|
435
|
-
|
|
436
|
-
|
|
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
|
+
}
|
|
437
419
|
|
|
438
|
-
:where(.qube-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
420
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:focus) {
|
|
421
|
+
border-color: var(--qube-accent-color);
|
|
422
|
+
}
|
|
442
423
|
|
|
443
|
-
:where(.qube-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
border-top: 1px solid var(--qube-border-color);
|
|
447
|
-
}
|
|
424
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:user-invalid, [aria-invalid="true"]) {
|
|
425
|
+
border-color: var(--qube-error-color);
|
|
426
|
+
}
|
|
448
427
|
|
|
449
|
-
:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
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
|
+
}
|
|
455
433
|
|
|
456
|
-
:where(.qube-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
align-items: baseline;
|
|
460
|
-
gap: 2px 8px;
|
|
461
|
-
min-width: 0;
|
|
462
|
-
}
|
|
434
|
+
:where(.qube-input, .qube-select, .qube-search-input):where(:disabled) {
|
|
435
|
+
opacity: 0.5;
|
|
436
|
+
}
|
|
463
437
|
|
|
464
|
-
:where(.qube-
|
|
465
|
-
|
|
466
|
-
|
|
438
|
+
:where(.qube-checkbox) {
|
|
439
|
+
width: 16px;
|
|
440
|
+
height: 16px;
|
|
441
|
+
margin: 0;
|
|
442
|
+
accent-color: var(--qube-accent-color);
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
}
|
|
467
445
|
|
|
468
|
-
:
|
|
469
|
-
color: var(--qube-muted-color);
|
|
470
|
-
}
|
|
446
|
+
/* ---- The search box: a combobox whose matches drop down from the input */
|
|
471
447
|
|
|
472
|
-
:where(.qube-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
}
|
|
448
|
+
:where(.qube-search) {
|
|
449
|
+
position: relative;
|
|
450
|
+
max-width: 28rem;
|
|
451
|
+
}
|
|
477
452
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
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
|
+
}
|
|
483
457
|
|
|
484
|
-
/*
|
|
485
|
-
:where(.qube-
|
|
486
|
-
|
|
487
|
-
|
|
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
|
+
}
|
|
488
465
|
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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);
|
|
494
479
|
}
|
|
495
480
|
|
|
496
|
-
:
|
|
497
|
-
|
|
498
|
-
|
|
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
|
+
}
|
|
499
487
|
}
|
|
500
|
-
}
|
|
501
488
|
|
|
502
|
-
:where(.qube-
|
|
503
|
-
|
|
504
|
-
|
|
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
|
+
}
|
|
505
507
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
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
|
+
}
|
|
510
515
|
|
|
511
|
-
|
|
512
|
-
:
|
|
513
|
-
|
|
514
|
-
transition: opacity 150ms var(--qube-ease-out);
|
|
515
|
-
}
|
|
516
|
+
:where(.qube-search-results:empty) {
|
|
517
|
+
display: none;
|
|
518
|
+
}
|
|
516
519
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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;
|
|
520
532
|
}
|
|
521
|
-
}
|
|
522
533
|
|
|
523
|
-
/*
|
|
524
|
-
:where(.qube-
|
|
525
|
-
|
|
526
|
-
}
|
|
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
|
+
}
|
|
527
538
|
|
|
528
|
-
:where(.qube-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
539
|
+
:where(.qube-search-result [data-qube-search-detail]) {
|
|
540
|
+
font-size: 0.9286em;
|
|
541
|
+
color: var(--qube-muted-color);
|
|
542
|
+
}
|
|
533
543
|
|
|
534
|
-
|
|
535
|
-
:
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
padding: 0;
|
|
539
|
-
border: 0;
|
|
540
|
-
}
|
|
544
|
+
:where(.qube-search-results [data-qube-search-note]) {
|
|
545
|
+
padding: 7px 10px;
|
|
546
|
+
color: var(--qube-muted-color);
|
|
547
|
+
}
|
|
541
548
|
|
|
542
|
-
:
|
|
543
|
-
|
|
544
|
-
width: 1px;
|
|
545
|
-
height: 1px;
|
|
546
|
-
overflow: hidden;
|
|
547
|
-
clip-path: inset(50%);
|
|
548
|
-
white-space: nowrap;
|
|
549
|
-
}
|
|
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. */
|
|
550
551
|
|
|
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
|
-
}
|
|
552
|
+
:where(.qube-rows-field) {
|
|
553
|
+
gap: 12px;
|
|
554
|
+
}
|
|
562
555
|
|
|
563
|
-
:where(.qube-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
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
|
-
}
|
|
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
|
+
}
|
|
583
563
|
|
|
584
|
-
:where(.qube-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
width: 100%;
|
|
588
|
-
height: 100%;
|
|
589
|
-
margin: 0;
|
|
590
|
-
opacity: 0;
|
|
591
|
-
cursor: pointer;
|
|
592
|
-
}
|
|
564
|
+
:where(.qube-rows-set-all-label) {
|
|
565
|
+
color: var(--qube-muted-color);
|
|
566
|
+
}
|
|
593
567
|
|
|
594
|
-
:where(.qube-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
568
|
+
:where(.qube-set-all-button) {
|
|
569
|
+
min-height: 36px;
|
|
570
|
+
padding: 0 12px;
|
|
571
|
+
}
|
|
599
572
|
|
|
600
|
-
:where(.qube-
|
|
601
|
-
|
|
602
|
-
|
|
573
|
+
:where(.qube-rows) {
|
|
574
|
+
display: grid;
|
|
575
|
+
container-type: inline-size;
|
|
576
|
+
}
|
|
603
577
|
|
|
604
|
-
:where(.qube-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
578
|
+
:where(.qube-row) {
|
|
579
|
+
display: grid;
|
|
580
|
+
gap: 12px;
|
|
581
|
+
padding: 16px 0;
|
|
582
|
+
}
|
|
608
583
|
|
|
609
|
-
:where(.qube-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
584
|
+
:where(.qube-row-header) {
|
|
585
|
+
display: flex;
|
|
586
|
+
flex-wrap: wrap;
|
|
587
|
+
align-items: baseline;
|
|
588
|
+
gap: 2px 8px;
|
|
589
|
+
min-width: 0;
|
|
590
|
+
}
|
|
613
591
|
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
color: inherit;
|
|
592
|
+
:where(.qube-row-label) {
|
|
593
|
+
font-weight: 500;
|
|
617
594
|
}
|
|
618
|
-
}
|
|
619
595
|
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
width: 100%;
|
|
596
|
+
:where(.qube-row-detail) {
|
|
597
|
+
color: var(--qube-muted-color);
|
|
623
598
|
}
|
|
624
|
-
}
|
|
625
599
|
|
|
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
|
-
}
|
|
600
|
+
:where(.qube-row-body) {
|
|
601
|
+
display: grid;
|
|
602
|
+
gap: 12px;
|
|
603
|
+
min-width: 0;
|
|
604
|
+
}
|
|
642
605
|
|
|
643
|
-
:where(.qube-
|
|
644
|
-
|
|
645
|
-
|
|
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
|
+
}
|
|
646
611
|
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
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
|
+
}
|
|
616
|
+
|
|
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
|
+
}
|
|
650
623
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
624
|
+
:where(.qube-row-header) {
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
padding-top: 9px;
|
|
627
|
+
}
|
|
655
628
|
}
|
|
656
|
-
}
|
|
657
629
|
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
from {
|
|
661
|
-
background-color: color-mix(in srgb, var(--qube-accent-color) 22%, var(--qube-solid-color));
|
|
630
|
+
:where(.qube-row .qube-label) {
|
|
631
|
+
font-size: 0.9286em;
|
|
662
632
|
}
|
|
663
|
-
}
|
|
664
633
|
|
|
665
|
-
:where(
|
|
666
|
-
|
|
667
|
-
|
|
634
|
+
:where(.qube-row-fields) :where(.qube-input, .qube-select, .qube-search-input, .qube-search) {
|
|
635
|
+
max-width: none;
|
|
636
|
+
min-width: 0;
|
|
637
|
+
}
|
|
668
638
|
|
|
669
|
-
/*
|
|
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
|
+
}
|
|
670
644
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
}
|
|
645
|
+
@starting-style {
|
|
646
|
+
:where(.qube-row-cell) {
|
|
647
|
+
opacity: 0;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
676
650
|
|
|
677
|
-
:
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
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
|
-
}
|
|
651
|
+
/* What the record already has: read-only */
|
|
652
|
+
:where(.qube-row-preset) {
|
|
653
|
+
gap: 6px;
|
|
654
|
+
}
|
|
691
655
|
|
|
692
|
-
:where(.qube-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
margin-top: calc(0.75em - 4px);
|
|
698
|
-
border-radius: 50%;
|
|
699
|
-
background: var(--qube-dot-color);
|
|
700
|
-
}
|
|
656
|
+
:where(.qube-row-preset-value) {
|
|
657
|
+
display: flex;
|
|
658
|
+
align-items: center;
|
|
659
|
+
min-height: 38px;
|
|
660
|
+
}
|
|
701
661
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
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
|
+
}
|
|
705
669
|
|
|
706
|
-
:where(.qube-
|
|
707
|
-
|
|
708
|
-
|
|
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;
|
|
677
|
+
}
|
|
709
678
|
|
|
710
|
-
:where(.qube-
|
|
711
|
-
|
|
712
|
-
|
|
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
|
+
}
|
|
713
690
|
|
|
714
|
-
:where(.qube-
|
|
715
|
-
|
|
716
|
-
|
|
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
|
+
}
|
|
717
714
|
|
|
718
|
-
:where(.qube-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
715
|
+
:where(.qube-segment-input) {
|
|
716
|
+
position: absolute;
|
|
717
|
+
inset: 0;
|
|
718
|
+
width: 100%;
|
|
719
|
+
height: 100%;
|
|
720
|
+
margin: 0;
|
|
721
|
+
opacity: 0;
|
|
722
|
+
cursor: pointer;
|
|
723
|
+
}
|
|
722
724
|
|
|
723
|
-
:where(.qube-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}
|
|
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
|
+
}
|
|
728
730
|
|
|
729
|
-
|
|
730
|
-
:
|
|
731
|
-
|
|
732
|
-
margin: 0;
|
|
733
|
-
padding: 10px 14px;
|
|
734
|
-
border-radius: var(--qube-control-radius);
|
|
735
|
-
background: color-mix(in srgb, var(--qube-warning-color) 9%, transparent);
|
|
736
|
-
box-shadow: inset 3px 0 0 var(--qube-warning-color);
|
|
737
|
-
}
|
|
731
|
+
:where(.qube-segment:active) {
|
|
732
|
+
transform: scale(0.97);
|
|
733
|
+
}
|
|
738
734
|
|
|
739
|
-
:where(.qube-
|
|
740
|
-
|
|
741
|
-
|
|
735
|
+
:where(.qube-segment:has(:focus-visible)) {
|
|
736
|
+
outline: 2px solid var(--qube-accent-color);
|
|
737
|
+
outline-offset: 2px;
|
|
738
|
+
}
|
|
742
739
|
|
|
743
|
-
|
|
740
|
+
:where(.qube-segment:has(:disabled)) {
|
|
741
|
+
opacity: 0.5;
|
|
742
|
+
cursor: not-allowed;
|
|
743
|
+
}
|
|
744
744
|
|
|
745
|
-
:
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
background: color-mix(in srgb, var(--qube-error-color) 8%, transparent);
|
|
751
|
-
box-shadow: inset 3px 0 0 var(--qube-error-color);
|
|
752
|
-
transition: opacity 200ms var(--qube-ease-out), transform 200ms var(--qube-ease-out);
|
|
753
|
-
}
|
|
745
|
+
@media (hover: hover) and (pointer: fine) {
|
|
746
|
+
:where(.qube-segment:hover) {
|
|
747
|
+
color: inherit;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
754
750
|
|
|
755
|
-
@
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
751
|
+
@container (max-width: 24rem) {
|
|
752
|
+
:where(.qube-segmented) {
|
|
753
|
+
width: 100%;
|
|
754
|
+
}
|
|
759
755
|
}
|
|
760
|
-
}
|
|
761
756
|
|
|
762
|
-
/*
|
|
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
|
+
}
|
|
763
773
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
flex-basis: 100%;
|
|
774
|
+
:where(.qube-use-for-all[hidden]) {
|
|
775
|
+
display: none;
|
|
767
776
|
}
|
|
768
777
|
|
|
769
|
-
:where(.qube-
|
|
770
|
-
|
|
778
|
+
:where(.qube-use-for-all:active) {
|
|
779
|
+
transform: scale(0.97);
|
|
771
780
|
}
|
|
772
|
-
}
|
|
773
781
|
|
|
774
|
-
|
|
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
|
+
}
|
|
775
788
|
|
|
776
|
-
|
|
777
|
-
:where(.qube-
|
|
778
|
-
|
|
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);
|
|
779
797
|
}
|
|
780
798
|
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
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));
|
|
784
803
|
}
|
|
785
804
|
}
|
|
786
805
|
|
|
787
|
-
:where(.qube-
|
|
788
|
-
|
|
806
|
+
:where([data-qube-filled]) :where(.qube-input, .qube-select, .qube-search-input, .qube-segmented) {
|
|
807
|
+
animation: qube-filled 600ms ease-out;
|
|
789
808
|
}
|
|
790
|
-
}
|
|
791
809
|
|
|
792
|
-
/* ----
|
|
810
|
+
/* ---- Status: a compact pill with a coloured dot */
|
|
793
811
|
|
|
794
|
-
:where(.qube-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
padding: 24px 16px 64px;
|
|
800
|
-
box-sizing: border-box;
|
|
801
|
-
}
|
|
812
|
+
:where(.qube-run-status) {
|
|
813
|
+
display: grid;
|
|
814
|
+
justify-items: start;
|
|
815
|
+
gap: 8px;
|
|
816
|
+
}
|
|
802
817
|
|
|
803
|
-
:where(.qube-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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
|
+
}
|
|
810
832
|
|
|
811
|
-
:where(.qube-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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
|
+
}
|
|
818
842
|
|
|
819
|
-
:where(.qube-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
color: var(--qube-muted-color);
|
|
823
|
-
}
|
|
843
|
+
:where(.qube-sync-needs_answer .qube-run-summary, .qube-connection-stalled .qube-run-summary) {
|
|
844
|
+
--qube-dot-color: var(--qube-warning-color);
|
|
845
|
+
}
|
|
824
846
|
|
|
825
|
-
:where(.qube-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
border-radius: var(--qube-control-radius);
|
|
829
|
-
background: color-mix(in srgb, var(--qube-success-color) 10%, transparent);
|
|
830
|
-
box-shadow: inset 3px 0 0 var(--qube-success-color);
|
|
831
|
-
}
|
|
847
|
+
:where(.qube-sync-in_quickbooks .qube-run-summary, .qube-sync-done .qube-run-summary) {
|
|
848
|
+
--qube-dot-color: var(--qube-success-color);
|
|
849
|
+
}
|
|
832
850
|
|
|
833
|
-
|
|
834
|
-
:
|
|
835
|
-
|
|
836
|
-
gap: 2px;
|
|
837
|
-
margin: 0;
|
|
838
|
-
padding: 2px;
|
|
839
|
-
border: 1px solid var(--qube-border-color);
|
|
840
|
-
border-radius: var(--qube-radius-size);
|
|
841
|
-
}
|
|
851
|
+
:where(.qube-sync-failed .qube-run-summary) {
|
|
852
|
+
--qube-dot-color: var(--qube-error-color);
|
|
853
|
+
}
|
|
842
854
|
|
|
843
|
-
:where(.qube-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
height: 1px;
|
|
847
|
-
overflow: hidden;
|
|
848
|
-
clip-path: inset(50%);
|
|
849
|
-
}
|
|
855
|
+
:where(.qube-sync-cancelled .qube-run-summary) {
|
|
856
|
+
--qube-dot-color: var(--qube-muted-color);
|
|
857
|
+
}
|
|
850
858
|
|
|
851
|
-
:where(.qube-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
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
|
-
}
|
|
859
|
+
:where(.qube-run-reason) {
|
|
860
|
+
max-width: 65ch;
|
|
861
|
+
margin: 0;
|
|
862
|
+
}
|
|
864
863
|
|
|
865
|
-
:where(.qube-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
cursor: pointer;
|
|
871
|
-
}
|
|
864
|
+
:where(.qube-run-error-detail, .qube-run-quiet) {
|
|
865
|
+
max-width: 65ch;
|
|
866
|
+
margin: 0;
|
|
867
|
+
color: var(--qube-muted-color);
|
|
868
|
+
}
|
|
872
869
|
|
|
873
|
-
:
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
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
|
+
}
|
|
877
879
|
|
|
878
|
-
:where(.qube-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
880
|
+
:where(.qube-retry-start-form, .qube-redeliver-form) {
|
|
881
|
+
margin: 0;
|
|
882
|
+
}
|
|
882
883
|
|
|
883
|
-
|
|
884
|
-
display: grid;
|
|
885
|
-
gap: 24px;
|
|
886
|
-
}
|
|
884
|
+
/* ---- A one-shot error: calm, inline, a coloured edge */
|
|
887
885
|
|
|
888
|
-
|
|
889
|
-
:
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
overflow-x: auto;
|
|
898
|
-
background: var(--qube-solid-color);
|
|
899
|
-
border-bottom: 1px solid var(--qube-border-color);
|
|
900
|
-
}
|
|
886
|
+
:where(.qube-error) {
|
|
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);
|
|
894
|
+
}
|
|
901
895
|
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}
|
|
896
|
+
@starting-style {
|
|
897
|
+
:where(.qube-error) {
|
|
898
|
+
opacity: 0;
|
|
899
|
+
transform: translateY(-4px);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
907
902
|
|
|
908
|
-
:
|
|
909
|
-
margin: 0 4px 0 0;
|
|
910
|
-
font-size: 0.8571em;
|
|
911
|
-
font-weight: 600;
|
|
912
|
-
white-space: nowrap;
|
|
913
|
-
color: var(--qube-muted-color);
|
|
914
|
-
}
|
|
903
|
+
/* ---- Sections: what it's about, the choices, then the way out, each under a hairline */
|
|
915
904
|
|
|
916
|
-
:where(.qube-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
margin: 0;
|
|
920
|
-
padding: 0;
|
|
921
|
-
list-style: none;
|
|
922
|
-
}
|
|
905
|
+
:where(.qube-choices) {
|
|
906
|
+
border-top: 1px solid var(--qube-border-color);
|
|
907
|
+
}
|
|
923
908
|
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
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);
|
|
915
|
+
}
|
|
932
916
|
|
|
933
|
-
|
|
934
|
-
:where(.qube-
|
|
935
|
-
|
|
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);
|
|
936
920
|
}
|
|
937
|
-
}
|
|
938
921
|
|
|
939
|
-
|
|
940
|
-
font-weight: 500;
|
|
941
|
-
background: color-mix(in srgb, currentColor 8%, transparent);
|
|
942
|
-
}
|
|
922
|
+
/* ---- A chain (offered records with a search), a branch at a time */
|
|
943
923
|
|
|
944
|
-
|
|
945
|
-
:where(.qube-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
align-items: start;
|
|
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;
|
|
949
928
|
}
|
|
950
929
|
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
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;
|
|
957
940
|
padding: 0;
|
|
958
|
-
overflow-x: hidden;
|
|
959
|
-
overflow-y: auto;
|
|
960
|
-
scrollbar-width: thin;
|
|
961
941
|
background: none;
|
|
962
942
|
border: 0;
|
|
943
|
+
box-shadow: none;
|
|
944
|
+
transform: none;
|
|
945
|
+
}
|
|
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
|
+
|
|
957
|
+
@starting-style {
|
|
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);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
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;
|
|
977
|
+
}
|
|
978
|
+
|
|
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
|
+
}
|
|
985
|
+
|
|
986
|
+
/* ---- Narrow screens: choices stack, full width */
|
|
987
|
+
|
|
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
|
+
}
|
|
996
|
+
|
|
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
|
+
}
|
|
1001
|
+
|
|
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
|
+
}
|
|
1008
|
+
|
|
1009
|
+
:where(.qube-pick-action.qube-choice-button) {
|
|
1010
|
+
flex-grow: 1;
|
|
1011
|
+
justify-content: center;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
|
|
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
|
+
}
|
|
1022
|
+
|
|
1023
|
+
:where(.qube-choice-actions-end, .qube-choice-footer-end) {
|
|
1024
|
+
margin-inline-start: 0;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
:where(.qube-choice-actions-start, .qube-choice-footer-start) {
|
|
1028
|
+
justify-content: flex-start;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
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
|
+
}
|
|
1036
|
+
|
|
1037
|
+
:where(.qube-choice-footer:has(.qube-choice-description)) :where(.qube-choice-button) {
|
|
1038
|
+
justify-self: stretch;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/* ---- Reduced motion: fades stay, movement goes */
|
|
1043
|
+
|
|
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
|
+
}
|
|
1048
|
+
|
|
1049
|
+
@starting-style {
|
|
1050
|
+
:where(.qube-search-results, .qube-error) {
|
|
1051
|
+
transform: none;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
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
|
+
}
|
|
1059
|
+
|
|
1060
|
+
:where(.qube-segment, .qube-use-for-all):where(:active) {
|
|
1061
|
+
transform: none;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
:where(.qube-search[data-qube-picked])::before {
|
|
1065
|
+
animation-name: qube-fade-in;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
@keyframes qube-fade-in {
|
|
1070
|
+
from {
|
|
1071
|
+
opacity: 0;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
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;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
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
|
+
}
|
|
1165
|
+
|
|
1166
|
+
:where(.qube-storyboard-body) {
|
|
1167
|
+
display: grid;
|
|
1168
|
+
gap: 24px;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* The screens' list: a sticky strip on a narrow screen, a sticky sidebar on a wide one */
|
|
1172
|
+
:where(.qube-storyboard-nav) {
|
|
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
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1326
|
+
:where(.qube-storyboard-panel > .qube-storyboard-note) {
|
|
1327
|
+
margin-top: -6px;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
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
|
+
}
|
|
1097
1392
|
|
|
1098
|
-
:where(.qube-storyboard-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
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
|
+
}
|
|
1108
1409
|
}
|
|
1109
1410
|
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1411
|
+
/* Ahead of the engine (priv/ahead/qube_sync.css, CHANGELOG): a form behind "or <its label>…"
|
|
1412
|
+
under a record that is the main action (a name clash's "Add it under another name"), a row
|
|
1413
|
+
about one record (title, lines, facts), option rows on a fill rather than a border, a
|
|
1414
|
+
decline beside offered records with their weight, and a search box inline under them */
|
|
1415
|
+
@layer components {
|
|
1416
|
+
:where(.qube-choice-disclosure) {
|
|
1417
|
+
display: grid;
|
|
1418
|
+
gap: 12px;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
:where(.qube-choice-disclosure > summary) {
|
|
1422
|
+
justify-self: start;
|
|
1423
|
+
list-style: none;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
:where(.qube-choice-disclosure > summary)::-webkit-details-marker {
|
|
1427
|
+
display: none;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/* The form drops in under "or <its label>…" as it opens; closing is instant */
|
|
1431
|
+
:where(.qube-choice-disclosure[open] > .qube-choice) {
|
|
1432
|
+
animation: qube-disclosure-open 200ms var(--qube-ease-out);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
@keyframes qube-disclosure-open {
|
|
1436
|
+
from {
|
|
1437
|
+
opacity: 0;
|
|
1438
|
+
transform: translateY(-4px);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/* Open, its submit is the main action: the record's "Use this one" steps back to secondary */
|
|
1443
|
+
:where(.qube-choices:has(> .qube-choice-disclosure[open]) .qube-pick-action[data-qube-button="primary"]) {
|
|
1444
|
+
color: inherit;
|
|
1445
|
+
background: var(--qube-solid-color);
|
|
1446
|
+
border-color: var(--qube-control-border-color);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1450
|
+
:where(.qube-choices:has(> .qube-choice-disclosure[open]) .qube-pick-action[data-qube-button="primary"]:hover) {
|
|
1451
|
+
background: color-mix(in srgb, currentColor 6%, var(--qube-solid-color));
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/* An option row sits on a quiet fill, not in a box of its own inside the card */
|
|
1456
|
+
:where(.qube-pick) {
|
|
1457
|
+
background: color-mix(in srgb, currentColor 5%, var(--qube-solid-color));
|
|
1458
|
+
border-color: transparent;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1462
|
+
:where(.qube-pick:hover) {
|
|
1463
|
+
background: color-mix(in srgb, currentColor 9%, var(--qube-solid-color));
|
|
1464
|
+
border-color: transparent;
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/* An offered record: only its button is a target, so the row stays still under the pointer */
|
|
1469
|
+
:where(div.qube-pick) {
|
|
1470
|
+
cursor: auto;
|
|
1471
|
+
user-select: auto;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
:where(div.qube-pick:active) {
|
|
1475
|
+
transform: none;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1479
|
+
:where(div.qube-pick:hover) {
|
|
1480
|
+
background: color-mix(in srgb, currentColor 5%, var(--qube-solid-color));
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/* A row about one record: its name, then its lines, then its facts, each on a line of its own */
|
|
1485
|
+
:where(.qube-pick-line, .qube-pick-facts) {
|
|
1486
|
+
flex-basis: 100%;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
:where(.qube-pick-facts) {
|
|
1490
|
+
display: flex;
|
|
1491
|
+
flex-wrap: wrap;
|
|
1492
|
+
gap: 2px 16px;
|
|
1493
|
+
font-variant-numeric: tabular-nums;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
:where(.qube-pick-fact) {
|
|
1497
|
+
white-space: nowrap;
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
:where(.qube-pick-fact-label) {
|
|
1501
|
+
color: var(--qube-muted-color);
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/* A decline beside offered records weighs the same as their buttons: just under them, at the
|
|
1505
|
+
same right edge, not in the footer by cancel */
|
|
1506
|
+
:where(.qube-choice-alongside) {
|
|
1507
|
+
display: flex;
|
|
1508
|
+
flex-wrap: wrap;
|
|
1509
|
+
justify-content: flex-end;
|
|
1510
|
+
gap: 8px;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
:where(.qube-choice-alongside > .qube-choice) {
|
|
1514
|
+
justify-items: end;
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
:where(.qube-choice-alongside) + :where(.qube-choice-footer) {
|
|
1518
|
+
padding-top: 16px;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
@container qube-choices (max-width: 30rem) {
|
|
1522
|
+
:where(.qube-choice-alongside > .qube-choice) {
|
|
1523
|
+
flex-grow: 1;
|
|
1524
|
+
justify-items: stretch;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
:where(.qube-choice-alongside .qube-choice-button) {
|
|
1528
|
+
justify-content: center;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/* A search beside offered records is its box alone, under them; its label is for screen
|
|
1533
|
+
readers (the box says "Search QuickBooks…") */
|
|
1534
|
+
:where(.qube-search-inline) :where(.qube-search, .qube-search-input) {
|
|
1535
|
+
max-width: none;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
:where(.qube-search-inline .qube-label) {
|
|
1539
|
+
position: absolute;
|
|
1540
|
+
width: 1px;
|
|
1541
|
+
height: 1px;
|
|
1542
|
+
overflow: hidden;
|
|
1543
|
+
clip-path: inset(50%);
|
|
1544
|
+
white-space: nowrap;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1548
|
+
:where(.qube-choice-disclosure[open] > .qube-choice) {
|
|
1549
|
+
animation-name: qube-fade-in;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1115
1552
|
}
|