@openwarelabs/ui 0.3.1 → 0.5.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.
- package/README.md +8 -7
- package/dist/components/Calendar/Calendar.d.cts +58 -0
- package/dist/components/Calendar/Calendar.d.ts +58 -0
- package/dist/components/Calendar/DateRangePicker.d.cts +39 -0
- package/dist/components/Calendar/DateRangePicker.d.ts +39 -0
- package/dist/components/Calendar/RangeCalendar.d.cts +38 -0
- package/dist/components/Calendar/RangeCalendar.d.ts +38 -0
- package/dist/components/Calendar/dates.d.cts +13 -0
- package/dist/components/Calendar/dates.d.ts +13 -0
- package/dist/components/ChainOfThought/ChainOfThought.d.cts +44 -0
- package/dist/components/ChainOfThought/ChainOfThought.d.ts +44 -0
- package/dist/components/Chat/ChatConversation.d.cts +48 -0
- package/dist/components/Chat/ChatConversation.d.ts +48 -0
- package/dist/components/Chat/ChatLoader.d.cts +21 -0
- package/dist/components/Chat/ChatLoader.d.ts +21 -0
- package/dist/components/Chat/ChatMessage.d.cts +93 -0
- package/dist/components/Chat/ChatMessage.d.ts +93 -0
- package/dist/components/ChatSource/ChatSource.d.cts +58 -0
- package/dist/components/ChatSource/ChatSource.d.ts +58 -0
- package/dist/components/ChatTool/ChatTool.d.cts +89 -0
- package/dist/components/ChatTool/ChatTool.d.ts +89 -0
- package/dist/components/ColorPicker/ColorArea.d.cts +44 -0
- package/dist/components/ColorPicker/ColorArea.d.ts +44 -0
- package/dist/components/ColorPicker/ColorSlider.d.cts +53 -0
- package/dist/components/ColorPicker/ColorSlider.d.ts +53 -0
- package/dist/components/ColorPicker/ColorSwatchPicker.d.cts +43 -0
- package/dist/components/ColorPicker/ColorSwatchPicker.d.ts +43 -0
- package/dist/components/ColorPicker/color.d.cts +91 -0
- package/dist/components/ColorPicker/color.d.ts +91 -0
- package/dist/components/DateField/DateField.d.cts +47 -0
- package/dist/components/DateField/DateField.d.ts +47 -0
- package/dist/components/DateField/SegmentedField.d.cts +63 -0
- package/dist/components/DateField/SegmentedField.d.ts +63 -0
- package/dist/components/DateField/TimeField.d.cts +52 -0
- package/dist/components/DateField/TimeField.d.ts +52 -0
- package/dist/components/Field/Field.d.cts +17 -5
- package/dist/components/Field/Field.d.ts +17 -5
- package/dist/components/FileDropZone/FileDropZone.d.cts +1 -1
- package/dist/components/FileDropZone/FileDropZone.d.ts +1 -1
- package/dist/components/Form/Form.d.cts +63 -0
- package/dist/components/Form/Form.d.ts +63 -0
- package/dist/components/InputOTP/InputOTP.d.cts +7 -1
- package/dist/components/InputOTP/InputOTP.d.ts +7 -1
- package/dist/components/ListBox/ListBox.d.cts +65 -0
- package/dist/components/ListBox/ListBox.d.ts +65 -0
- package/dist/components/Meter/Meter.d.cts +62 -0
- package/dist/components/Meter/Meter.d.ts +62 -0
- package/dist/components/PromptInput/PromptInput.d.cts +95 -0
- package/dist/components/PromptInput/PromptInput.d.ts +95 -0
- package/dist/components/PromptInput/PromptSuggestion.d.cts +36 -0
- package/dist/components/PromptInput/PromptSuggestion.d.ts +36 -0
- package/dist/components/Prose/Prose.d.cts +22 -0
- package/dist/components/Prose/Prose.d.ts +22 -0
- package/dist/components/Slider/Slider.d.cts +7 -1
- package/dist/components/Slider/Slider.d.ts +7 -1
- package/dist/components/TextShimmer/TextShimmer.d.cts +20 -0
- package/dist/components/TextShimmer/TextShimmer.d.ts +20 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.cts +74 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +74 -0
- package/dist/components/Toolbar/Toolbar.d.cts +36 -0
- package/dist/components/Toolbar/Toolbar.d.ts +36 -0
- package/dist/components.css +3557 -38
- package/dist/index.cjs +7391 -3179
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.cts +45 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +7478 -3214
- package/dist/index.js.map +4 -4
- package/dist/openware-ui.iife.js +7 -6
- package/dist/styles.css +3557 -38
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -313,9 +313,8 @@
|
|
|
313
313
|
padding: 0;
|
|
314
314
|
}
|
|
315
315
|
.ow-button--icon-only.ow-button--sm {
|
|
316
|
-
width:
|
|
317
|
-
height:
|
|
318
|
-
min-height: 28px;
|
|
316
|
+
width: 32px;
|
|
317
|
+
height: 32px;
|
|
319
318
|
}
|
|
320
319
|
.ow-button--icon-only.ow-button--md {
|
|
321
320
|
width: 40px;
|
|
@@ -523,29 +522,38 @@
|
|
|
523
522
|
flex-wrap: nowrap;
|
|
524
523
|
gap: 0;
|
|
525
524
|
}
|
|
526
|
-
|
|
525
|
+
/* A button joins its neighbours whether it's a direct child or wrapped one level down, by a Tooltip or a Menu's trigger. */
|
|
526
|
+
.ow-button-group--attached > .ow-button,
|
|
527
|
+
.ow-button-group--attached > * > .ow-button {
|
|
527
528
|
position: relative;
|
|
528
529
|
}
|
|
529
530
|
.ow-button-group--attached > .ow-button:hover,
|
|
530
531
|
.ow-button-group--attached > .ow-button:focus-visible,
|
|
531
|
-
.ow-button-group--attached > .ow-button--pressed
|
|
532
|
+
.ow-button-group--attached > .ow-button--pressed,
|
|
533
|
+
.ow-button-group--attached > * > .ow-button:hover,
|
|
534
|
+
.ow-button-group--attached > * > .ow-button:focus-visible,
|
|
535
|
+
.ow-button-group--attached > * > .ow-button--pressed {
|
|
532
536
|
z-index: 1;
|
|
533
537
|
}
|
|
534
|
-
.ow-button-group--attached:not(.ow-button-group--vertical) > .ow-button:not(:first-child)
|
|
538
|
+
.ow-button-group--attached:not(.ow-button-group--vertical) > .ow-button:not(:first-child),
|
|
539
|
+
.ow-button-group--attached:not(.ow-button-group--vertical) > :not(:first-child) > .ow-button {
|
|
535
540
|
margin-left: -1px;
|
|
536
541
|
border-top-left-radius: 0;
|
|
537
542
|
border-bottom-left-radius: 0;
|
|
538
543
|
}
|
|
539
|
-
.ow-button-group--attached:not(.ow-button-group--vertical) > .ow-button:not(:last-child)
|
|
544
|
+
.ow-button-group--attached:not(.ow-button-group--vertical) > .ow-button:not(:last-child),
|
|
545
|
+
.ow-button-group--attached:not(.ow-button-group--vertical) > :not(:last-child) > .ow-button {
|
|
540
546
|
border-top-right-radius: 0;
|
|
541
547
|
border-bottom-right-radius: 0;
|
|
542
548
|
}
|
|
543
|
-
.ow-button-group--attached.ow-button-group--vertical > .ow-button:not(:first-child)
|
|
549
|
+
.ow-button-group--attached.ow-button-group--vertical > .ow-button:not(:first-child),
|
|
550
|
+
.ow-button-group--attached.ow-button-group--vertical > :not(:first-child) > .ow-button {
|
|
544
551
|
margin-top: -1px;
|
|
545
552
|
border-top-left-radius: 0;
|
|
546
553
|
border-top-right-radius: 0;
|
|
547
554
|
}
|
|
548
|
-
.ow-button-group--attached.ow-button-group--vertical > .ow-button:not(:last-child)
|
|
555
|
+
.ow-button-group--attached.ow-button-group--vertical > .ow-button:not(:last-child),
|
|
556
|
+
.ow-button-group--attached.ow-button-group--vertical > :not(:last-child) > .ow-button {
|
|
549
557
|
border-bottom-left-radius: 0;
|
|
550
558
|
border-bottom-right-radius: 0;
|
|
551
559
|
}
|
|
@@ -589,6 +597,139 @@
|
|
|
589
597
|
opacity: 0.5;
|
|
590
598
|
}
|
|
591
599
|
|
|
600
|
+
/* components/ToggleButtonGroup/ToggleButtonGroup.css */
|
|
601
|
+
/* ToggleButtonGroup: toggles joined like an attached ButtonGroup, sharing borders, each pressed in while it's on.
|
|
602
|
+
An item is the button itself, or the Tooltip around an icon-only one. */
|
|
603
|
+
.ow-toggle-group {
|
|
604
|
+
display: inline-flex;
|
|
605
|
+
flex-wrap: nowrap;
|
|
606
|
+
align-items: stretch;
|
|
607
|
+
vertical-align: middle;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.ow-toggle-group--vertical {
|
|
611
|
+
flex-direction: column;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.ow-toggle-group > * {
|
|
615
|
+
position: relative;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.ow-toggle-group > .ow-tooltip > .ow-button {
|
|
619
|
+
flex: 1;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* Hovered and pressed buttons sit above their neighbours so their whole border shows; a focused one above all,
|
|
623
|
+
so nothing covers its ring. */
|
|
624
|
+
.ow-toggle-group > :hover,
|
|
625
|
+
.ow-toggle-group > .ow-button--pressed,
|
|
626
|
+
.ow-toggle-group > :has(> .ow-button--pressed) {
|
|
627
|
+
z-index: 1;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.ow-toggle-group > :focus-visible,
|
|
631
|
+
.ow-toggle-group > :has(> :focus-visible) {
|
|
632
|
+
z-index: 2;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* Shared borders: each item overlaps the one before by a border's width, and only the ends keep their corners. */
|
|
636
|
+
.ow-toggle-group:not(.ow-toggle-group--vertical) > :not(:first-child) {
|
|
637
|
+
margin-inline-start: -1px;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.ow-toggle-group:not(.ow-toggle-group--vertical) > .ow-button:not(:first-child),
|
|
641
|
+
.ow-toggle-group:not(.ow-toggle-group--vertical) > :not(:first-child) > .ow-button {
|
|
642
|
+
border-start-start-radius: 0;
|
|
643
|
+
border-end-start-radius: 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.ow-toggle-group:not(.ow-toggle-group--vertical) > .ow-button:not(:last-child),
|
|
647
|
+
.ow-toggle-group:not(.ow-toggle-group--vertical) > :not(:last-child) > .ow-button {
|
|
648
|
+
border-start-end-radius: 0;
|
|
649
|
+
border-end-end-radius: 0;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.ow-toggle-group--vertical > :not(:first-child) {
|
|
653
|
+
margin-block-start: -1px;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.ow-toggle-group--vertical > .ow-button:not(:first-child),
|
|
657
|
+
.ow-toggle-group--vertical > :not(:first-child) > .ow-button {
|
|
658
|
+
border-start-start-radius: 0;
|
|
659
|
+
border-start-end-radius: 0;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.ow-toggle-group--vertical > .ow-button:not(:last-child),
|
|
663
|
+
.ow-toggle-group--vertical > :not(:last-child) > .ow-button {
|
|
664
|
+
border-end-start-radius: 0;
|
|
665
|
+
border-end-end-radius: 0;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/* An icon-only option among labelled ones matches their height. */
|
|
669
|
+
.ow-toggle-group--sm:not(.ow-toggle-group--icon-only) .ow-button--icon-only {
|
|
670
|
+
width: 32px;
|
|
671
|
+
height: 32px;
|
|
672
|
+
min-height: 32px;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/* components/Toolbar/Toolbar.css */
|
|
676
|
+
/* Toolbar: a row (or column) of controls for one context, raised on its own surface or plain. */
|
|
677
|
+
.ow-toolbar {
|
|
678
|
+
display: flex;
|
|
679
|
+
flex-wrap: wrap;
|
|
680
|
+
align-items: center;
|
|
681
|
+
gap: var(--ow-space-xs);
|
|
682
|
+
min-width: 0;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.ow-toolbar--sm {
|
|
686
|
+
gap: var(--ow-space-2xs);
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.ow-toolbar--raised {
|
|
690
|
+
border: 1px solid var(--ow-border);
|
|
691
|
+
border-radius: var(--ow-radius-container);
|
|
692
|
+
background: var(--ow-surface);
|
|
693
|
+
padding: var(--ow-space-xs);
|
|
694
|
+
box-shadow: var(--ow-shadow-control);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/* 4px inside a 12px corner keeps the buttons' 8px corners concentric with the bar's. */
|
|
698
|
+
.ow-toolbar--raised.ow-toolbar--sm {
|
|
699
|
+
padding: var(--ow-space-2xs);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.ow-toolbar--vertical {
|
|
703
|
+
display: inline-flex;
|
|
704
|
+
flex-direction: column;
|
|
705
|
+
flex-wrap: nowrap;
|
|
706
|
+
align-items: stretch;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* The separator stops short of the bar's edges, so it divides groups without boxing them in. */
|
|
710
|
+
.ow-toolbar__separator {
|
|
711
|
+
flex-shrink: 0;
|
|
712
|
+
align-self: center;
|
|
713
|
+
width: 1px;
|
|
714
|
+
height: 20px;
|
|
715
|
+
margin: 0 var(--ow-space-2xs);
|
|
716
|
+
background: var(--ow-border);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
.ow-toolbar--sm .ow-toolbar__separator {
|
|
720
|
+
height: 16px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.ow-toolbar--vertical .ow-toolbar__separator {
|
|
724
|
+
width: 20px;
|
|
725
|
+
height: 1px;
|
|
726
|
+
margin: var(--ow-space-2xs) 0;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.ow-toolbar--vertical.ow-toolbar--sm .ow-toolbar__separator {
|
|
730
|
+
width: 16px;
|
|
731
|
+
}
|
|
732
|
+
|
|
592
733
|
/* components/SegmentedControl/SegmentedControl.css */
|
|
593
734
|
/* SegmentedControl and segmented Tabs: a well with the chosen segment raised. */
|
|
594
735
|
.ow-segmented,
|
|
@@ -994,6 +1135,153 @@
|
|
|
994
1135
|
white-space: nowrap;
|
|
995
1136
|
}
|
|
996
1137
|
|
|
1138
|
+
/* components/DateField/DateField.css */
|
|
1139
|
+
/* DateField and TimeField: typed segments in a field drawn like Input. The whole field shows focus while a segment
|
|
1140
|
+
has it; the focused segment is tinted. */
|
|
1141
|
+
.ow-date-field {
|
|
1142
|
+
display: flex;
|
|
1143
|
+
width: 100%;
|
|
1144
|
+
/* Shrink in a narrow grid or flex column instead of pushing past it. */
|
|
1145
|
+
min-width: 0;
|
|
1146
|
+
height: 40px;
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
gap: var(--ow-space-xs);
|
|
1149
|
+
border: 1px solid var(--ow-border-strong);
|
|
1150
|
+
border-radius: var(--ow-radius-form);
|
|
1151
|
+
background: var(--ow-surface);
|
|
1152
|
+
/* With the segments' own 2px, the digits start where Input's text does. */
|
|
1153
|
+
padding: 0 var(--ow-space-md);
|
|
1154
|
+
color: var(--ow-text);
|
|
1155
|
+
font-size: 14px;
|
|
1156
|
+
font-weight: var(--ow-weight-regular);
|
|
1157
|
+
line-height: 1.45;
|
|
1158
|
+
font-variant-numeric: tabular-nums;
|
|
1159
|
+
cursor: text;
|
|
1160
|
+
transition-property: border-color, background-color, box-shadow, opacity;
|
|
1161
|
+
transition-duration: var(--ow-duration-base);
|
|
1162
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
.ow-date-field--sm {
|
|
1166
|
+
height: 32px;
|
|
1167
|
+
gap: var(--ow-space-2xs);
|
|
1168
|
+
padding: 0 var(--ow-space-sm);
|
|
1169
|
+
font-size: 13px;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.ow-date-field--with-start {
|
|
1173
|
+
padding-left: var(--ow-space-lg);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.ow-date-field--sm.ow-date-field--with-start {
|
|
1177
|
+
padding-left: var(--ow-space-md);
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.ow-date-field:focus-within {
|
|
1181
|
+
border-color: var(--ow-focus-border);
|
|
1182
|
+
box-shadow: var(--ow-shadow-focus);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.ow-date-field:has(.ow-date-field__segment:focus-visible) {
|
|
1186
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
1187
|
+
outline-offset: 2px;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
.ow-date-field--invalid {
|
|
1191
|
+
border-color: var(--ow-danger-line);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.ow-date-field--invalid:focus-within {
|
|
1195
|
+
border-color: var(--ow-danger-solid);
|
|
1196
|
+
box-shadow: var(--ow-shadow-focus-danger);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
.ow-date-field--readonly {
|
|
1200
|
+
cursor: default;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
.ow-date-field--disabled {
|
|
1204
|
+
cursor: not-allowed;
|
|
1205
|
+
opacity: 0.62;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.ow-date-field__addon {
|
|
1209
|
+
display: inline-flex;
|
|
1210
|
+
flex-shrink: 0;
|
|
1211
|
+
align-items: center;
|
|
1212
|
+
color: var(--ow-text-muted);
|
|
1213
|
+
cursor: default;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.ow-date-field__segments {
|
|
1217
|
+
display: flex;
|
|
1218
|
+
min-width: 0;
|
|
1219
|
+
align-items: center;
|
|
1220
|
+
white-space: pre;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
.ow-date-field__segment {
|
|
1224
|
+
flex-shrink: 0;
|
|
1225
|
+
border-radius: var(--ow-radius-sm);
|
|
1226
|
+
padding: 2px;
|
|
1227
|
+
color: var(--ow-text);
|
|
1228
|
+
text-align: center;
|
|
1229
|
+
caret-color: transparent;
|
|
1230
|
+
outline: 0;
|
|
1231
|
+
transition-property: color, background-color, box-shadow;
|
|
1232
|
+
transition-duration: var(--ow-duration-fast);
|
|
1233
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
.ow-date-field__segment::selection {
|
|
1237
|
+
background: transparent;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/* Tabular digits are 1ch wide, so a segment keeps its width while a value is half typed ("1" on the way to "12").
|
|
1241
|
+
Placeholders keep their own width, so the letters sit evenly. */
|
|
1242
|
+
.ow-date-field__segment--digits-2:not(.ow-date-field__segment--placeholder) {
|
|
1243
|
+
min-width: calc(2ch + 4px);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.ow-date-field__segment--digits-4:not(.ow-date-field__segment--placeholder) {
|
|
1247
|
+
min-width: calc(4ch + 4px);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.ow-date-field__segment--placeholder {
|
|
1251
|
+
color: var(--ow-text-muted);
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/* The tint and edge of selected things, as on Pagination's current page. */
|
|
1255
|
+
.ow-date-field__segment:focus {
|
|
1256
|
+
background: var(--ow-primary-subtle);
|
|
1257
|
+
box-shadow: inset 0 0 0 1px var(--ow-primary-border);
|
|
1258
|
+
color: var(--ow-primary-text);
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
.ow-date-field__segment--placeholder:focus {
|
|
1262
|
+
color: var(--ow-text-muted);
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
.ow-date-field--disabled .ow-date-field__segment {
|
|
1266
|
+
cursor: not-allowed;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
.ow-date-field--readonly .ow-date-field__segment {
|
|
1270
|
+
cursor: default;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
.ow-date-field__literal {
|
|
1274
|
+
color: var(--ow-text-muted);
|
|
1275
|
+
user-select: none;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1279
|
+
.ow-date-field,
|
|
1280
|
+
.ow-date-field__segment {
|
|
1281
|
+
transition: none;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
997
1285
|
/* components/Textarea/Textarea.css */
|
|
998
1286
|
/* Textarea: the field look from Input.css, taller and resizable. */
|
|
999
1287
|
.ow-textarea {
|
|
@@ -1207,6 +1495,87 @@
|
|
|
1207
1495
|
font-weight: var(--ow-weight-control);
|
|
1208
1496
|
}
|
|
1209
1497
|
|
|
1498
|
+
/* components/ListBox/ListBox.css */
|
|
1499
|
+
/* ListBox: Select's list on the page. It wears Select.css's .ow-listbox and .ow-option (rows, checkmarks, group
|
|
1500
|
+
labels, sizes), so the two stay in step; this file only undoes the floating and adds the field states. */
|
|
1501
|
+
.ow-listbox.ow-listbox--standalone {
|
|
1502
|
+
position: relative;
|
|
1503
|
+
z-index: auto;
|
|
1504
|
+
min-width: 0;
|
|
1505
|
+
box-shadow: none;
|
|
1506
|
+
overscroll-behavior: auto;
|
|
1507
|
+
outline: 0;
|
|
1508
|
+
transition-property: border-color, box-shadow, opacity;
|
|
1509
|
+
transition-duration: var(--ow-duration-base);
|
|
1510
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
.ow-listbox--standalone .ow-option {
|
|
1514
|
+
user-select: none;
|
|
1515
|
+
transition: background-color var(--ow-duration-fast) var(--ow-ease-standard);
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
/* In a floating list the pointer moves the highlight; here hover is its own state, apart from the keyboard's. */
|
|
1519
|
+
.ow-listbox--standalone:not(.ow-listbox--disabled, .ow-listbox--readonly) .ow-option:not(.ow-option--disabled):hover {
|
|
1520
|
+
background: var(--ow-hover);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.ow-listbox--readonly .ow-option {
|
|
1524
|
+
cursor: default;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.ow-listbox--standalone.ow-listbox--focus-visible {
|
|
1528
|
+
border-color: var(--ow-focus-border);
|
|
1529
|
+
box-shadow: var(--ow-shadow-focus);
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
.ow-listbox--standalone.ow-listbox--invalid {
|
|
1533
|
+
border-color: var(--ow-danger-line);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
.ow-listbox--standalone.ow-listbox--invalid.ow-listbox--focus-visible {
|
|
1537
|
+
border-color: var(--ow-danger-solid);
|
|
1538
|
+
box-shadow: var(--ow-shadow-focus-danger);
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
.ow-listbox--standalone.ow-listbox--disabled {
|
|
1542
|
+
cursor: not-allowed;
|
|
1543
|
+
opacity: 0.62;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
.ow-listbox--disabled .ow-option {
|
|
1547
|
+
cursor: not-allowed;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
/* An empty list is one option row tall. */
|
|
1551
|
+
.ow-listbox--standalone .ow-listbox__empty {
|
|
1552
|
+
padding: var(--ow-space-md);
|
|
1553
|
+
font-size: 14px;
|
|
1554
|
+
line-height: 16px;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.ow-listbox--standalone.ow-listbox--sm .ow-listbox__empty {
|
|
1558
|
+
padding-block: var(--ow-space-sm);
|
|
1559
|
+
font-size: 12px;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
.ow-option__icon {
|
|
1563
|
+
display: flex;
|
|
1564
|
+
width: 16px;
|
|
1565
|
+
height: 16px;
|
|
1566
|
+
flex-shrink: 0;
|
|
1567
|
+
align-items: center;
|
|
1568
|
+
justify-content: center;
|
|
1569
|
+
color: var(--ow-text-muted);
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1573
|
+
.ow-listbox.ow-listbox--standalone,
|
|
1574
|
+
.ow-listbox--standalone .ow-option {
|
|
1575
|
+
transition: none;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1210
1579
|
/* components/Combobox/Combobox.css */
|
|
1211
1580
|
/* Combobox: a grouped field (Input.css) with a chevron, over Select's listbox. */
|
|
1212
1581
|
.ow-combobox {
|
|
@@ -2013,9 +2382,32 @@
|
|
|
2013
2382
|
line-height: 1.4;
|
|
2014
2383
|
}
|
|
2015
2384
|
|
|
2016
|
-
/*
|
|
2017
|
-
|
|
2018
|
-
|
|
2385
|
+
/* A checkbox in a Field with an error (the terms, say) takes the invalid field's border until it's ticked. */
|
|
2386
|
+
.ow-field .ow-checkbox__input[aria-invalid="true"]:not(:checked, :disabled) {
|
|
2387
|
+
border-color: var(--ow-danger-line);
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
/* components/Form/Form.css */
|
|
2391
|
+
/* Form: its rows sit ow-space-xl apart, as the README asks. */
|
|
2392
|
+
.ow-form {
|
|
2393
|
+
display: grid;
|
|
2394
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2395
|
+
align-content: start;
|
|
2396
|
+
gap: var(--ow-space-xl);
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
/* A button on a row of its own keeps its width, unless it's fullWidth. */
|
|
2400
|
+
.ow-form > .ow-button {
|
|
2401
|
+
justify-self: start;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
.ow-form > .ow-button--full {
|
|
2405
|
+
justify-self: stretch;
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
/* components/Badge/Badge.css */
|
|
2409
|
+
/* Badge (the app's Pill): status in a bordered pill. */
|
|
2410
|
+
.ow-badge {
|
|
2019
2411
|
display: inline-flex;
|
|
2020
2412
|
width: fit-content;
|
|
2021
2413
|
align-items: center;
|
|
@@ -2303,6 +2695,96 @@
|
|
|
2303
2695
|
}
|
|
2304
2696
|
}
|
|
2305
2697
|
|
|
2698
|
+
/* components/Meter/Meter.css */
|
|
2699
|
+
/* Meter: ProgressBar's header and track (Progress.css), for an amount within a range. Tones swap in a status colour. */
|
|
2700
|
+
.ow-meter {
|
|
2701
|
+
display: grid;
|
|
2702
|
+
min-width: 0;
|
|
2703
|
+
gap: var(--ow-space-sm);
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2706
|
+
.ow-meter--primary {
|
|
2707
|
+
--ow-meter-fill: var(--ow-progress);
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
/* Status fills use the status text colours, which keep 3:1 against the track in both themes. */
|
|
2711
|
+
.ow-meter--success {
|
|
2712
|
+
--ow-meter-fill: var(--ow-success-text);
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
.ow-meter--warning {
|
|
2716
|
+
--ow-meter-fill: var(--ow-warning-text);
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
.ow-meter--danger {
|
|
2720
|
+
--ow-meter-fill: var(--ow-danger-text);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
.ow-meter__header {
|
|
2724
|
+
display: flex;
|
|
2725
|
+
align-items: baseline;
|
|
2726
|
+
justify-content: space-between;
|
|
2727
|
+
gap: var(--ow-space-md);
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
.ow-meter__label {
|
|
2731
|
+
min-width: 0;
|
|
2732
|
+
color: var(--ow-text);
|
|
2733
|
+
font-size: 14px;
|
|
2734
|
+
font-weight: var(--ow-weight-emphasis);
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
.ow-meter__value {
|
|
2738
|
+
flex-shrink: 0;
|
|
2739
|
+
color: var(--ow-text-muted);
|
|
2740
|
+
font-size: 13px;
|
|
2741
|
+
font-variant-numeric: tabular-nums;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
.ow-meter__track {
|
|
2745
|
+
display: flex;
|
|
2746
|
+
height: 4px;
|
|
2747
|
+
overflow: hidden;
|
|
2748
|
+
border-radius: var(--ow-radius-pill);
|
|
2749
|
+
background: var(--ow-meter-track);
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
.ow-meter--md .ow-meter__track {
|
|
2753
|
+
height: 8px;
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.ow-meter__fill {
|
|
2757
|
+
display: block;
|
|
2758
|
+
height: 100%;
|
|
2759
|
+
border-radius: inherit;
|
|
2760
|
+
background: var(--ow-meter-fill);
|
|
2761
|
+
transition:
|
|
2762
|
+
width var(--ow-duration-slow) var(--ow-ease-standard),
|
|
2763
|
+
background-color var(--ow-duration-base) var(--ow-ease-standard);
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
/* Segments: the track splits into blocks, each with its own track and a share of the fill. */
|
|
2767
|
+
.ow-meter__track--segmented {
|
|
2768
|
+
gap: var(--ow-space-2xs);
|
|
2769
|
+
overflow: visible;
|
|
2770
|
+
border-radius: 0;
|
|
2771
|
+
background: none;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
.ow-meter__segment {
|
|
2775
|
+
min-width: 0;
|
|
2776
|
+
flex: 1;
|
|
2777
|
+
overflow: hidden;
|
|
2778
|
+
border-radius: var(--ow-radius-pill);
|
|
2779
|
+
background: var(--ow-meter-track);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2782
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2783
|
+
.ow-meter__fill {
|
|
2784
|
+
transition: none;
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
|
|
2306
2788
|
/* components/Tooltip/Tooltip.css */
|
|
2307
2789
|
/* Tooltip: a small dark label in the top layer, on the side of the child it prefers (or the other side when there's no room). */
|
|
2308
2790
|
.ow-tooltip {
|
|
@@ -2907,6 +3389,13 @@
|
|
|
2907
3389
|
cursor: not-allowed;
|
|
2908
3390
|
}
|
|
2909
3391
|
|
|
3392
|
+
/* Holds a missing button's place, so a month's name stays centred (RangeCalendar's months side by side). */
|
|
3393
|
+
.ow-calendar__nav-space {
|
|
3394
|
+
width: 32px;
|
|
3395
|
+
height: 32px;
|
|
3396
|
+
flex-shrink: 0;
|
|
3397
|
+
}
|
|
3398
|
+
|
|
2910
3399
|
.ow-calendar__grid {
|
|
2911
3400
|
border-collapse: separate;
|
|
2912
3401
|
border-spacing: 2px;
|
|
@@ -3040,6 +3529,200 @@
|
|
|
3040
3529
|
padding: var(--ow-space-md);
|
|
3041
3530
|
}
|
|
3042
3531
|
|
|
3532
|
+
/* components/Calendar/RangeCalendar.css */
|
|
3533
|
+
/* RangeCalendar: Calendar's month grid, with the range's ends as solid caps and a primary-subtle band between them. */
|
|
3534
|
+
.ow-range-calendar {
|
|
3535
|
+
display: inline-flex;
|
|
3536
|
+
max-width: 100%;
|
|
3537
|
+
flex-wrap: wrap;
|
|
3538
|
+
align-items: flex-start;
|
|
3539
|
+
gap: var(--ow-space-2xl) var(--ow-space-4xl);
|
|
3540
|
+
color: var(--ow-text);
|
|
3541
|
+
font-family: var(--ow-font-sans);
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
.ow-range-calendar .ow-calendar__cell {
|
|
3545
|
+
position: relative;
|
|
3546
|
+
}
|
|
3547
|
+
|
|
3548
|
+
/* The band sits behind the day buttons and reaches 1px into the 2px gaps either side, so the days join up. */
|
|
3549
|
+
.ow-range-calendar__cell--in-range::before {
|
|
3550
|
+
content: "";
|
|
3551
|
+
position: absolute;
|
|
3552
|
+
top: 0;
|
|
3553
|
+
right: -1px;
|
|
3554
|
+
bottom: 0;
|
|
3555
|
+
left: -1px;
|
|
3556
|
+
background: var(--ow-primary-subtle);
|
|
3557
|
+
}
|
|
3558
|
+
|
|
3559
|
+
/* It rounds off at the ends of each week, and side by side at the ends of each month. */
|
|
3560
|
+
.ow-range-calendar__cell--row-start::before {
|
|
3561
|
+
left: 0;
|
|
3562
|
+
border-top-left-radius: var(--ow-radius-form);
|
|
3563
|
+
border-bottom-left-radius: var(--ow-radius-form);
|
|
3564
|
+
}
|
|
3565
|
+
|
|
3566
|
+
.ow-range-calendar__cell--row-end::before {
|
|
3567
|
+
right: 0;
|
|
3568
|
+
border-top-right-radius: var(--ow-radius-form);
|
|
3569
|
+
border-bottom-right-radius: var(--ow-radius-form);
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
/* At the caps it starts and stops halfway, so it fills in behind their inner corners. */
|
|
3573
|
+
.ow-range-calendar__cell--start::before {
|
|
3574
|
+
left: 50%;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
.ow-range-calendar__cell--end::before {
|
|
3578
|
+
right: 50%;
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
.ow-range-calendar__day--in-range:not(.ow-calendar__day--disabled):hover {
|
|
3582
|
+
border-color: var(--ow-primary-border);
|
|
3583
|
+
background: var(--ow-primary-soft);
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
/* components/Calendar/DateRangePicker.css */
|
|
3587
|
+
/* DateRangePicker: Select's trigger with a calendar icon and a clear button, opening a RangeCalendar and presets. */
|
|
3588
|
+
.ow-date-range-picker {
|
|
3589
|
+
position: relative;
|
|
3590
|
+
display: inline-flex;
|
|
3591
|
+
min-width: 0;
|
|
3592
|
+
vertical-align: middle;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3595
|
+
.ow-date-range-picker--md {
|
|
3596
|
+
min-width: 240px;
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
.ow-date-range-picker--sm {
|
|
3600
|
+
min-width: 210px;
|
|
3601
|
+
}
|
|
3602
|
+
|
|
3603
|
+
.ow-date-range-picker__trigger {
|
|
3604
|
+
width: 100%;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
.ow-date-range-picker__icon {
|
|
3608
|
+
flex-shrink: 0;
|
|
3609
|
+
color: var(--ow-text-muted);
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
/* The clear button sits over the trigger's right end (a button can't hold another), which leaves it room. */
|
|
3613
|
+
.ow-date-range-picker--clearable.ow-date-range-picker--md .ow-date-range-picker__trigger {
|
|
3614
|
+
padding-right: 38px;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
.ow-date-range-picker--clearable.ow-date-range-picker--sm .ow-date-range-picker__trigger {
|
|
3618
|
+
padding-right: 30px;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
.ow-date-range-picker__clear {
|
|
3622
|
+
position: absolute;
|
|
3623
|
+
top: 50%;
|
|
3624
|
+
right: var(--ow-space-sm);
|
|
3625
|
+
transform: translateY(-50%);
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
.ow-date-range-picker--sm .ow-date-range-picker__clear {
|
|
3629
|
+
right: var(--ow-space-2xs);
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
/* Hovering the clear button still shows the field's hover edge. */
|
|
3633
|
+
.ow-date-range-picker:hover .ow-date-range-picker__trigger:not(:disabled):not(.ow-select--open):not(.ow-select--invalid):not(:focus-visible) {
|
|
3634
|
+
border-color: var(--ow-border-hover);
|
|
3635
|
+
}
|
|
3636
|
+
|
|
3637
|
+
.ow-date-range-picker__panel {
|
|
3638
|
+
display: flex;
|
|
3639
|
+
width: auto;
|
|
3640
|
+
max-width: calc(100vw - 16px);
|
|
3641
|
+
align-items: flex-start;
|
|
3642
|
+
gap: var(--ow-space-lg);
|
|
3643
|
+
padding: var(--ow-space-md);
|
|
3644
|
+
}
|
|
3645
|
+
|
|
3646
|
+
.ow-date-range-picker__presets {
|
|
3647
|
+
display: grid;
|
|
3648
|
+
width: 148px;
|
|
3649
|
+
flex-shrink: 0;
|
|
3650
|
+
align-self: stretch;
|
|
3651
|
+
align-content: start;
|
|
3652
|
+
gap: var(--ow-space-2xs);
|
|
3653
|
+
border-right: 1px solid var(--ow-border);
|
|
3654
|
+
padding-right: var(--ow-space-md);
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
.ow-date-range-picker__preset {
|
|
3658
|
+
display: flex;
|
|
3659
|
+
min-height: 32px;
|
|
3660
|
+
align-items: center;
|
|
3661
|
+
gap: var(--ow-space-sm);
|
|
3662
|
+
margin: 0;
|
|
3663
|
+
border: 0;
|
|
3664
|
+
border-radius: var(--ow-radius-lg);
|
|
3665
|
+
background: transparent;
|
|
3666
|
+
padding: var(--ow-space-xs) var(--ow-space-sm);
|
|
3667
|
+
color: var(--ow-text);
|
|
3668
|
+
font: inherit;
|
|
3669
|
+
font-size: 14px;
|
|
3670
|
+
font-weight: var(--ow-weight-control);
|
|
3671
|
+
line-height: 1.1;
|
|
3672
|
+
text-align: left;
|
|
3673
|
+
cursor: pointer;
|
|
3674
|
+
transition-property: color, background-color;
|
|
3675
|
+
transition-duration: var(--ow-duration-base);
|
|
3676
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
3677
|
+
}
|
|
3678
|
+
|
|
3679
|
+
.ow-date-range-picker__preset:hover {
|
|
3680
|
+
background: var(--ow-hover);
|
|
3681
|
+
}
|
|
3682
|
+
|
|
3683
|
+
.ow-date-range-picker__preset:focus-visible {
|
|
3684
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
3685
|
+
outline-offset: -2px;
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
.ow-date-range-picker__preset--current,
|
|
3689
|
+
.ow-date-range-picker__preset--current:hover {
|
|
3690
|
+
background: var(--ow-primary-subtle);
|
|
3691
|
+
color: var(--ow-primary-text);
|
|
3692
|
+
font-weight: var(--ow-weight-emphasis);
|
|
3693
|
+
}
|
|
3694
|
+
|
|
3695
|
+
.ow-date-range-picker__preset-label {
|
|
3696
|
+
min-width: 0;
|
|
3697
|
+
flex: 1;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3700
|
+
.ow-date-range-picker__preset-check {
|
|
3701
|
+
flex-shrink: 0;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
/* On a phone the presets wrap in rows above the month, no wider than it. */
|
|
3705
|
+
@media (max-width: 479px) {
|
|
3706
|
+
.ow-date-range-picker__panel {
|
|
3707
|
+
width: min-content;
|
|
3708
|
+
flex-direction: column;
|
|
3709
|
+
align-items: stretch;
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
.ow-date-range-picker__presets {
|
|
3713
|
+
display: flex;
|
|
3714
|
+
width: auto;
|
|
3715
|
+
flex-wrap: wrap;
|
|
3716
|
+
border-right: 0;
|
|
3717
|
+
border-bottom: 1px solid var(--ow-border);
|
|
3718
|
+
padding: 0 0 var(--ow-space-md);
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3721
|
+
.ow-date-range-picker__preset {
|
|
3722
|
+
border: 1px solid var(--ow-border);
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3043
3726
|
/* components/ColorPicker/ColorPicker.css */
|
|
3044
3727
|
/* ColorPicker: react-colorful's saturation area and hue slider in Openware's look, with a hex field,
|
|
3045
3728
|
an eyedropper and swatches. react-colorful injects its own styles after this sheet, so these
|
|
@@ -3238,38 +3921,350 @@
|
|
|
3238
3921
|
padding: var(--ow-space-lg);
|
|
3239
3922
|
}
|
|
3240
3923
|
|
|
3241
|
-
/* components/
|
|
3242
|
-
/*
|
|
3243
|
-
.
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3924
|
+
/* components/ColorPicker/ColorArea.css */
|
|
3925
|
+
/* ColorArea: one hue's square, white to the hue across and down to black, in ColorPicker's look (its corners,
|
|
3926
|
+
hairline and thumb), so the two can sit side by side. */
|
|
3927
|
+
.ow-color-area {
|
|
3928
|
+
--ow-color-area-direction: to right;
|
|
3929
|
+
position: relative;
|
|
3930
|
+
width: var(--ow-color-area-width, 232px);
|
|
3931
|
+
max-width: 100%;
|
|
3932
|
+
height: var(--ow-color-area-height, 152px);
|
|
3933
|
+
flex-shrink: 0;
|
|
3934
|
+
border-radius: var(--ow-radius-form);
|
|
3935
|
+
background: linear-gradient(to top, #000000, transparent), linear-gradient(var(--ow-color-area-direction), #ffffff, var(--ow-color-area-hue));
|
|
3936
|
+
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
|
|
3937
|
+
cursor: pointer;
|
|
3938
|
+
touch-action: none;
|
|
3939
|
+
user-select: none;
|
|
3940
|
+
-webkit-tap-highlight-color: transparent;
|
|
3250
3941
|
}
|
|
3251
3942
|
|
|
3252
|
-
.ow-
|
|
3253
|
-
|
|
3254
|
-
align-items: center;
|
|
3255
|
-
gap: var(--ow-space-sm);
|
|
3256
|
-
border-bottom: 1px solid var(--ow-border);
|
|
3257
|
-
padding: var(--ow-space-md) var(--ow-space-lg);
|
|
3943
|
+
.ow-color-area:dir(rtl) {
|
|
3944
|
+
--ow-color-area-direction: to left;
|
|
3258
3945
|
}
|
|
3259
3946
|
|
|
3260
|
-
.ow-
|
|
3261
|
-
|
|
3262
|
-
|
|
3947
|
+
.ow-color-area__thumb {
|
|
3948
|
+
position: absolute;
|
|
3949
|
+
top: var(--ow-color-area-y);
|
|
3950
|
+
inset-inline-start: var(--ow-color-area-x);
|
|
3951
|
+
width: 18px;
|
|
3952
|
+
height: 18px;
|
|
3953
|
+
border: 2px solid #ffffff;
|
|
3954
|
+
border-radius: 50%;
|
|
3955
|
+
background: var(--ow-color-area-color);
|
|
3956
|
+
box-shadow:
|
|
3957
|
+
0 0 0 1px rgba(15, 23, 42, 0.18),
|
|
3958
|
+
0 2px 6px rgba(15, 23, 42, 0.28);
|
|
3959
|
+
pointer-events: none;
|
|
3960
|
+
translate: -50% -50%;
|
|
3961
|
+
transition: scale var(--ow-duration-fast) var(--ow-ease-standard);
|
|
3263
3962
|
}
|
|
3264
3963
|
|
|
3265
|
-
.ow-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3964
|
+
.ow-color-area:dir(rtl) .ow-color-area__thumb {
|
|
3965
|
+
translate: 50% -50%;
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
.ow-color-area--dragging .ow-color-area__thumb {
|
|
3969
|
+
scale: 1.15;
|
|
3970
|
+
}
|
|
3971
|
+
|
|
3972
|
+
/* Focused by a press, it shows no ring until a key is used (useDrag's pointerFocus). */
|
|
3973
|
+
.ow-color-area:not(.ow-color-area--pointer) .ow-color-area__thumb:has(:focus-visible) {
|
|
3974
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
3975
|
+
outline-offset: 2px;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
.ow-color-area--disabled {
|
|
3979
|
+
cursor: not-allowed;
|
|
3980
|
+
opacity: 0.55;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3984
|
+
.ow-color-area__thumb {
|
|
3985
|
+
transition: none;
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
|
|
3989
|
+
/* components/ColorPicker/ColorSlider.css */
|
|
3990
|
+
/* ColorSlider: a 12px pill track painted with the channel's range, and ColorPicker's thumb, which shows the colour.
|
|
3991
|
+
The input is visually hidden inside the thumb, so a screen reader's focus box sits where the thumb is. */
|
|
3992
|
+
.ow-color-slider {
|
|
3993
|
+
--ow-color-slider-direction: to right;
|
|
3994
|
+
display: grid;
|
|
3995
|
+
min-width: 0;
|
|
3996
|
+
gap: var(--ow-space-md);
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
.ow-color-slider--horizontal:dir(rtl) {
|
|
4000
|
+
--ow-color-slider-direction: to left;
|
|
4001
|
+
}
|
|
4002
|
+
|
|
4003
|
+
.ow-color-slider--vertical {
|
|
4004
|
+
--ow-color-slider-direction: to top;
|
|
4005
|
+
display: inline-flex;
|
|
4006
|
+
height: 152px;
|
|
4007
|
+
flex-direction: column;
|
|
4008
|
+
align-items: center;
|
|
4009
|
+
}
|
|
4010
|
+
|
|
4011
|
+
.ow-color-slider__header {
|
|
4012
|
+
display: flex;
|
|
4013
|
+
align-items: baseline;
|
|
4014
|
+
justify-content: space-between;
|
|
4015
|
+
gap: var(--ow-space-md);
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
.ow-color-slider--vertical .ow-color-slider__header {
|
|
4019
|
+
flex-direction: column;
|
|
4020
|
+
align-items: center;
|
|
4021
|
+
gap: 0;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
.ow-color-slider__label {
|
|
4025
|
+
color: var(--ow-text);
|
|
4026
|
+
font-size: 14px;
|
|
4027
|
+
font-weight: var(--ow-weight-emphasis);
|
|
4028
|
+
}
|
|
4029
|
+
|
|
4030
|
+
.ow-color-slider__value {
|
|
4031
|
+
color: var(--ow-text-muted);
|
|
4032
|
+
font-size: 13px;
|
|
4033
|
+
font-variant-numeric: tabular-nums;
|
|
4034
|
+
}
|
|
4035
|
+
|
|
4036
|
+
.ow-color-slider__track {
|
|
4037
|
+
position: relative;
|
|
4038
|
+
border-radius: var(--ow-radius-pill);
|
|
4039
|
+
background: var(--ow-color-slider-gradient);
|
|
4040
|
+
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
|
|
4041
|
+
cursor: pointer;
|
|
4042
|
+
touch-action: none;
|
|
4043
|
+
user-select: none;
|
|
4044
|
+
-webkit-tap-highlight-color: transparent;
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
/* A taller target than the 12px track, the thumb's full height. */
|
|
4048
|
+
.ow-color-slider__track::before {
|
|
4049
|
+
position: absolute;
|
|
4050
|
+
content: "";
|
|
4051
|
+
}
|
|
4052
|
+
|
|
4053
|
+
.ow-color-slider--horizontal .ow-color-slider__track {
|
|
4054
|
+
height: 12px;
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
.ow-color-slider--horizontal .ow-color-slider__track::before {
|
|
4058
|
+
inset: -4px 0;
|
|
4059
|
+
}
|
|
4060
|
+
|
|
4061
|
+
.ow-color-slider--vertical .ow-color-slider__track {
|
|
4062
|
+
width: 12px;
|
|
4063
|
+
min-height: 0;
|
|
4064
|
+
flex: 1;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
.ow-color-slider--vertical .ow-color-slider__track::before {
|
|
4068
|
+
inset: 0 -4px;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
.ow-color-slider--alpha .ow-color-slider__track {
|
|
4072
|
+
background:
|
|
4073
|
+
var(--ow-color-slider-gradient),
|
|
4074
|
+
repeating-conic-gradient(var(--ow-gray-200) 0 25%, #ffffff 0 50%) 0 0 / 12px 12px;
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
.ow-color-slider__thumb {
|
|
4078
|
+
position: absolute;
|
|
4079
|
+
width: 16px;
|
|
4080
|
+
height: 16px;
|
|
4081
|
+
border: 2px solid #ffffff;
|
|
4082
|
+
border-radius: 50%;
|
|
4083
|
+
background:
|
|
4084
|
+
linear-gradient(var(--ow-color-slider-thumb), var(--ow-color-slider-thumb)),
|
|
4085
|
+
repeating-conic-gradient(var(--ow-gray-200) 0 25%, #ffffff 0 50%) 0 0 / 8px 8px;
|
|
4086
|
+
box-shadow:
|
|
4087
|
+
0 0 0 1px rgba(15, 23, 42, 0.18),
|
|
4088
|
+
0 2px 6px rgba(15, 23, 42, 0.28);
|
|
4089
|
+
pointer-events: none;
|
|
4090
|
+
transition: scale var(--ow-duration-fast) var(--ow-ease-standard);
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
.ow-color-slider--horizontal .ow-color-slider__thumb {
|
|
4094
|
+
top: 50%;
|
|
4095
|
+
inset-inline-start: var(--ow-color-slider-position);
|
|
4096
|
+
translate: -50% -50%;
|
|
4097
|
+
}
|
|
4098
|
+
|
|
4099
|
+
.ow-color-slider--horizontal:dir(rtl) .ow-color-slider__thumb {
|
|
4100
|
+
translate: 50% -50%;
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
.ow-color-slider--vertical .ow-color-slider__thumb {
|
|
4104
|
+
bottom: var(--ow-color-slider-position);
|
|
4105
|
+
left: 50%;
|
|
4106
|
+
translate: -50% 50%;
|
|
4107
|
+
}
|
|
4108
|
+
|
|
4109
|
+
.ow-color-slider--dragging .ow-color-slider__thumb {
|
|
4110
|
+
scale: 1.15;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
/* Focused by a press, it shows no ring until a key is used (useDrag's pointerFocus). */
|
|
4114
|
+
.ow-color-slider:not(.ow-color-slider--pointer) .ow-color-slider__thumb:has(:focus-visible) {
|
|
4115
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
4116
|
+
outline-offset: 2px;
|
|
4117
|
+
}
|
|
4118
|
+
|
|
4119
|
+
.ow-color-slider--disabled {
|
|
4120
|
+
opacity: 0.55;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
.ow-color-slider--disabled .ow-color-slider__track {
|
|
4124
|
+
cursor: not-allowed;
|
|
4125
|
+
}
|
|
4126
|
+
|
|
4127
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4128
|
+
.ow-color-slider__thumb {
|
|
4129
|
+
transition: none;
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
/* components/ColorPicker/ColorSwatchPicker.css */
|
|
4134
|
+
/* ColorSwatchPicker: swatches in wrapping rows, like ColorPicker's. The chosen one gets ColorPicker's ring (a gap in
|
|
4135
|
+
the surface colour, then a 2px ring in the text colour) and a check in white or slate, whichever reads on it.
|
|
4136
|
+
The focus outline lands exactly on the ring, so a focused swatch's ring turns the focus colour. */
|
|
4137
|
+
.ow-color-swatch-picker {
|
|
4138
|
+
display: flex;
|
|
4139
|
+
flex-wrap: wrap;
|
|
4140
|
+
align-items: center;
|
|
4141
|
+
gap: var(--ow-space-sm);
|
|
4142
|
+
}
|
|
4143
|
+
|
|
4144
|
+
.ow-color-swatch-picker--sm {
|
|
4145
|
+
gap: var(--ow-space-xs);
|
|
4146
|
+
}
|
|
4147
|
+
|
|
4148
|
+
.ow-color-swatch-picker__swatch {
|
|
4149
|
+
display: inline-flex;
|
|
4150
|
+
width: 32px;
|
|
4151
|
+
height: 32px;
|
|
4152
|
+
flex-shrink: 0;
|
|
4153
|
+
align-items: center;
|
|
4154
|
+
justify-content: center;
|
|
4155
|
+
border-radius: var(--ow-radius-form);
|
|
4156
|
+
background:
|
|
4157
|
+
linear-gradient(var(--ow-color-swatch-picker-value), var(--ow-color-swatch-picker-value)),
|
|
4158
|
+
repeating-conic-gradient(var(--ow-gray-200) 0 25%, #ffffff 0 50%) 0 0 / 8px 8px;
|
|
4159
|
+
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
|
|
4160
|
+
cursor: pointer;
|
|
4161
|
+
outline: none;
|
|
4162
|
+
-webkit-tap-highlight-color: transparent;
|
|
4163
|
+
transition:
|
|
4164
|
+
transform var(--ow-duration-base) var(--ow-ease-spring),
|
|
4165
|
+
box-shadow var(--ow-duration-base) var(--ow-ease-standard);
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
.ow-color-swatch-picker--sm .ow-color-swatch-picker__swatch {
|
|
4169
|
+
width: 24px;
|
|
4170
|
+
height: 24px;
|
|
4171
|
+
border-radius: var(--ow-radius-md);
|
|
4172
|
+
}
|
|
4173
|
+
|
|
4174
|
+
.ow-color-swatch-picker--circle .ow-color-swatch-picker__swatch {
|
|
4175
|
+
border-radius: 50%;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4178
|
+
.ow-color-swatch-picker__swatch:hover:not([aria-disabled="true"]) {
|
|
4179
|
+
transform: scale(1.1);
|
|
4180
|
+
}
|
|
4181
|
+
|
|
4182
|
+
.ow-color-swatch-picker__swatch[aria-checked="true"] {
|
|
4183
|
+
box-shadow:
|
|
4184
|
+
inset 0 0 0 1px rgba(15, 23, 42, 0.14),
|
|
4185
|
+
0 0 0 2px var(--ow-surface),
|
|
4186
|
+
0 0 0 4px var(--ow-text);
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
.ow-color-swatch-picker__swatch:focus-visible {
|
|
4190
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
4191
|
+
outline-offset: 2px;
|
|
4192
|
+
}
|
|
4193
|
+
|
|
4194
|
+
.ow-color-swatch-picker__check {
|
|
4195
|
+
opacity: 0;
|
|
4196
|
+
scale: 0.5;
|
|
4197
|
+
transition:
|
|
4198
|
+
opacity var(--ow-duration-fast) var(--ow-ease-standard),
|
|
4199
|
+
scale var(--ow-duration-base) var(--ow-ease-spring);
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4202
|
+
.ow-color-swatch-picker__swatch[data-ink="light"] .ow-color-swatch-picker__check {
|
|
4203
|
+
color: #ffffff;
|
|
4204
|
+
}
|
|
4205
|
+
|
|
4206
|
+
.ow-color-swatch-picker__swatch[data-ink="dark"] .ow-color-swatch-picker__check {
|
|
4207
|
+
color: var(--ow-gray-900);
|
|
4208
|
+
}
|
|
4209
|
+
|
|
4210
|
+
.ow-color-swatch-picker__swatch[aria-checked="true"] .ow-color-swatch-picker__check {
|
|
4211
|
+
opacity: 1;
|
|
4212
|
+
scale: 1;
|
|
4213
|
+
}
|
|
4214
|
+
|
|
4215
|
+
.ow-color-swatch-picker__swatch[aria-disabled="true"] {
|
|
4216
|
+
cursor: not-allowed;
|
|
4217
|
+
opacity: 0.4;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
.ow-color-swatch-picker--disabled {
|
|
4221
|
+
opacity: 0.55;
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
/* The group fades as a whole; its swatches don't fade again. */
|
|
4225
|
+
.ow-color-swatch-picker--disabled .ow-color-swatch-picker__swatch[aria-disabled="true"] {
|
|
4226
|
+
opacity: 1;
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4230
|
+
.ow-color-swatch-picker__swatch,
|
|
4231
|
+
.ow-color-swatch-picker__check {
|
|
4232
|
+
transition: none;
|
|
4233
|
+
}
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
/* components/CommandPalette/CommandPalette.css */
|
|
4237
|
+
/* CommandPalette: a dialog 12vh from the top, 560px wide, with a search row and a results list. */
|
|
4238
|
+
.ow-palette {
|
|
4239
|
+
top: 12vh;
|
|
4240
|
+
bottom: auto;
|
|
4241
|
+
width: min(560px, calc(100% - 32px));
|
|
4242
|
+
margin: 0 auto;
|
|
4243
|
+
overflow: hidden;
|
|
4244
|
+
padding: 0;
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
.ow-palette__search {
|
|
4248
|
+
display: flex;
|
|
4249
|
+
align-items: center;
|
|
4250
|
+
gap: var(--ow-space-sm);
|
|
4251
|
+
border-bottom: 1px solid var(--ow-border);
|
|
4252
|
+
padding: var(--ow-space-md) var(--ow-space-lg);
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
.ow-palette__search-icon {
|
|
4256
|
+
flex-shrink: 0;
|
|
4257
|
+
color: var(--ow-text-muted);
|
|
4258
|
+
}
|
|
4259
|
+
|
|
4260
|
+
.ow-palette__input {
|
|
4261
|
+
min-width: 0;
|
|
4262
|
+
flex: 1;
|
|
4263
|
+
margin: 0;
|
|
4264
|
+
border: 0;
|
|
4265
|
+
background: transparent;
|
|
4266
|
+
padding: 0;
|
|
4267
|
+
color: var(--ow-text);
|
|
3273
4268
|
font: inherit;
|
|
3274
4269
|
font-size: 14px;
|
|
3275
4270
|
outline: 0;
|
|
@@ -5378,3 +6373,2527 @@
|
|
|
5378
6373
|
.ow-dot-grid__content {
|
|
5379
6374
|
position: relative;
|
|
5380
6375
|
}
|
|
6376
|
+
|
|
6377
|
+
/* components/Prose/Prose.css */
|
|
6378
|
+
/* Prose: the plain elements of rendered Markdown, a CMS body or an agent's answer, in Openware's type and colours.
|
|
6379
|
+
Every element rule ends in the same :not(): it skips Openware components and everything inside them, so a CodeBlock,
|
|
6380
|
+
a Table or a Code in the text keeps its own look. That :not() also gives the rules enough weight that a page's own
|
|
6381
|
+
element styles (a reset, `article p`) don't leak in. */
|
|
6382
|
+
.ow-prose {
|
|
6383
|
+
min-width: 0;
|
|
6384
|
+
color: var(--ow-text);
|
|
6385
|
+
overflow-wrap: break-word;
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
/* md: articles and docs, on the prose style (16.5px, 1.7), about 68 characters a line. */
|
|
6389
|
+
.ow-prose--md {
|
|
6390
|
+
--ow-prose-flow: var(--ow-space-4xl);
|
|
6391
|
+
--ow-prose-block: var(--ow-space-7xl);
|
|
6392
|
+
--ow-prose-heading: 40px;
|
|
6393
|
+
--ow-prose-heading-gap: var(--ow-space-xl);
|
|
6394
|
+
--ow-prose-subheading: var(--ow-space-7xl);
|
|
6395
|
+
--ow-prose-subheading-gap: var(--ow-space-sm);
|
|
6396
|
+
--ow-prose-rule: 40px;
|
|
6397
|
+
--ow-prose-item: var(--ow-space-xs);
|
|
6398
|
+
--ow-prose-indent: var(--ow-space-6xl);
|
|
6399
|
+
--ow-prose-marker-gap: var(--ow-space-2xs);
|
|
6400
|
+
--ow-prose-quote: var(--ow-space-3xl);
|
|
6401
|
+
--ow-prose-code: 14px;
|
|
6402
|
+
--ow-prose-key: 13px;
|
|
6403
|
+
--ow-prose-pre-y: var(--ow-space-2xl);
|
|
6404
|
+
--ow-prose-pre-x: var(--ow-space-3xl);
|
|
6405
|
+
--ow-prose-cell-y: var(--ow-space-md);
|
|
6406
|
+
--ow-prose-cell-x: var(--ow-space-xl);
|
|
6407
|
+
--ow-prose-caption: 14px;
|
|
6408
|
+
--ow-prose-caption-gap: var(--ow-space-md);
|
|
6409
|
+
--ow-prose-check: 16px;
|
|
6410
|
+
--ow-prose-check-gap: var(--ow-space-sm);
|
|
6411
|
+
--ow-prose-details-x: var(--ow-space-2xl);
|
|
6412
|
+
--ow-prose-details-y: var(--ow-space-lg);
|
|
6413
|
+
--ow-prose-details-end: var(--ow-space-2xl);
|
|
6414
|
+
max-width: 68ch;
|
|
6415
|
+
color: var(--ow-text-soft);
|
|
6416
|
+
}
|
|
6417
|
+
|
|
6418
|
+
/* sm: chat answers and comments, on 14px interface text with a tight rhythm. */
|
|
6419
|
+
.ow-prose--sm {
|
|
6420
|
+
--ow-prose-flow: var(--ow-space-lg);
|
|
6421
|
+
--ow-prose-block: var(--ow-space-xl);
|
|
6422
|
+
--ow-prose-heading: var(--ow-space-4xl);
|
|
6423
|
+
--ow-prose-heading-gap: var(--ow-space-xs);
|
|
6424
|
+
--ow-prose-subheading: var(--ow-space-2xl);
|
|
6425
|
+
--ow-prose-subheading-gap: var(--ow-space-2xs);
|
|
6426
|
+
--ow-prose-rule: var(--ow-space-3xl);
|
|
6427
|
+
--ow-prose-item: var(--ow-space-2xs);
|
|
6428
|
+
--ow-prose-indent: var(--ow-space-5xl);
|
|
6429
|
+
--ow-prose-marker-gap: 2px;
|
|
6430
|
+
--ow-prose-quote: var(--ow-space-lg);
|
|
6431
|
+
--ow-prose-code: 13px;
|
|
6432
|
+
--ow-prose-key: 12px;
|
|
6433
|
+
--ow-prose-pre-y: var(--ow-space-xl);
|
|
6434
|
+
--ow-prose-pre-x: var(--ow-space-lg);
|
|
6435
|
+
--ow-prose-cell-y: var(--ow-space-sm);
|
|
6436
|
+
--ow-prose-cell-x: var(--ow-space-lg);
|
|
6437
|
+
--ow-prose-caption: 12px;
|
|
6438
|
+
--ow-prose-caption-gap: var(--ow-space-sm);
|
|
6439
|
+
--ow-prose-check: 14px;
|
|
6440
|
+
--ow-prose-check-gap: var(--ow-space-xs);
|
|
6441
|
+
--ow-prose-details-x: var(--ow-space-lg);
|
|
6442
|
+
--ow-prose-details-y: var(--ow-space-md);
|
|
6443
|
+
--ow-prose-details-end: var(--ow-space-lg);
|
|
6444
|
+
}
|
|
6445
|
+
|
|
6446
|
+
.ow-prose--full {
|
|
6447
|
+
max-width: none;
|
|
6448
|
+
}
|
|
6449
|
+
|
|
6450
|
+
/* Vertical rhythm: paragraphs and lists, then the larger blocks, with more room above a heading than below it. */
|
|
6451
|
+
.ow-prose :where(p):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6452
|
+
max-width: none;
|
|
6453
|
+
margin-block: var(--ow-prose-flow);
|
|
6454
|
+
color: inherit;
|
|
6455
|
+
font-size: inherit;
|
|
6456
|
+
line-height: inherit;
|
|
6457
|
+
text-wrap: pretty;
|
|
6458
|
+
}
|
|
6459
|
+
|
|
6460
|
+
.ow-prose :where(h1, h2, h3, h4, h5, h6):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6461
|
+
color: var(--ow-text);
|
|
6462
|
+
text-wrap: balance;
|
|
6463
|
+
}
|
|
6464
|
+
|
|
6465
|
+
.ow-prose :where(h1, h2):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6466
|
+
margin-block: var(--ow-prose-heading) var(--ow-prose-heading-gap);
|
|
6467
|
+
}
|
|
6468
|
+
|
|
6469
|
+
.ow-prose :where(h3, h4, h5, h6):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6470
|
+
margin-block: var(--ow-prose-subheading) var(--ow-prose-subheading-gap);
|
|
6471
|
+
}
|
|
6472
|
+
|
|
6473
|
+
/* md headings come from the type scale: h1 is the section title as phones set it, light and tight; h2 is heading. */
|
|
6474
|
+
.ow-prose--md :where(h1):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6475
|
+
font-size: 32px;
|
|
6476
|
+
font-weight: 500;
|
|
6477
|
+
line-height: 1.12;
|
|
6478
|
+
letter-spacing: -0.03em;
|
|
6479
|
+
}
|
|
6480
|
+
|
|
6481
|
+
.ow-prose--md :where(h2):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6482
|
+
font-size: 24px;
|
|
6483
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6484
|
+
line-height: 1.25;
|
|
6485
|
+
letter-spacing: -0.02em;
|
|
6486
|
+
}
|
|
6487
|
+
|
|
6488
|
+
.ow-prose--md :where(h3):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6489
|
+
font-size: 18px;
|
|
6490
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6491
|
+
line-height: 1.4;
|
|
6492
|
+
letter-spacing: -0.01em;
|
|
6493
|
+
}
|
|
6494
|
+
|
|
6495
|
+
.ow-prose--md :where(h4, h5, h6):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6496
|
+
font-size: 1em;
|
|
6497
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6498
|
+
line-height: 1.5;
|
|
6499
|
+
}
|
|
6500
|
+
|
|
6501
|
+
/* sm headings stay modest, in the app's heavy weights: a dialog title, then smaller and lighter. */
|
|
6502
|
+
.ow-prose--sm :where(h1):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6503
|
+
font-size: 16px;
|
|
6504
|
+
font-weight: var(--ow-weight-display);
|
|
6505
|
+
line-height: 1.3;
|
|
6506
|
+
}
|
|
6507
|
+
|
|
6508
|
+
.ow-prose--sm :where(h2):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6509
|
+
font-size: 15px;
|
|
6510
|
+
font-weight: var(--ow-weight-title);
|
|
6511
|
+
line-height: 1.35;
|
|
6512
|
+
}
|
|
6513
|
+
|
|
6514
|
+
.ow-prose--sm :where(h3):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6515
|
+
font-size: 14px;
|
|
6516
|
+
font-weight: var(--ow-weight-label);
|
|
6517
|
+
line-height: 1.45;
|
|
6518
|
+
}
|
|
6519
|
+
|
|
6520
|
+
.ow-prose--sm :where(h4, h5, h6):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6521
|
+
font-size: 14px;
|
|
6522
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6523
|
+
line-height: 1.45;
|
|
6524
|
+
}
|
|
6525
|
+
|
|
6526
|
+
/* Inline text. */
|
|
6527
|
+
.ow-prose :where(a):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6528
|
+
border-radius: 2px;
|
|
6529
|
+
color: var(--ow-text);
|
|
6530
|
+
text-decoration-line: underline;
|
|
6531
|
+
text-decoration-color: var(--ow-border-strong);
|
|
6532
|
+
text-decoration-thickness: 1px;
|
|
6533
|
+
text-underline-offset: 3px;
|
|
6534
|
+
transition-property: color, text-decoration-color;
|
|
6535
|
+
transition-duration: var(--ow-duration-base);
|
|
6536
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
.ow-prose :where(a):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):hover {
|
|
6540
|
+
color: var(--ow-brass-deep);
|
|
6541
|
+
text-decoration-color: var(--ow-brass-deep);
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
.ow-prose :where(a):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):focus-visible {
|
|
6545
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6546
|
+
outline-offset: 2px;
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
.ow-prose :where(strong, b):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6550
|
+
color: var(--ow-text);
|
|
6551
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6552
|
+
}
|
|
6553
|
+
|
|
6554
|
+
/* Inter ships upright only here, so emphasis lets the browser slant it. */
|
|
6555
|
+
.ow-prose :where(em, i, cite):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6556
|
+
font-style: italic;
|
|
6557
|
+
font-synthesis: style;
|
|
6558
|
+
}
|
|
6559
|
+
|
|
6560
|
+
.ow-prose :where(code):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6561
|
+
border-radius: var(--ow-radius-code);
|
|
6562
|
+
background: var(--ow-code-ground);
|
|
6563
|
+
padding: 2px 4px;
|
|
6564
|
+
color: var(--ow-text);
|
|
6565
|
+
font-family: var(--ow-font-mono);
|
|
6566
|
+
font-size: 0.88em;
|
|
6567
|
+
font-variant-ligatures: none;
|
|
6568
|
+
-webkit-box-decoration-break: clone;
|
|
6569
|
+
box-decoration-break: clone;
|
|
6570
|
+
}
|
|
6571
|
+
|
|
6572
|
+
.ow-prose :where(kbd):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6573
|
+
box-sizing: border-box;
|
|
6574
|
+
display: inline-block;
|
|
6575
|
+
min-width: 1.85em;
|
|
6576
|
+
border: 1px solid var(--ow-border-strong);
|
|
6577
|
+
border-bottom-width: 2px;
|
|
6578
|
+
border-radius: var(--ow-radius-md);
|
|
6579
|
+
background: var(--ow-key-ground);
|
|
6580
|
+
padding: 0 var(--ow-space-xs);
|
|
6581
|
+
color: var(--ow-text-soft);
|
|
6582
|
+
font-family: var(--ow-font-mono);
|
|
6583
|
+
font-size: var(--ow-prose-key);
|
|
6584
|
+
font-weight: var(--ow-weight-control);
|
|
6585
|
+
line-height: 1.6;
|
|
6586
|
+
text-align: center;
|
|
6587
|
+
white-space: nowrap;
|
|
6588
|
+
}
|
|
6589
|
+
|
|
6590
|
+
/* <kbd><kbd>⌘</kbd><kbd>K</kbd></kbd> is one shortcut: only the inner keys are drawn. */
|
|
6591
|
+
.ow-prose :where(kbd:has(kbd)):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6592
|
+
min-width: 0;
|
|
6593
|
+
border: 0;
|
|
6594
|
+
background: none;
|
|
6595
|
+
padding: 0;
|
|
6596
|
+
color: inherit;
|
|
6597
|
+
font: inherit;
|
|
6598
|
+
}
|
|
6599
|
+
|
|
6600
|
+
.ow-prose :where(mark):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6601
|
+
border-radius: var(--ow-radius-sm);
|
|
6602
|
+
background: var(--ow-brass-soft);
|
|
6603
|
+
padding: 0 2px;
|
|
6604
|
+
color: var(--ow-text);
|
|
6605
|
+
-webkit-box-decoration-break: clone;
|
|
6606
|
+
box-decoration-break: clone;
|
|
6607
|
+
}
|
|
6608
|
+
|
|
6609
|
+
/* Raised and lowered text that doesn't open up the line it sits in. */
|
|
6610
|
+
.ow-prose :where(sub, sup):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6611
|
+
position: relative;
|
|
6612
|
+
font-size: 0.75em;
|
|
6613
|
+
line-height: 0;
|
|
6614
|
+
vertical-align: baseline;
|
|
6615
|
+
}
|
|
6616
|
+
|
|
6617
|
+
.ow-prose :where(sup):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6618
|
+
top: -0.5em;
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
.ow-prose :where(sub):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6622
|
+
bottom: -0.25em;
|
|
6623
|
+
}
|
|
6624
|
+
|
|
6625
|
+
/* Lists: muted markers hanging in the indent; nested lists sit as close as their items. */
|
|
6626
|
+
.ow-prose :where(ul, ol):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6627
|
+
margin-block: var(--ow-prose-flow);
|
|
6628
|
+
padding-inline-start: var(--ow-prose-indent);
|
|
6629
|
+
}
|
|
6630
|
+
|
|
6631
|
+
.ow-prose :where(ul):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6632
|
+
list-style-type: disc;
|
|
6633
|
+
}
|
|
6634
|
+
|
|
6635
|
+
.ow-prose :where(ol):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6636
|
+
list-style-type: decimal;
|
|
6637
|
+
}
|
|
6638
|
+
|
|
6639
|
+
.ow-prose :where(ul ul):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6640
|
+
list-style-type: circle;
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
.ow-prose :where(ul ul ul):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6644
|
+
list-style-type: square;
|
|
6645
|
+
}
|
|
6646
|
+
|
|
6647
|
+
.ow-prose :where(li ul, li ol):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6648
|
+
margin-block: var(--ow-prose-item);
|
|
6649
|
+
}
|
|
6650
|
+
|
|
6651
|
+
.ow-prose :where(li):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6652
|
+
margin-block: var(--ow-prose-item);
|
|
6653
|
+
padding-inline-start: var(--ow-prose-marker-gap);
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
.ow-prose :where(li):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::marker {
|
|
6657
|
+
color: var(--ow-text-muted);
|
|
6658
|
+
}
|
|
6659
|
+
|
|
6660
|
+
.ow-prose :where(ol > li):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::marker {
|
|
6661
|
+
font-variant-numeric: tabular-nums;
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6664
|
+
/* Task lists (GitHub Markdown's - [ ] and - [x]): the checkbox takes the bullet's place and the text lines up with
|
|
6665
|
+
the other items'. */
|
|
6666
|
+
.ow-prose
|
|
6667
|
+
:where(li:has(> input[type="checkbox"]:first-child, > p:first-child > input[type="checkbox"]:first-child)):not(
|
|
6668
|
+
[class^="ow-"],
|
|
6669
|
+
[class*=" ow-"],
|
|
6670
|
+
.ow-prose [class^="ow-"] *,
|
|
6671
|
+
.ow-prose [class*=" ow-"] *
|
|
6672
|
+
) {
|
|
6673
|
+
list-style-type: none;
|
|
6674
|
+
}
|
|
6675
|
+
|
|
6676
|
+
.ow-prose :where(input[type="checkbox"]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6677
|
+
box-sizing: border-box;
|
|
6678
|
+
width: var(--ow-prose-check);
|
|
6679
|
+
height: var(--ow-prose-check);
|
|
6680
|
+
margin: 0 var(--ow-prose-check-gap) 0 0;
|
|
6681
|
+
appearance: none;
|
|
6682
|
+
border: 1px solid var(--ow-border-strong);
|
|
6683
|
+
border-radius: var(--ow-radius-sm);
|
|
6684
|
+
background: var(--ow-surface);
|
|
6685
|
+
box-shadow: var(--ow-shadow-control);
|
|
6686
|
+
vertical-align: -0.15em;
|
|
6687
|
+
cursor: pointer;
|
|
6688
|
+
transition-property: border-color, background-color;
|
|
6689
|
+
transition-duration: var(--ow-duration-base);
|
|
6690
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
6691
|
+
}
|
|
6692
|
+
|
|
6693
|
+
/* Markdown puts a space after the box; the gap allows for it (a space is 0.28em in Inter), so a wrapped line lines up
|
|
6694
|
+
with the first. */
|
|
6695
|
+
.ow-prose
|
|
6696
|
+
:where(li > input[type="checkbox"]:first-child, li > p:first-child > input[type="checkbox"]:first-child):not(
|
|
6697
|
+
[class^="ow-"],
|
|
6698
|
+
[class*=" ow-"],
|
|
6699
|
+
.ow-prose [class^="ow-"] *,
|
|
6700
|
+
.ow-prose [class*=" ow-"] *
|
|
6701
|
+
) {
|
|
6702
|
+
margin-inline: calc(-1 * (var(--ow-prose-check) + var(--ow-prose-check-gap))) calc(var(--ow-prose-check-gap) - 0.28em);
|
|
6703
|
+
}
|
|
6704
|
+
|
|
6705
|
+
/* The tick is white, like Checkbox's, on the primary fill in both themes. */
|
|
6706
|
+
.ow-prose :where(input[type="checkbox"]:checked):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6707
|
+
border-color: var(--ow-primary-active);
|
|
6708
|
+
background-color: var(--ow-primary);
|
|
6709
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' \
|
|
6710
|
+
stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
|
|
6711
|
+
background-position: center;
|
|
6712
|
+
background-repeat: no-repeat;
|
|
6713
|
+
background-size: calc(var(--ow-prose-check) - 4px);
|
|
6714
|
+
}
|
|
6715
|
+
|
|
6716
|
+
.ow-prose
|
|
6717
|
+
:where(input[type="checkbox"]:hover:not(:disabled, :checked)):not(
|
|
6718
|
+
[class^="ow-"],
|
|
6719
|
+
[class*=" ow-"],
|
|
6720
|
+
.ow-prose [class^="ow-"] *,
|
|
6721
|
+
.ow-prose [class*=" ow-"] *
|
|
6722
|
+
) {
|
|
6723
|
+
border-color: var(--ow-border-hover);
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
.ow-prose :where(input[type="checkbox"]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):focus-visible {
|
|
6727
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6728
|
+
outline-offset: 2px;
|
|
6729
|
+
}
|
|
6730
|
+
|
|
6731
|
+
/* Rendered Markdown disables its checkboxes: they report a state rather than wait for a click, so they keep their
|
|
6732
|
+
colours and only lose the pointer. */
|
|
6733
|
+
.ow-prose :where(input[type="checkbox"]:disabled):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6734
|
+
cursor: default;
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6737
|
+
.ow-prose :where(blockquote):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6738
|
+
margin-block: var(--ow-prose-block);
|
|
6739
|
+
margin-inline: 0;
|
|
6740
|
+
border-inline-start: 2px solid var(--ow-border-strong);
|
|
6741
|
+
padding-inline-start: var(--ow-prose-quote);
|
|
6742
|
+
color: var(--ow-text-muted);
|
|
6743
|
+
}
|
|
6744
|
+
|
|
6745
|
+
/* Code blocks: the CodeBlock's dark ground in both themes, scrolling sideways rather than wrapping. */
|
|
6746
|
+
.ow-prose :where(pre):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6747
|
+
box-sizing: border-box;
|
|
6748
|
+
margin-block: var(--ow-prose-block);
|
|
6749
|
+
overflow-x: auto;
|
|
6750
|
+
border: 1px solid var(--ow-code-block-border);
|
|
6751
|
+
border-radius: var(--ow-radius-container);
|
|
6752
|
+
background: var(--ow-code-block);
|
|
6753
|
+
padding: var(--ow-prose-pre-y) var(--ow-prose-pre-x);
|
|
6754
|
+
color: var(--ow-on-code-block);
|
|
6755
|
+
font-family: var(--ow-font-mono);
|
|
6756
|
+
font-size: var(--ow-prose-code);
|
|
6757
|
+
font-variant-ligatures: none;
|
|
6758
|
+
line-height: 1.7;
|
|
6759
|
+
tab-size: 4;
|
|
6760
|
+
white-space: pre;
|
|
6761
|
+
overflow-wrap: normal;
|
|
6762
|
+
color-scheme: dark;
|
|
6763
|
+
}
|
|
6764
|
+
|
|
6765
|
+
.ow-prose :where(pre):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):focus-visible {
|
|
6766
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6767
|
+
outline-offset: 2px;
|
|
6768
|
+
}
|
|
6769
|
+
|
|
6770
|
+
.ow-prose :where(pre code):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6771
|
+
border-radius: 0;
|
|
6772
|
+
background: none;
|
|
6773
|
+
padding: 0;
|
|
6774
|
+
color: inherit;
|
|
6775
|
+
font-size: inherit;
|
|
6776
|
+
}
|
|
6777
|
+
|
|
6778
|
+
.ow-prose :where(hr):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6779
|
+
height: 0;
|
|
6780
|
+
margin-block: var(--ow-prose-rule);
|
|
6781
|
+
border: 0;
|
|
6782
|
+
border-top: 1px solid var(--ow-border);
|
|
6783
|
+
}
|
|
6784
|
+
|
|
6785
|
+
/* Tables: Table's look, a bordered card with a quiet header and hairlines between rows. As a block it scrolls
|
|
6786
|
+
sideways when it's wider than the text, and is as wide as its content otherwise. */
|
|
6787
|
+
.ow-prose :where(table):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6788
|
+
box-sizing: border-box;
|
|
6789
|
+
display: block;
|
|
6790
|
+
width: max-content;
|
|
6791
|
+
max-width: 100%;
|
|
6792
|
+
margin-block: var(--ow-prose-block);
|
|
6793
|
+
overflow-x: auto;
|
|
6794
|
+
border: 1px solid var(--ow-border);
|
|
6795
|
+
border-radius: var(--ow-radius-container);
|
|
6796
|
+
border-collapse: separate;
|
|
6797
|
+
border-spacing: 0;
|
|
6798
|
+
background: var(--ow-surface);
|
|
6799
|
+
color: var(--ow-text);
|
|
6800
|
+
font-size: 14px;
|
|
6801
|
+
font-variant-numeric: tabular-nums;
|
|
6802
|
+
line-height: 1.45;
|
|
6803
|
+
}
|
|
6804
|
+
|
|
6805
|
+
.ow-prose :where(table):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):focus-visible {
|
|
6806
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6807
|
+
outline-offset: 2px;
|
|
6808
|
+
}
|
|
6809
|
+
|
|
6810
|
+
.ow-prose :where(caption):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6811
|
+
padding: var(--ow-space-lg) var(--ow-prose-cell-x) var(--ow-space-sm);
|
|
6812
|
+
color: var(--ow-text);
|
|
6813
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6814
|
+
text-align: start;
|
|
6815
|
+
}
|
|
6816
|
+
|
|
6817
|
+
.ow-prose :where(th, td):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6818
|
+
border-bottom: 1px solid var(--ow-border);
|
|
6819
|
+
padding: var(--ow-prose-cell-y) var(--ow-prose-cell-x);
|
|
6820
|
+
text-align: start;
|
|
6821
|
+
vertical-align: top;
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
.ow-prose :where(thead th):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6825
|
+
background: var(--ow-surface-muted);
|
|
6826
|
+
color: var(--ow-text-muted);
|
|
6827
|
+
font-size: 12px;
|
|
6828
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6829
|
+
line-height: 1.35;
|
|
6830
|
+
white-space: nowrap;
|
|
6831
|
+
vertical-align: bottom;
|
|
6832
|
+
}
|
|
6833
|
+
|
|
6834
|
+
.ow-prose :where(tbody th):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6835
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6836
|
+
}
|
|
6837
|
+
|
|
6838
|
+
.ow-prose :where(tbody tr:last-child > *):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6839
|
+
border-bottom: 0;
|
|
6840
|
+
}
|
|
6841
|
+
|
|
6842
|
+
/* Markdown sets column alignment with align="…"; the start alignment above would otherwise win over it. */
|
|
6843
|
+
.ow-prose :where(th[align="center"], td[align="center"]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6844
|
+
text-align: center;
|
|
6845
|
+
}
|
|
6846
|
+
|
|
6847
|
+
.ow-prose :where(th[align="right"], td[align="right"]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6848
|
+
text-align: right;
|
|
6849
|
+
}
|
|
6850
|
+
|
|
6851
|
+
.ow-prose :where(img, video):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6852
|
+
max-width: 100%;
|
|
6853
|
+
height: auto;
|
|
6854
|
+
}
|
|
6855
|
+
|
|
6856
|
+
.ow-prose > :where(img, video):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *),
|
|
6857
|
+
.ow-prose :where(figure > img, figure > video):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6858
|
+
display: block;
|
|
6859
|
+
border-radius: var(--ow-radius-container);
|
|
6860
|
+
}
|
|
6861
|
+
|
|
6862
|
+
.ow-prose > :where(img, video):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6863
|
+
margin-block: var(--ow-prose-block);
|
|
6864
|
+
}
|
|
6865
|
+
|
|
6866
|
+
.ow-prose :where(figure):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6867
|
+
margin-block: var(--ow-prose-block);
|
|
6868
|
+
margin-inline: 0;
|
|
6869
|
+
}
|
|
6870
|
+
|
|
6871
|
+
.ow-prose :where(figure > *):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6872
|
+
margin-block: 0;
|
|
6873
|
+
}
|
|
6874
|
+
|
|
6875
|
+
.ow-prose :where(figcaption):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6876
|
+
margin-top: var(--ow-prose-caption-gap);
|
|
6877
|
+
color: var(--ow-text-muted);
|
|
6878
|
+
font-size: var(--ow-prose-caption);
|
|
6879
|
+
line-height: 1.5;
|
|
6880
|
+
text-wrap: pretty;
|
|
6881
|
+
}
|
|
6882
|
+
|
|
6883
|
+
/* details: Disclosure's look, a bordered card with a chevron that turns as it opens. The content lines up with the
|
|
6884
|
+
summary's text. */
|
|
6885
|
+
.ow-prose :where(details):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6886
|
+
--ow-prose-details-indent: calc(var(--ow-prose-details-x) + 16px + var(--ow-space-sm));
|
|
6887
|
+
box-sizing: border-box;
|
|
6888
|
+
margin-block: var(--ow-prose-block);
|
|
6889
|
+
border: 1px solid var(--ow-border);
|
|
6890
|
+
border-radius: var(--ow-radius-container);
|
|
6891
|
+
background: var(--ow-surface);
|
|
6892
|
+
padding-inline: var(--ow-prose-details-indent) var(--ow-prose-details-x);
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6895
|
+
.ow-prose :where(details[open]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6896
|
+
padding-bottom: var(--ow-prose-details-end);
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6899
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6900
|
+
display: block;
|
|
6901
|
+
margin-inline: calc(-1 * var(--ow-prose-details-indent)) calc(-1 * var(--ow-prose-details-x));
|
|
6902
|
+
padding-block: var(--ow-prose-details-y);
|
|
6903
|
+
padding-inline: var(--ow-prose-details-indent) var(--ow-prose-details-x);
|
|
6904
|
+
color: var(--ow-text);
|
|
6905
|
+
font-weight: var(--ow-weight-emphasis);
|
|
6906
|
+
list-style: none;
|
|
6907
|
+
cursor: pointer;
|
|
6908
|
+
}
|
|
6909
|
+
|
|
6910
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::-webkit-details-marker {
|
|
6911
|
+
display: none;
|
|
6912
|
+
}
|
|
6913
|
+
|
|
6914
|
+
/* The chevron hangs in the indent on the first line, so a summary that wraps keeps its text aligned. */
|
|
6915
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::before {
|
|
6916
|
+
content: "";
|
|
6917
|
+
display: inline-block;
|
|
6918
|
+
width: 16px;
|
|
6919
|
+
height: 16px;
|
|
6920
|
+
margin-inline: calc(-16px - var(--ow-space-sm)) var(--ow-space-sm);
|
|
6921
|
+
--ow-prose-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' \
|
|
6922
|
+
stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
|
|
6923
|
+
background: var(--ow-text-muted);
|
|
6924
|
+
vertical-align: -0.2em;
|
|
6925
|
+
-webkit-mask: var(--ow-prose-chevron) center / 16px no-repeat;
|
|
6926
|
+
mask: var(--ow-prose-chevron) center / 16px no-repeat;
|
|
6927
|
+
transition: transform var(--ow-duration-slow) var(--ow-ease-emphasized);
|
|
6928
|
+
}
|
|
6929
|
+
|
|
6930
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):hover::before {
|
|
6931
|
+
background: var(--ow-text);
|
|
6932
|
+
}
|
|
6933
|
+
|
|
6934
|
+
.ow-prose :where(summary:dir(rtl)):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::before {
|
|
6935
|
+
transform: scaleX(-1);
|
|
6936
|
+
}
|
|
6937
|
+
|
|
6938
|
+
.ow-prose :where(details[open] > summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::before {
|
|
6939
|
+
transform: rotate(90deg);
|
|
6940
|
+
}
|
|
6941
|
+
|
|
6942
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *):focus-visible {
|
|
6943
|
+
border-radius: var(--ow-radius-form);
|
|
6944
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
6945
|
+
outline-offset: -4px;
|
|
6946
|
+
}
|
|
6947
|
+
|
|
6948
|
+
/* While an answer streams in (aria-busy on it or around it), lines break as they fill rather than evening out, so words
|
|
6949
|
+
already shown don't hop to another line as more arrive. */
|
|
6950
|
+
.ow-prose:is([aria-busy="true"], [aria-busy="true"] *)
|
|
6951
|
+
:where(p, h1, h2, h3, h4, h5, h6, figcaption):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6952
|
+
text-wrap: wrap;
|
|
6953
|
+
}
|
|
6954
|
+
|
|
6955
|
+
/* Openware components placed straight in the text get the block spacing; Text gets a paragraph's. */
|
|
6956
|
+
.ow-prose > :where([class^="ow-"], [class*=" ow-"]) {
|
|
6957
|
+
margin-block: var(--ow-prose-block);
|
|
6958
|
+
}
|
|
6959
|
+
|
|
6960
|
+
.ow-prose > :where(.ow-text) {
|
|
6961
|
+
margin-block: var(--ow-prose-flow);
|
|
6962
|
+
}
|
|
6963
|
+
|
|
6964
|
+
/* Nothing adds space at the edges, so the text sits flush in a message bubble or a card; the same goes inside quotes,
|
|
6965
|
+
list items, cells, figures and details. */
|
|
6966
|
+
.ow-prose > :where([class^="ow-"], [class*=" ow-"]):first-child,
|
|
6967
|
+
.ow-prose > :first-child:not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *),
|
|
6968
|
+
.ow-prose :where(blockquote, li, th, td, figure) > :first-child:not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *),
|
|
6969
|
+
.ow-prose :where(details > summary) + *:not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6970
|
+
margin-top: 0;
|
|
6971
|
+
}
|
|
6972
|
+
|
|
6973
|
+
.ow-prose > :where([class^="ow-"], [class*=" ow-"]):last-child,
|
|
6974
|
+
.ow-prose > :last-child:not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *),
|
|
6975
|
+
.ow-prose
|
|
6976
|
+
:where(blockquote, li, th, td, figure, details)
|
|
6977
|
+
> :last-child:not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6978
|
+
margin-bottom: 0;
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6981
|
+
/* The heading size on phones, as Text sets it. */
|
|
6982
|
+
@media (max-width: 760px) {
|
|
6983
|
+
.ow-prose--md :where(h2):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6984
|
+
font-size: 21px;
|
|
6985
|
+
}
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6988
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6989
|
+
.ow-prose :where(a, input):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *),
|
|
6990
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::before {
|
|
6991
|
+
transition: none;
|
|
6992
|
+
}
|
|
6993
|
+
}
|
|
6994
|
+
|
|
6995
|
+
/* High contrast: the system draws the checkboxes, and the chevron takes the text colour. */
|
|
6996
|
+
@media (forced-colors: active) {
|
|
6997
|
+
.ow-prose :where(input[type="checkbox"]):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *) {
|
|
6998
|
+
appearance: auto;
|
|
6999
|
+
}
|
|
7000
|
+
.ow-prose :where(summary):not([class^="ow-"], [class*=" ow-"], .ow-prose [class^="ow-"] *, .ow-prose [class*=" ow-"] *)::before {
|
|
7001
|
+
background: CanvasText;
|
|
7002
|
+
forced-color-adjust: none;
|
|
7003
|
+
}
|
|
7004
|
+
}
|
|
7005
|
+
|
|
7006
|
+
/* components/TextShimmer/TextShimmer.css */
|
|
7007
|
+
/* TextShimmer: muted text with a band of full-strength text sweeping across it. */
|
|
7008
|
+
.ow-shimmer {
|
|
7009
|
+
color: var(--ow-text-muted);
|
|
7010
|
+
}
|
|
7011
|
+
|
|
7012
|
+
.ow-shimmer--active {
|
|
7013
|
+
/* The band is the text colour; either side is the muted colour, so the words stay readable throughout. */
|
|
7014
|
+
background-image: linear-gradient(
|
|
7015
|
+
90deg,
|
|
7016
|
+
var(--ow-text-muted) 0%,
|
|
7017
|
+
var(--ow-text-muted) 40%,
|
|
7018
|
+
var(--ow-text) 50%,
|
|
7019
|
+
var(--ow-text-muted) 60%,
|
|
7020
|
+
var(--ow-text-muted) 100%
|
|
7021
|
+
);
|
|
7022
|
+
background-size: 250% 100%;
|
|
7023
|
+
background-position: 100% 0;
|
|
7024
|
+
background-clip: text;
|
|
7025
|
+
-webkit-background-clip: text;
|
|
7026
|
+
color: transparent;
|
|
7027
|
+
animation: ow-shimmer var(--ow-shimmer-duration, 2s) linear infinite;
|
|
7028
|
+
}
|
|
7029
|
+
|
|
7030
|
+
@keyframes ow-shimmer {
|
|
7031
|
+
from {
|
|
7032
|
+
background-position: 100% 0;
|
|
7033
|
+
}
|
|
7034
|
+
to {
|
|
7035
|
+
background-position: 0 0;
|
|
7036
|
+
}
|
|
7037
|
+
}
|
|
7038
|
+
|
|
7039
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7040
|
+
.ow-shimmer--active {
|
|
7041
|
+
background: none;
|
|
7042
|
+
color: var(--ow-text-muted);
|
|
7043
|
+
animation: none;
|
|
7044
|
+
}
|
|
7045
|
+
}
|
|
7046
|
+
|
|
7047
|
+
/* Windows high-contrast and forced colours: plain text. */
|
|
7048
|
+
@media (forced-colors: active) {
|
|
7049
|
+
.ow-shimmer--active {
|
|
7050
|
+
background: none;
|
|
7051
|
+
color: CanvasText;
|
|
7052
|
+
animation: none;
|
|
7053
|
+
}
|
|
7054
|
+
}
|
|
7055
|
+
|
|
7056
|
+
/* components/PromptInput/PromptInput.css */
|
|
7057
|
+
/* PromptInput: a surface card holding the attachments, the text and a toolbar; the field's border and halo show focus. */
|
|
7058
|
+
.ow-prompt-input {
|
|
7059
|
+
--ow-prompt-line: 24px;
|
|
7060
|
+
--ow-prompt-pad: 0px;
|
|
7061
|
+
display: grid;
|
|
7062
|
+
width: 100%;
|
|
7063
|
+
min-width: 0;
|
|
7064
|
+
gap: var(--ow-space-sm);
|
|
7065
|
+
color: var(--ow-text);
|
|
7066
|
+
font-family: var(--ow-font-sans);
|
|
7067
|
+
font-size: 14px;
|
|
7068
|
+
}
|
|
7069
|
+
|
|
7070
|
+
.ow-prompt-input--sm {
|
|
7071
|
+
--ow-prompt-line: 20px;
|
|
7072
|
+
gap: var(--ow-space-xs);
|
|
7073
|
+
}
|
|
7074
|
+
|
|
7075
|
+
.ow-prompt-input__box {
|
|
7076
|
+
position: relative;
|
|
7077
|
+
display: grid;
|
|
7078
|
+
min-width: 0;
|
|
7079
|
+
min-inline-size: 0;
|
|
7080
|
+
gap: var(--ow-space-md);
|
|
7081
|
+
margin: 0;
|
|
7082
|
+
border: 1px solid var(--ow-border);
|
|
7083
|
+
border-radius: var(--ow-radius-container);
|
|
7084
|
+
background: var(--ow-surface);
|
|
7085
|
+
padding: var(--ow-space-lg) var(--ow-space-md) var(--ow-space-md);
|
|
7086
|
+
box-shadow: var(--ow-shadow-control);
|
|
7087
|
+
cursor: text;
|
|
7088
|
+
transition-property: border-color, box-shadow, opacity;
|
|
7089
|
+
transition-duration: var(--ow-duration-base);
|
|
7090
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
.ow-prompt-input--sm .ow-prompt-input__box {
|
|
7094
|
+
gap: var(--ow-space-sm);
|
|
7095
|
+
padding: var(--ow-space-sm) var(--ow-space-xs) var(--ow-space-xs);
|
|
7096
|
+
}
|
|
7097
|
+
|
|
7098
|
+
.ow-prompt-input__box:hover {
|
|
7099
|
+
border-color: var(--ow-border-strong);
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
.ow-prompt-input__box:focus-within {
|
|
7103
|
+
border-color: var(--ow-focus-border);
|
|
7104
|
+
box-shadow: var(--ow-shadow-focus);
|
|
7105
|
+
}
|
|
7106
|
+
|
|
7107
|
+
.ow-prompt-input--invalid .ow-prompt-input__box {
|
|
7108
|
+
border-color: var(--ow-danger-line);
|
|
7109
|
+
}
|
|
7110
|
+
|
|
7111
|
+
.ow-prompt-input--invalid .ow-prompt-input__box:focus-within {
|
|
7112
|
+
border-color: var(--ow-danger-solid);
|
|
7113
|
+
box-shadow: var(--ow-shadow-focus-danger);
|
|
7114
|
+
}
|
|
7115
|
+
|
|
7116
|
+
.ow-prompt-input--disabled .ow-prompt-input__box {
|
|
7117
|
+
border-color: var(--ow-border);
|
|
7118
|
+
box-shadow: none;
|
|
7119
|
+
cursor: not-allowed;
|
|
7120
|
+
opacity: 0.62;
|
|
7121
|
+
}
|
|
7122
|
+
|
|
7123
|
+
/* Inline: with nothing in the toolbar but the send button, the button sits at the end of the text. */
|
|
7124
|
+
.ow-prompt-input--inline .ow-prompt-input__box {
|
|
7125
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
7126
|
+
align-items: end;
|
|
7127
|
+
column-gap: var(--ow-space-sm);
|
|
7128
|
+
padding: var(--ow-space-sm) var(--ow-space-sm) var(--ow-space-sm) var(--ow-space-md);
|
|
7129
|
+
}
|
|
7130
|
+
|
|
7131
|
+
.ow-prompt-input--inline .ow-prompt-input__attachments {
|
|
7132
|
+
grid-column: 1 / -1;
|
|
7133
|
+
}
|
|
7134
|
+
|
|
7135
|
+
/* The count stands above the send button, so the text keeps its width. */
|
|
7136
|
+
.ow-prompt-input--inline .ow-prompt-input__end {
|
|
7137
|
+
flex-direction: column;
|
|
7138
|
+
align-items: flex-end;
|
|
7139
|
+
gap: var(--ow-space-2xs);
|
|
7140
|
+
}
|
|
7141
|
+
|
|
7142
|
+
/* The text, centred on the 32px button while it's one line. */
|
|
7143
|
+
.ow-prompt-input--inline {
|
|
7144
|
+
--ow-prompt-pad: var(--ow-space-2xs);
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7147
|
+
.ow-prompt-input--sm.ow-prompt-input--inline {
|
|
7148
|
+
--ow-prompt-pad: var(--ow-space-xs);
|
|
7149
|
+
}
|
|
7150
|
+
|
|
7151
|
+
.ow-prompt-input--sm.ow-prompt-input--inline .ow-prompt-input__box {
|
|
7152
|
+
padding: var(--ow-space-xs) var(--ow-space-xs) var(--ow-space-xs) var(--ow-space-sm);
|
|
7153
|
+
}
|
|
7154
|
+
|
|
7155
|
+
/* The text: borderless, with its own line height so the rows are exact. */
|
|
7156
|
+
.ow-prompt-input__textarea.ow-textarea {
|
|
7157
|
+
min-height: calc(var(--ow-prompt-line) * var(--ow-prompt-min-rows, 1) + 2 * var(--ow-prompt-pad));
|
|
7158
|
+
padding: var(--ow-prompt-pad) var(--ow-space-sm);
|
|
7159
|
+
color: var(--ow-text);
|
|
7160
|
+
font-size: 15px;
|
|
7161
|
+
line-height: var(--ow-prompt-line);
|
|
7162
|
+
cursor: text;
|
|
7163
|
+
}
|
|
7164
|
+
|
|
7165
|
+
.ow-prompt-input--sm .ow-prompt-input__textarea.ow-textarea {
|
|
7166
|
+
padding-inline: var(--ow-space-xs);
|
|
7167
|
+
font-size: 14px;
|
|
7168
|
+
}
|
|
7169
|
+
|
|
7170
|
+
.ow-prompt-input__textarea.ow-textarea:disabled {
|
|
7171
|
+
cursor: not-allowed;
|
|
7172
|
+
opacity: 1;
|
|
7173
|
+
}
|
|
7174
|
+
|
|
7175
|
+
/* Attachments: chips with a thumbnail or an icon, the name and size, and a remove button. */
|
|
7176
|
+
.ow-prompt-input__attachments {
|
|
7177
|
+
display: flex;
|
|
7178
|
+
min-width: 0;
|
|
7179
|
+
flex-wrap: wrap;
|
|
7180
|
+
gap: var(--ow-space-sm);
|
|
7181
|
+
margin: 0;
|
|
7182
|
+
padding: 0;
|
|
7183
|
+
list-style: none;
|
|
7184
|
+
cursor: default;
|
|
7185
|
+
}
|
|
7186
|
+
|
|
7187
|
+
.ow-prompt-input__attachment {
|
|
7188
|
+
display: flex;
|
|
7189
|
+
min-width: 0;
|
|
7190
|
+
max-width: min(100%, 240px);
|
|
7191
|
+
align-items: center;
|
|
7192
|
+
gap: var(--ow-space-sm);
|
|
7193
|
+
border: 1px solid var(--ow-border);
|
|
7194
|
+
border-radius: var(--ow-radius-lg);
|
|
7195
|
+
background: var(--ow-surface-muted);
|
|
7196
|
+
padding: var(--ow-space-2xs);
|
|
7197
|
+
}
|
|
7198
|
+
|
|
7199
|
+
.ow-prompt-input__thumb {
|
|
7200
|
+
position: relative;
|
|
7201
|
+
display: inline-flex;
|
|
7202
|
+
width: 36px;
|
|
7203
|
+
height: 36px;
|
|
7204
|
+
flex: none;
|
|
7205
|
+
align-items: center;
|
|
7206
|
+
justify-content: center;
|
|
7207
|
+
overflow: hidden;
|
|
7208
|
+
border: 1px solid var(--ow-border);
|
|
7209
|
+
border-radius: var(--ow-radius-md);
|
|
7210
|
+
background: var(--ow-surface);
|
|
7211
|
+
color: var(--ow-text-muted);
|
|
7212
|
+
}
|
|
7213
|
+
|
|
7214
|
+
.ow-prompt-input__thumb img {
|
|
7215
|
+
position: absolute;
|
|
7216
|
+
inset: 0;
|
|
7217
|
+
width: 100%;
|
|
7218
|
+
height: 100%;
|
|
7219
|
+
object-fit: cover;
|
|
7220
|
+
}
|
|
7221
|
+
|
|
7222
|
+
.ow-prompt-input__file {
|
|
7223
|
+
display: grid;
|
|
7224
|
+
min-width: 0;
|
|
7225
|
+
gap: 2px;
|
|
7226
|
+
padding-right: var(--ow-space-2xs);
|
|
7227
|
+
}
|
|
7228
|
+
|
|
7229
|
+
.ow-prompt-input__file-name {
|
|
7230
|
+
display: flex;
|
|
7231
|
+
min-width: 0;
|
|
7232
|
+
color: var(--ow-text);
|
|
7233
|
+
font-size: 13px;
|
|
7234
|
+
font-weight: var(--ow-weight-control);
|
|
7235
|
+
line-height: 16px;
|
|
7236
|
+
white-space: nowrap;
|
|
7237
|
+
}
|
|
7238
|
+
|
|
7239
|
+
.ow-prompt-input__file-base {
|
|
7240
|
+
min-width: 0;
|
|
7241
|
+
overflow: hidden;
|
|
7242
|
+
text-overflow: ellipsis;
|
|
7243
|
+
}
|
|
7244
|
+
|
|
7245
|
+
.ow-prompt-input__file-size {
|
|
7246
|
+
color: var(--ow-text-muted);
|
|
7247
|
+
font-size: 12px;
|
|
7248
|
+
line-height: 16px;
|
|
7249
|
+
font-variant-numeric: tabular-nums;
|
|
7250
|
+
white-space: nowrap;
|
|
7251
|
+
}
|
|
7252
|
+
|
|
7253
|
+
.ow-prompt-input__remove {
|
|
7254
|
+
display: inline-flex;
|
|
7255
|
+
width: 24px;
|
|
7256
|
+
height: 24px;
|
|
7257
|
+
flex: none;
|
|
7258
|
+
align-self: flex-start;
|
|
7259
|
+
align-items: center;
|
|
7260
|
+
justify-content: center;
|
|
7261
|
+
margin: 0;
|
|
7262
|
+
border: 0;
|
|
7263
|
+
border-radius: var(--ow-radius-md);
|
|
7264
|
+
background: transparent;
|
|
7265
|
+
padding: 0;
|
|
7266
|
+
color: var(--ow-text-muted);
|
|
7267
|
+
cursor: pointer;
|
|
7268
|
+
transition-property: color, background-color;
|
|
7269
|
+
transition-duration: var(--ow-duration-fast);
|
|
7270
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
7271
|
+
}
|
|
7272
|
+
|
|
7273
|
+
.ow-prompt-input__remove:hover:not(:disabled) {
|
|
7274
|
+
background: color-mix(in srgb, var(--ow-text) 8%, transparent);
|
|
7275
|
+
color: var(--ow-text);
|
|
7276
|
+
}
|
|
7277
|
+
|
|
7278
|
+
.ow-prompt-input__remove:focus-visible {
|
|
7279
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
7280
|
+
outline-offset: 0;
|
|
7281
|
+
}
|
|
7282
|
+
|
|
7283
|
+
.ow-prompt-input__remove:disabled {
|
|
7284
|
+
cursor: not-allowed;
|
|
7285
|
+
}
|
|
7286
|
+
|
|
7287
|
+
.ow-prompt-input--sm .ow-prompt-input__thumb {
|
|
7288
|
+
width: 28px;
|
|
7289
|
+
height: 28px;
|
|
7290
|
+
}
|
|
7291
|
+
|
|
7292
|
+
.ow-prompt-input--sm .ow-prompt-input__file-name {
|
|
7293
|
+
font-size: 12px;
|
|
7294
|
+
}
|
|
7295
|
+
|
|
7296
|
+
.ow-prompt-input--sm .ow-prompt-input__file-size {
|
|
7297
|
+
font-size: 11px;
|
|
7298
|
+
line-height: 14px;
|
|
7299
|
+
}
|
|
7300
|
+
|
|
7301
|
+
.ow-prompt-input--sm .ow-prompt-input__remove {
|
|
7302
|
+
width: 20px;
|
|
7303
|
+
height: 20px;
|
|
7304
|
+
}
|
|
7305
|
+
|
|
7306
|
+
/* The toolbar: the paperclip and start actions on the left; the count, end actions and send on the right. When the start
|
|
7307
|
+
actions wrap in a narrow box, send stays on the last row, under the end of the text. */
|
|
7308
|
+
.ow-prompt-input__toolbar {
|
|
7309
|
+
display: flex;
|
|
7310
|
+
min-width: 0;
|
|
7311
|
+
align-items: flex-end;
|
|
7312
|
+
gap: var(--ow-space-sm);
|
|
7313
|
+
cursor: default;
|
|
7314
|
+
}
|
|
7315
|
+
|
|
7316
|
+
.ow-prompt-input__start,
|
|
7317
|
+
.ow-prompt-input__end {
|
|
7318
|
+
display: flex;
|
|
7319
|
+
min-width: 0;
|
|
7320
|
+
align-items: center;
|
|
7321
|
+
gap: var(--ow-space-2xs);
|
|
7322
|
+
}
|
|
7323
|
+
|
|
7324
|
+
.ow-prompt-input__start {
|
|
7325
|
+
flex: 1;
|
|
7326
|
+
flex-wrap: wrap;
|
|
7327
|
+
}
|
|
7328
|
+
|
|
7329
|
+
.ow-prompt-input__end {
|
|
7330
|
+
flex: none;
|
|
7331
|
+
margin-left: auto;
|
|
7332
|
+
gap: var(--ow-space-sm);
|
|
7333
|
+
}
|
|
7334
|
+
|
|
7335
|
+
.ow-prompt-input__counter {
|
|
7336
|
+
padding: 0 var(--ow-space-2xs);
|
|
7337
|
+
color: var(--ow-text-muted);
|
|
7338
|
+
font-size: 12px;
|
|
7339
|
+
font-variant-numeric: tabular-nums;
|
|
7340
|
+
white-space: nowrap;
|
|
7341
|
+
}
|
|
7342
|
+
|
|
7343
|
+
.ow-prompt-input__counter--full {
|
|
7344
|
+
color: var(--ow-warning-text);
|
|
7345
|
+
font-weight: var(--ow-weight-emphasis);
|
|
7346
|
+
}
|
|
7347
|
+
|
|
7348
|
+
/* The send and Stop button keeps its square while the icon inside changes. */
|
|
7349
|
+
.ow-prompt-input__action.ow-button {
|
|
7350
|
+
flex: none;
|
|
7351
|
+
}
|
|
7352
|
+
|
|
7353
|
+
/* While files are dragged over it, the box turns primary and says what a drop does. */
|
|
7354
|
+
.ow-prompt-input__drop {
|
|
7355
|
+
position: absolute;
|
|
7356
|
+
z-index: 1;
|
|
7357
|
+
inset: -1px;
|
|
7358
|
+
display: flex;
|
|
7359
|
+
align-items: center;
|
|
7360
|
+
justify-content: center;
|
|
7361
|
+
gap: var(--ow-space-sm);
|
|
7362
|
+
border: 1.5px dashed var(--ow-primary-text);
|
|
7363
|
+
border-radius: inherit;
|
|
7364
|
+
/* The tint over the surface, since primary-subtle is see-through in dark. */
|
|
7365
|
+
background-color: var(--ow-surface);
|
|
7366
|
+
background-image: linear-gradient(var(--ow-primary-subtle), var(--ow-primary-subtle));
|
|
7367
|
+
color: var(--ow-primary-text);
|
|
7368
|
+
font-size: 14px;
|
|
7369
|
+
font-weight: var(--ow-weight-emphasis);
|
|
7370
|
+
pointer-events: none;
|
|
7371
|
+
animation: ow-prompt-input-drop-in var(--ow-duration-fast) var(--ow-ease-standard);
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7374
|
+
@keyframes ow-prompt-input-drop-in {
|
|
7375
|
+
from {
|
|
7376
|
+
opacity: 0;
|
|
7377
|
+
}
|
|
7378
|
+
}
|
|
7379
|
+
|
|
7380
|
+
/* The line under the box: a hint, or a message about a file that couldn't be attached. */
|
|
7381
|
+
.ow-prompt-input__hint {
|
|
7382
|
+
padding: 0 var(--ow-space-md);
|
|
7383
|
+
color: var(--ow-text-muted);
|
|
7384
|
+
font-size: 12px;
|
|
7385
|
+
line-height: 18px;
|
|
7386
|
+
text-wrap: pretty;
|
|
7387
|
+
}
|
|
7388
|
+
|
|
7389
|
+
.ow-prompt-input--sm .ow-prompt-input__hint {
|
|
7390
|
+
padding: 0 var(--ow-space-sm);
|
|
7391
|
+
}
|
|
7392
|
+
|
|
7393
|
+
.ow-prompt-input__hint--notice {
|
|
7394
|
+
color: var(--ow-danger-text);
|
|
7395
|
+
}
|
|
7396
|
+
|
|
7397
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7398
|
+
.ow-prompt-input__box,
|
|
7399
|
+
.ow-prompt-input__remove {
|
|
7400
|
+
transition: none;
|
|
7401
|
+
}
|
|
7402
|
+
|
|
7403
|
+
.ow-prompt-input__drop {
|
|
7404
|
+
animation: none;
|
|
7405
|
+
}
|
|
7406
|
+
}
|
|
7407
|
+
|
|
7408
|
+
/* components/PromptInput/PromptSuggestion.css */
|
|
7409
|
+
/* PromptSuggestion: a secondary pill at regular weight, or a card with a muted second line. */
|
|
7410
|
+
.ow-prompt-suggestion--pill.ow-button {
|
|
7411
|
+
max-width: 100%;
|
|
7412
|
+
gap: var(--ow-space-sm);
|
|
7413
|
+
font-weight: var(--ow-weight-regular);
|
|
7414
|
+
}
|
|
7415
|
+
|
|
7416
|
+
.ow-prompt-suggestion__label {
|
|
7417
|
+
min-width: 0;
|
|
7418
|
+
overflow: hidden;
|
|
7419
|
+
text-overflow: ellipsis;
|
|
7420
|
+
}
|
|
7421
|
+
|
|
7422
|
+
.ow-prompt-suggestion__icon {
|
|
7423
|
+
display: inline-flex;
|
|
7424
|
+
flex: none;
|
|
7425
|
+
color: var(--ow-icon);
|
|
7426
|
+
transition: color var(--ow-duration-base) var(--ow-ease-standard);
|
|
7427
|
+
}
|
|
7428
|
+
|
|
7429
|
+
.ow-prompt-suggestion:hover:not(:disabled) .ow-prompt-suggestion__icon {
|
|
7430
|
+
color: var(--ow-primary-text);
|
|
7431
|
+
}
|
|
7432
|
+
|
|
7433
|
+
.ow-prompt-suggestion:disabled .ow-prompt-suggestion__icon {
|
|
7434
|
+
color: var(--ow-text-disabled);
|
|
7435
|
+
}
|
|
7436
|
+
|
|
7437
|
+
/* Card: the secondary button's material, left-aligned, with the icon beside the title. */
|
|
7438
|
+
.ow-prompt-suggestion--card {
|
|
7439
|
+
display: flex;
|
|
7440
|
+
width: 100%;
|
|
7441
|
+
min-width: 0;
|
|
7442
|
+
align-items: flex-start;
|
|
7443
|
+
gap: var(--ow-space-md);
|
|
7444
|
+
margin: 0;
|
|
7445
|
+
border: 1px solid var(--ow-border-strong);
|
|
7446
|
+
border-radius: var(--ow-radius-container);
|
|
7447
|
+
background-color: var(--ow-control);
|
|
7448
|
+
background-image: linear-gradient(to bottom, var(--ow-control), var(--ow-control-shade));
|
|
7449
|
+
padding: var(--ow-space-lg) var(--ow-space-xl);
|
|
7450
|
+
color: var(--ow-text);
|
|
7451
|
+
font: inherit;
|
|
7452
|
+
text-align: left;
|
|
7453
|
+
cursor: pointer;
|
|
7454
|
+
box-shadow: var(--ow-shadow-button-secondary);
|
|
7455
|
+
transition-property: transform, border-color, background-color, box-shadow;
|
|
7456
|
+
transition-duration: var(--ow-duration-base);
|
|
7457
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7460
|
+
.ow-prompt-suggestion--card:hover:not(:disabled) {
|
|
7461
|
+
border-color: var(--ow-border-hover);
|
|
7462
|
+
background-image: linear-gradient(to bottom, var(--ow-control), var(--ow-control-shade-hover));
|
|
7463
|
+
}
|
|
7464
|
+
|
|
7465
|
+
.ow-prompt-suggestion--card:active:not(:disabled) {
|
|
7466
|
+
box-shadow: var(--ow-shadow-pressed-secondary);
|
|
7467
|
+
transform: translateY(1px);
|
|
7468
|
+
}
|
|
7469
|
+
|
|
7470
|
+
.ow-prompt-suggestion--card:focus-visible {
|
|
7471
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
7472
|
+
outline-offset: 2px;
|
|
7473
|
+
}
|
|
7474
|
+
|
|
7475
|
+
.ow-prompt-suggestion--card:disabled {
|
|
7476
|
+
border-style: dashed;
|
|
7477
|
+
background: transparent;
|
|
7478
|
+
box-shadow: none;
|
|
7479
|
+
color: var(--ow-text-disabled);
|
|
7480
|
+
cursor: not-allowed;
|
|
7481
|
+
}
|
|
7482
|
+
|
|
7483
|
+
/* The icon sits on the title's first line (20px). */
|
|
7484
|
+
.ow-prompt-suggestion--card .ow-prompt-suggestion__icon {
|
|
7485
|
+
height: 20px;
|
|
7486
|
+
align-items: center;
|
|
7487
|
+
}
|
|
7488
|
+
|
|
7489
|
+
.ow-prompt-suggestion__text {
|
|
7490
|
+
display: grid;
|
|
7491
|
+
min-width: 0;
|
|
7492
|
+
gap: 2px;
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7495
|
+
.ow-prompt-suggestion__title {
|
|
7496
|
+
font-size: 14px;
|
|
7497
|
+
font-weight: var(--ow-weight-emphasis);
|
|
7498
|
+
line-height: 20px;
|
|
7499
|
+
text-wrap: pretty;
|
|
7500
|
+
}
|
|
7501
|
+
|
|
7502
|
+
.ow-prompt-suggestion__description {
|
|
7503
|
+
color: var(--ow-text-muted);
|
|
7504
|
+
font-size: 13px;
|
|
7505
|
+
line-height: 18px;
|
|
7506
|
+
text-wrap: pretty;
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7509
|
+
.ow-prompt-suggestion--card:disabled .ow-prompt-suggestion__description {
|
|
7510
|
+
color: var(--ow-text-disabled);
|
|
7511
|
+
}
|
|
7512
|
+
|
|
7513
|
+
/* PromptSuggestions: pills that wrap, or cards in columns of at least 200px, up to --ow-suggestion-columns. */
|
|
7514
|
+
.ow-prompt-suggestions--wrap {
|
|
7515
|
+
display: flex;
|
|
7516
|
+
min-width: 0;
|
|
7517
|
+
flex-wrap: wrap;
|
|
7518
|
+
gap: var(--ow-space-sm);
|
|
7519
|
+
}
|
|
7520
|
+
|
|
7521
|
+
.ow-prompt-suggestions--center {
|
|
7522
|
+
justify-content: center;
|
|
7523
|
+
}
|
|
7524
|
+
|
|
7525
|
+
.ow-prompt-suggestions--grid {
|
|
7526
|
+
display: grid;
|
|
7527
|
+
min-width: 0;
|
|
7528
|
+
grid-template-columns: repeat(
|
|
7529
|
+
auto-fill,
|
|
7530
|
+
minmax(min(100%, max(200px, calc((100% - (var(--ow-suggestion-columns, 2) - 1) * var(--ow-space-md)) / var(--ow-suggestion-columns, 2)))), 1fr)
|
|
7531
|
+
);
|
|
7532
|
+
gap: var(--ow-space-md);
|
|
7533
|
+
}
|
|
7534
|
+
|
|
7535
|
+
@media (prefers-reduced-motion: reduce) {
|
|
7536
|
+
.ow-prompt-suggestion--card,
|
|
7537
|
+
.ow-prompt-suggestion__icon {
|
|
7538
|
+
transition: none;
|
|
7539
|
+
}
|
|
7540
|
+
|
|
7541
|
+
.ow-prompt-suggestion--card:active:not(:disabled) {
|
|
7542
|
+
transform: none;
|
|
7543
|
+
}
|
|
7544
|
+
}
|
|
7545
|
+
|
|
7546
|
+
/* components/Chat/Chat.css */
|
|
7547
|
+
/* Chat: the conversation's scrolling column, its messages and the loader. */
|
|
7548
|
+
|
|
7549
|
+
/* ChatConversation: fills its parent and scrolls; the messages sit in a reading column in the middle, with the footer
|
|
7550
|
+
(a prompt box) docked under them in the same column. */
|
|
7551
|
+
.ow-chat-conversation {
|
|
7552
|
+
--ow-chat-gutter: var(--ow-space-4xl);
|
|
7553
|
+
--ow-chat-column: 720px;
|
|
7554
|
+
display: flex;
|
|
7555
|
+
height: 100%;
|
|
7556
|
+
min-width: 0;
|
|
7557
|
+
min-height: 0;
|
|
7558
|
+
flex: 1 1 auto;
|
|
7559
|
+
flex-direction: column;
|
|
7560
|
+
}
|
|
7561
|
+
|
|
7562
|
+
/* The scrolling part, which the empty state and Jump to latest sit over. */
|
|
7563
|
+
.ow-chat-conversation__viewport {
|
|
7564
|
+
position: relative;
|
|
7565
|
+
display: flex;
|
|
7566
|
+
min-height: 0;
|
|
7567
|
+
flex: 1;
|
|
7568
|
+
flex-direction: column;
|
|
7569
|
+
}
|
|
7570
|
+
|
|
7571
|
+
.ow-chat-conversation__scroll {
|
|
7572
|
+
min-height: 0;
|
|
7573
|
+
flex: 1;
|
|
7574
|
+
overflow-y: auto;
|
|
7575
|
+
overscroll-behavior: contain;
|
|
7576
|
+
outline: 0;
|
|
7577
|
+
}
|
|
7578
|
+
|
|
7579
|
+
.ow-chat-conversation__scroll:focus-visible {
|
|
7580
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
7581
|
+
outline-offset: -2px;
|
|
7582
|
+
}
|
|
7583
|
+
|
|
7584
|
+
.ow-chat-conversation__content {
|
|
7585
|
+
display: flex;
|
|
7586
|
+
max-width: calc(var(--ow-chat-column) + 2 * var(--ow-chat-gutter));
|
|
7587
|
+
flex-direction: column;
|
|
7588
|
+
gap: var(--ow-space-6xl);
|
|
7589
|
+
margin: 0 auto;
|
|
7590
|
+
padding: var(--ow-space-6xl) var(--ow-chat-gutter) var(--ow-space-7xl);
|
|
7591
|
+
}
|
|
7592
|
+
|
|
7593
|
+
/* What shows while there are no messages, over the (empty) log so the log is there for the first one. */
|
|
7594
|
+
.ow-chat-conversation__empty {
|
|
7595
|
+
position: absolute;
|
|
7596
|
+
inset: 0;
|
|
7597
|
+
display: grid;
|
|
7598
|
+
overflow-y: auto;
|
|
7599
|
+
place-items: center;
|
|
7600
|
+
padding: var(--ow-space-6xl) var(--ow-chat-gutter);
|
|
7601
|
+
}
|
|
7602
|
+
|
|
7603
|
+
.ow-chat-conversation__empty-inner {
|
|
7604
|
+
width: 100%;
|
|
7605
|
+
max-width: var(--ow-chat-column);
|
|
7606
|
+
}
|
|
7607
|
+
|
|
7608
|
+
/* The footer: lined up with the messages, with the gutter below it. */
|
|
7609
|
+
.ow-chat-conversation__footer {
|
|
7610
|
+
flex-shrink: 0;
|
|
7611
|
+
padding: 0 var(--ow-chat-gutter) var(--ow-chat-gutter);
|
|
7612
|
+
}
|
|
7613
|
+
|
|
7614
|
+
.ow-chat-conversation__footer-inner {
|
|
7615
|
+
max-width: var(--ow-chat-column);
|
|
7616
|
+
margin: 0 auto;
|
|
7617
|
+
}
|
|
7618
|
+
|
|
7619
|
+
.ow-chat-conversation--full {
|
|
7620
|
+
--ow-chat-column: none;
|
|
7621
|
+
}
|
|
7622
|
+
|
|
7623
|
+
.ow-chat-conversation--full .ow-chat-conversation__content {
|
|
7624
|
+
max-width: none;
|
|
7625
|
+
}
|
|
7626
|
+
|
|
7627
|
+
/* "Jump to latest": floats at the bottom in the middle once the reader scrolls up. */
|
|
7628
|
+
.ow-chat-conversation__jump {
|
|
7629
|
+
position: absolute;
|
|
7630
|
+
right: 0;
|
|
7631
|
+
bottom: var(--ow-space-2xl);
|
|
7632
|
+
left: 0;
|
|
7633
|
+
z-index: 2;
|
|
7634
|
+
display: flex;
|
|
7635
|
+
justify-content: center;
|
|
7636
|
+
pointer-events: none;
|
|
7637
|
+
animation: ow-chat-rise var(--ow-duration-base) var(--ow-ease-emphasized);
|
|
7638
|
+
}
|
|
7639
|
+
|
|
7640
|
+
.ow-chat-conversation__jump[data-state="closed"] {
|
|
7641
|
+
animation: ow-chat-sink var(--ow-duration-exit) var(--ow-ease-exit) forwards;
|
|
7642
|
+
}
|
|
7643
|
+
|
|
7644
|
+
.ow-chat-conversation__jump > .ow-button {
|
|
7645
|
+
pointer-events: auto;
|
|
7646
|
+
box-shadow: var(--ow-shadow-button-secondary), var(--ow-shadow-menu);
|
|
7647
|
+
}
|
|
7648
|
+
|
|
7649
|
+
.ow-chat-conversation__count {
|
|
7650
|
+
display: inline-flex;
|
|
7651
|
+
height: 20px;
|
|
7652
|
+
align-items: center;
|
|
7653
|
+
margin-right: calc(-1 * var(--ow-space-xs));
|
|
7654
|
+
border: 1px solid var(--ow-primary-border);
|
|
7655
|
+
border-radius: var(--ow-radius-pill);
|
|
7656
|
+
background: var(--ow-primary-subtle);
|
|
7657
|
+
padding: 0 var(--ow-space-xs);
|
|
7658
|
+
color: var(--ow-primary-text);
|
|
7659
|
+
font-size: 12px;
|
|
7660
|
+
font-weight: var(--ow-weight-strong);
|
|
7661
|
+
font-variant-numeric: tabular-nums;
|
|
7662
|
+
}
|
|
7663
|
+
|
|
7664
|
+
/* ChatMessage. */
|
|
7665
|
+
.ow-chat-message {
|
|
7666
|
+
min-width: 0;
|
|
7667
|
+
color: var(--ow-text);
|
|
7668
|
+
font-family: var(--ow-font-sans);
|
|
7669
|
+
font-size: 14px;
|
|
7670
|
+
line-height: 1.55;
|
|
7671
|
+
}
|
|
7672
|
+
|
|
7673
|
+
.ow-chat-message--user,
|
|
7674
|
+
.ow-chat-message--assistant {
|
|
7675
|
+
display: flex;
|
|
7676
|
+
align-items: flex-start;
|
|
7677
|
+
gap: var(--ow-space-lg);
|
|
7678
|
+
}
|
|
7679
|
+
|
|
7680
|
+
/* The person's message sits on the right: its avatar, when there is one, on the far side. */
|
|
7681
|
+
.ow-chat-message--user {
|
|
7682
|
+
flex-direction: row-reverse;
|
|
7683
|
+
}
|
|
7684
|
+
|
|
7685
|
+
.ow-chat-message__avatar {
|
|
7686
|
+
display: flex;
|
|
7687
|
+
flex-shrink: 0;
|
|
7688
|
+
}
|
|
7689
|
+
|
|
7690
|
+
/* ChatAgentAvatar: the bot on a tinted circle, at Avatar's sizes. */
|
|
7691
|
+
.ow-chat-avatar {
|
|
7692
|
+
display: inline-flex;
|
|
7693
|
+
width: 28px;
|
|
7694
|
+
height: 28px;
|
|
7695
|
+
flex-shrink: 0;
|
|
7696
|
+
align-items: center;
|
|
7697
|
+
justify-content: center;
|
|
7698
|
+
border: 1px solid var(--ow-primary-border);
|
|
7699
|
+
border-radius: 50%;
|
|
7700
|
+
background: var(--ow-primary-subtle);
|
|
7701
|
+
color: var(--ow-primary-text);
|
|
7702
|
+
}
|
|
7703
|
+
|
|
7704
|
+
.ow-chat-avatar--sm {
|
|
7705
|
+
width: 24px;
|
|
7706
|
+
height: 24px;
|
|
7707
|
+
}
|
|
7708
|
+
|
|
7709
|
+
.ow-chat-avatar--lg {
|
|
7710
|
+
width: 36px;
|
|
7711
|
+
height: 36px;
|
|
7712
|
+
}
|
|
7713
|
+
|
|
7714
|
+
.ow-chat-message__main {
|
|
7715
|
+
display: grid;
|
|
7716
|
+
min-width: 0;
|
|
7717
|
+
flex: 1;
|
|
7718
|
+
align-content: start;
|
|
7719
|
+
gap: var(--ow-space-xs);
|
|
7720
|
+
}
|
|
7721
|
+
|
|
7722
|
+
/* Beside a 28px avatar, the header (or the first line) sits level with its middle. */
|
|
7723
|
+
.ow-chat-message__avatar + .ow-chat-message__main {
|
|
7724
|
+
padding-top: var(--ow-space-2xs);
|
|
7725
|
+
}
|
|
7726
|
+
|
|
7727
|
+
.ow-chat-message--user .ow-chat-message__main {
|
|
7728
|
+
max-width: 80%;
|
|
7729
|
+
flex: 0 1 auto;
|
|
7730
|
+
justify-items: end;
|
|
7731
|
+
}
|
|
7732
|
+
|
|
7733
|
+
.ow-chat-message__header {
|
|
7734
|
+
display: flex;
|
|
7735
|
+
min-width: 0;
|
|
7736
|
+
align-items: baseline;
|
|
7737
|
+
gap: var(--ow-space-sm);
|
|
7738
|
+
line-height: 1.4;
|
|
7739
|
+
}
|
|
7740
|
+
|
|
7741
|
+
.ow-chat-message__name {
|
|
7742
|
+
min-width: 0;
|
|
7743
|
+
overflow: hidden;
|
|
7744
|
+
font-weight: var(--ow-weight-emphasis);
|
|
7745
|
+
text-overflow: ellipsis;
|
|
7746
|
+
white-space: nowrap;
|
|
7747
|
+
}
|
|
7748
|
+
|
|
7749
|
+
.ow-chat-message__time {
|
|
7750
|
+
flex-shrink: 0;
|
|
7751
|
+
color: var(--ow-text-muted);
|
|
7752
|
+
font-size: 12px;
|
|
7753
|
+
font-variant-numeric: tabular-nums;
|
|
7754
|
+
}
|
|
7755
|
+
|
|
7756
|
+
/* The body holds the content and, while it streams, the caret placed after its last character. */
|
|
7757
|
+
.ow-chat-message__body {
|
|
7758
|
+
position: relative;
|
|
7759
|
+
min-width: 0;
|
|
7760
|
+
}
|
|
7761
|
+
|
|
7762
|
+
.ow-chat-message--streaming .ow-chat-message__body {
|
|
7763
|
+
min-height: 1.55em;
|
|
7764
|
+
}
|
|
7765
|
+
|
|
7766
|
+
.ow-chat-message__content {
|
|
7767
|
+
min-width: 0;
|
|
7768
|
+
overflow-wrap: break-word;
|
|
7769
|
+
}
|
|
7770
|
+
|
|
7771
|
+
/* Blocks in a message (paragraphs, code, a card) sit 12px apart; text, Code and Kbd flow inline as written. */
|
|
7772
|
+
.ow-chat-message__content > :is(p, div, pre, ul, ol, dl, blockquote, table, figure, details, section, h1, h2, h3, h4, h5, h6, hr, a):not(:first-child) {
|
|
7773
|
+
margin-top: var(--ow-space-lg);
|
|
7774
|
+
}
|
|
7775
|
+
|
|
7776
|
+
/* The person's own words in a bubble, kept as typed: line breaks stay, and a long link breaks rather than overflowing. */
|
|
7777
|
+
.ow-chat-message--user .ow-chat-message__content {
|
|
7778
|
+
border: 1px solid var(--ow-border);
|
|
7779
|
+
border-radius: var(--ow-radius-panel) var(--ow-radius-sm) var(--ow-radius-panel) var(--ow-radius-panel);
|
|
7780
|
+
background: var(--ow-surface-muted);
|
|
7781
|
+
padding: var(--ow-space-md) var(--ow-space-xl);
|
|
7782
|
+
white-space: pre-wrap;
|
|
7783
|
+
overflow-wrap: anywhere;
|
|
7784
|
+
}
|
|
7785
|
+
|
|
7786
|
+
.ow-chat-message__caret {
|
|
7787
|
+
position: absolute;
|
|
7788
|
+
top: 0;
|
|
7789
|
+
left: 0;
|
|
7790
|
+
width: 2px;
|
|
7791
|
+
height: 1.2em;
|
|
7792
|
+
border-radius: 1px;
|
|
7793
|
+
background: currentColor;
|
|
7794
|
+
pointer-events: none;
|
|
7795
|
+
transform: translateY(0.18em);
|
|
7796
|
+
animation: ow-chat-caret 1s var(--ow-ease-standard) infinite;
|
|
7797
|
+
}
|
|
7798
|
+
|
|
7799
|
+
/* A system line: muted, in the middle, between hairlines. */
|
|
7800
|
+
.ow-chat-message--system {
|
|
7801
|
+
display: flex;
|
|
7802
|
+
align-items: center;
|
|
7803
|
+
gap: var(--ow-space-lg);
|
|
7804
|
+
color: var(--ow-text-muted);
|
|
7805
|
+
font-size: 12px;
|
|
7806
|
+
line-height: 1.35;
|
|
7807
|
+
text-align: center;
|
|
7808
|
+
}
|
|
7809
|
+
|
|
7810
|
+
.ow-chat-message--system::before,
|
|
7811
|
+
.ow-chat-message--system::after {
|
|
7812
|
+
content: "";
|
|
7813
|
+
height: 1px;
|
|
7814
|
+
min-width: var(--ow-space-2xl);
|
|
7815
|
+
flex: 1;
|
|
7816
|
+
background: var(--ow-border);
|
|
7817
|
+
}
|
|
7818
|
+
|
|
7819
|
+
.ow-chat-message__system-text {
|
|
7820
|
+
max-width: 80%;
|
|
7821
|
+
text-wrap: balance;
|
|
7822
|
+
}
|
|
7823
|
+
|
|
7824
|
+
/* What went wrong, with Retry beside it. */
|
|
7825
|
+
.ow-chat-message__error {
|
|
7826
|
+
display: flex;
|
|
7827
|
+
max-width: 100%;
|
|
7828
|
+
align-items: center;
|
|
7829
|
+
justify-self: start;
|
|
7830
|
+
gap: var(--ow-space-sm);
|
|
7831
|
+
border: 1px solid var(--ow-danger-border);
|
|
7832
|
+
border-radius: var(--ow-radius-form);
|
|
7833
|
+
background: var(--ow-danger-surface);
|
|
7834
|
+
padding: var(--ow-space-xs) var(--ow-space-lg);
|
|
7835
|
+
color: var(--ow-danger-text);
|
|
7836
|
+
line-height: 1.4;
|
|
7837
|
+
}
|
|
7838
|
+
|
|
7839
|
+
.ow-chat-message__error--retry {
|
|
7840
|
+
padding: var(--ow-space-2xs) var(--ow-space-2xs) var(--ow-space-2xs) var(--ow-space-lg);
|
|
7841
|
+
}
|
|
7842
|
+
|
|
7843
|
+
.ow-chat-message--user .ow-chat-message__error {
|
|
7844
|
+
justify-self: end;
|
|
7845
|
+
}
|
|
7846
|
+
|
|
7847
|
+
.ow-chat-message__error-icon {
|
|
7848
|
+
flex-shrink: 0;
|
|
7849
|
+
color: var(--ow-danger-solid);
|
|
7850
|
+
}
|
|
7851
|
+
|
|
7852
|
+
.ow-chat-message__error-text {
|
|
7853
|
+
min-width: 0;
|
|
7854
|
+
flex: 1;
|
|
7855
|
+
}
|
|
7856
|
+
|
|
7857
|
+
.ow-chat-message__error > .ow-button {
|
|
7858
|
+
margin-left: var(--ow-space-xs);
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7861
|
+
/* Actions: under the message, the first icon level with the text's edge. Hidden (but reachable) until the message
|
|
7862
|
+
is hovered or holds focus; always shown where there's no hover. The buttons' padding hangs into the space around
|
|
7863
|
+
them, so the row adds its icons' height to the message rather than a whole 32px button. */
|
|
7864
|
+
.ow-chat-message__actions {
|
|
7865
|
+
justify-self: start;
|
|
7866
|
+
margin: calc(-1 * var(--ow-space-2xs)) 0 calc(-1 * var(--ow-space-lg)) calc(-1 * var(--ow-space-sm));
|
|
7867
|
+
opacity: 0;
|
|
7868
|
+
transition: opacity var(--ow-duration-fast) var(--ow-ease-standard);
|
|
7869
|
+
}
|
|
7870
|
+
|
|
7871
|
+
.ow-chat-message--user .ow-chat-message__actions {
|
|
7872
|
+
justify-self: end;
|
|
7873
|
+
margin-right: calc(-1 * var(--ow-space-sm));
|
|
7874
|
+
margin-left: 0;
|
|
7875
|
+
}
|
|
7876
|
+
|
|
7877
|
+
.ow-chat-message:hover .ow-chat-message__actions,
|
|
7878
|
+
.ow-chat-message:focus-within .ow-chat-message__actions,
|
|
7879
|
+
.ow-chat-message--actions-always .ow-chat-message__actions {
|
|
7880
|
+
opacity: 1;
|
|
7881
|
+
}
|
|
7882
|
+
|
|
7883
|
+
@media (hover: none) {
|
|
7884
|
+
.ow-chat-message__actions {
|
|
7885
|
+
opacity: 1;
|
|
7886
|
+
}
|
|
7887
|
+
}
|
|
7888
|
+
|
|
7889
|
+
/* ChatMessageActions. */
|
|
7890
|
+
.ow-chat-actions__copy-icon {
|
|
7891
|
+
display: inline-grid;
|
|
7892
|
+
}
|
|
7893
|
+
|
|
7894
|
+
.ow-chat-actions__copy-icon > svg {
|
|
7895
|
+
grid-area: 1 / 1;
|
|
7896
|
+
transition:
|
|
7897
|
+
opacity var(--ow-duration-base) var(--ow-ease-standard),
|
|
7898
|
+
transform var(--ow-duration-slow) var(--ow-ease-spring);
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7901
|
+
.ow-chat-actions__copy-icon > svg:last-child,
|
|
7902
|
+
.ow-chat-actions__copy--copied .ow-chat-actions__copy-icon > svg:first-child {
|
|
7903
|
+
opacity: 0;
|
|
7904
|
+
transform: scale(0.5);
|
|
7905
|
+
}
|
|
7906
|
+
|
|
7907
|
+
.ow-chat-actions__copy--copied .ow-chat-actions__copy-icon > svg:last-child {
|
|
7908
|
+
color: var(--ow-success-text);
|
|
7909
|
+
opacity: 1;
|
|
7910
|
+
transform: none;
|
|
7911
|
+
}
|
|
7912
|
+
|
|
7913
|
+
/* A pressed rating fills its thumb lightly, as well as taking the pressed tint. */
|
|
7914
|
+
.ow-chat-actions__rate[aria-pressed="true"] svg {
|
|
7915
|
+
fill: currentColor;
|
|
7916
|
+
fill-opacity: 0.22;
|
|
7917
|
+
}
|
|
7918
|
+
|
|
7919
|
+
/* ChatLoader. */
|
|
7920
|
+
.ow-chat-loader__line {
|
|
7921
|
+
display: flex;
|
|
7922
|
+
min-height: 1.55em;
|
|
7923
|
+
align-items: center;
|
|
7924
|
+
}
|
|
7925
|
+
|
|
7926
|
+
.ow-chat-loader--inline {
|
|
7927
|
+
display: inline-flex;
|
|
7928
|
+
align-items: center;
|
|
7929
|
+
vertical-align: middle;
|
|
7930
|
+
}
|
|
7931
|
+
|
|
7932
|
+
.ow-chat-loader__dots {
|
|
7933
|
+
display: inline-flex;
|
|
7934
|
+
align-items: center;
|
|
7935
|
+
gap: var(--ow-space-2xs);
|
|
7936
|
+
}
|
|
7937
|
+
|
|
7938
|
+
.ow-chat-loader__dot {
|
|
7939
|
+
width: 6px;
|
|
7940
|
+
height: 6px;
|
|
7941
|
+
border-radius: 50%;
|
|
7942
|
+
background: var(--ow-text-muted);
|
|
7943
|
+
opacity: 0.35;
|
|
7944
|
+
animation: ow-chat-dot 1.2s var(--ow-ease-standard) infinite;
|
|
7945
|
+
}
|
|
7946
|
+
|
|
7947
|
+
.ow-chat-loader__dot:nth-child(2) {
|
|
7948
|
+
animation-delay: 160ms;
|
|
7949
|
+
}
|
|
7950
|
+
|
|
7951
|
+
.ow-chat-loader__dot:nth-child(3) {
|
|
7952
|
+
animation-delay: 320ms;
|
|
7953
|
+
}
|
|
7954
|
+
|
|
7955
|
+
/* Arrivals: once a conversation is showing, a person's message and a system line rise in; the agent's answer fades in
|
|
7956
|
+
beside an avatar that stays put, so a loader turning into the answer doesn't blink. */
|
|
7957
|
+
.ow-chat-message--enter.ow-chat-message--user,
|
|
7958
|
+
.ow-chat-message--enter.ow-chat-message--system,
|
|
7959
|
+
.ow-chat-loader--enter {
|
|
7960
|
+
animation: ow-chat-rise var(--ow-duration-slow) var(--ow-ease-emphasized);
|
|
7961
|
+
}
|
|
7962
|
+
|
|
7963
|
+
.ow-chat-message--enter.ow-chat-message--assistant > .ow-chat-message__main {
|
|
7964
|
+
animation: ow-chat-fade var(--ow-duration-slow) var(--ow-ease-emphasized);
|
|
7965
|
+
}
|
|
7966
|
+
|
|
7967
|
+
@keyframes ow-chat-rise {
|
|
7968
|
+
from {
|
|
7969
|
+
opacity: 0;
|
|
7970
|
+
transform: translateY(6px);
|
|
7971
|
+
}
|
|
7972
|
+
}
|
|
7973
|
+
|
|
7974
|
+
@keyframes ow-chat-sink {
|
|
7975
|
+
to {
|
|
7976
|
+
opacity: 0;
|
|
7977
|
+
transform: translateY(6px);
|
|
7978
|
+
}
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7981
|
+
@keyframes ow-chat-fade {
|
|
7982
|
+
from {
|
|
7983
|
+
opacity: 0;
|
|
7984
|
+
}
|
|
7985
|
+
}
|
|
7986
|
+
|
|
7987
|
+
@keyframes ow-chat-caret {
|
|
7988
|
+
0%,
|
|
7989
|
+
100% {
|
|
7990
|
+
opacity: 0.9;
|
|
7991
|
+
}
|
|
7992
|
+
50% {
|
|
7993
|
+
opacity: 0.15;
|
|
7994
|
+
}
|
|
7995
|
+
}
|
|
7996
|
+
|
|
7997
|
+
@keyframes ow-chat-dot {
|
|
7998
|
+
0%,
|
|
7999
|
+
60%,
|
|
8000
|
+
100% {
|
|
8001
|
+
opacity: 0.35;
|
|
8002
|
+
transform: scale(0.8);
|
|
8003
|
+
}
|
|
8004
|
+
30% {
|
|
8005
|
+
opacity: 1;
|
|
8006
|
+
transform: none;
|
|
8007
|
+
}
|
|
8008
|
+
}
|
|
8009
|
+
|
|
8010
|
+
@media (max-width: 760px) {
|
|
8011
|
+
.ow-chat-conversation {
|
|
8012
|
+
--ow-chat-gutter: var(--ow-space-2xl);
|
|
8013
|
+
}
|
|
8014
|
+
.ow-chat-conversation__content {
|
|
8015
|
+
gap: var(--ow-space-5xl);
|
|
8016
|
+
}
|
|
8017
|
+
.ow-chat-message--user,
|
|
8018
|
+
.ow-chat-message--assistant {
|
|
8019
|
+
gap: var(--ow-space-md);
|
|
8020
|
+
}
|
|
8021
|
+
.ow-chat-message--user .ow-chat-message__main {
|
|
8022
|
+
max-width: 88%;
|
|
8023
|
+
}
|
|
8024
|
+
}
|
|
8025
|
+
|
|
8026
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8027
|
+
.ow-chat-conversation__jump,
|
|
8028
|
+
.ow-chat-message--enter.ow-chat-message--user,
|
|
8029
|
+
.ow-chat-message--enter.ow-chat-message--system,
|
|
8030
|
+
.ow-chat-message--enter.ow-chat-message--assistant > .ow-chat-message__main,
|
|
8031
|
+
.ow-chat-loader--enter,
|
|
8032
|
+
.ow-chat-message__caret {
|
|
8033
|
+
animation: none;
|
|
8034
|
+
}
|
|
8035
|
+
.ow-chat-loader__dot {
|
|
8036
|
+
opacity: 0.6;
|
|
8037
|
+
animation: none;
|
|
8038
|
+
}
|
|
8039
|
+
.ow-chat-message__actions,
|
|
8040
|
+
.ow-chat-actions__copy-icon > svg {
|
|
8041
|
+
transition: none;
|
|
8042
|
+
}
|
|
8043
|
+
}
|
|
8044
|
+
|
|
8045
|
+
/* Forced colours drop backgrounds: draw the caret and the dots in the text colour. */
|
|
8046
|
+
@media (forced-colors: active) {
|
|
8047
|
+
.ow-chat-message__caret,
|
|
8048
|
+
.ow-chat-loader__dot {
|
|
8049
|
+
forced-color-adjust: none;
|
|
8050
|
+
background: CanvasText;
|
|
8051
|
+
}
|
|
8052
|
+
}
|
|
8053
|
+
|
|
8054
|
+
/* components/ChatTool/ChatTool.css */
|
|
8055
|
+
/* ChatTool: one tool call on a row that opens to its input and output. Also the pieces ChainOfThought and ChatSources
|
|
8056
|
+
share: the status mark, the plain disclosure toggle and the collapsing panel. */
|
|
8057
|
+
|
|
8058
|
+
/* The status mark: a 20px circle, tinted by status. */
|
|
8059
|
+
.ow-chat-status {
|
|
8060
|
+
position: relative;
|
|
8061
|
+
display: inline-flex;
|
|
8062
|
+
width: 20px;
|
|
8063
|
+
height: 20px;
|
|
8064
|
+
flex-shrink: 0;
|
|
8065
|
+
align-items: center;
|
|
8066
|
+
justify-content: center;
|
|
8067
|
+
border-radius: 50%;
|
|
8068
|
+
color: var(--ow-text-muted);
|
|
8069
|
+
}
|
|
8070
|
+
|
|
8071
|
+
.ow-chat-status__glyph {
|
|
8072
|
+
display: inline-flex;
|
|
8073
|
+
}
|
|
8074
|
+
|
|
8075
|
+
.ow-chat-status--success {
|
|
8076
|
+
background: var(--ow-success-surface);
|
|
8077
|
+
color: var(--ow-success-text);
|
|
8078
|
+
box-shadow: inset 0 0 0 1px var(--ow-success-border);
|
|
8079
|
+
}
|
|
8080
|
+
|
|
8081
|
+
.ow-chat-status--error {
|
|
8082
|
+
background: var(--ow-danger-surface);
|
|
8083
|
+
color: var(--ow-danger-text);
|
|
8084
|
+
box-shadow: inset 0 0 0 1px var(--ow-danger-border);
|
|
8085
|
+
}
|
|
8086
|
+
|
|
8087
|
+
.ow-chat-status--approval {
|
|
8088
|
+
background: var(--ow-warning-surface);
|
|
8089
|
+
color: var(--ow-warning-text);
|
|
8090
|
+
box-shadow: inset 0 0 0 1px var(--ow-warning-border);
|
|
8091
|
+
}
|
|
8092
|
+
|
|
8093
|
+
/* Not started: a hollow ring. Called off: the ring with a slash across it. */
|
|
8094
|
+
.ow-chat-status--pending,
|
|
8095
|
+
.ow-chat-status--cancelled {
|
|
8096
|
+
box-shadow: inset 0 0 0 1.5px var(--ow-border-strong);
|
|
8097
|
+
}
|
|
8098
|
+
|
|
8099
|
+
/* A step's own icon, at the size of the check it stands in for. */
|
|
8100
|
+
.ow-chat-status--icon .ow-chat-status__glyph > svg {
|
|
8101
|
+
width: 12px;
|
|
8102
|
+
height: 12px;
|
|
8103
|
+
}
|
|
8104
|
+
|
|
8105
|
+
/* The mark settles in when a status lands. */
|
|
8106
|
+
.ow-chat-status--success .ow-chat-status__glyph,
|
|
8107
|
+
.ow-chat-status--error .ow-chat-status__glyph,
|
|
8108
|
+
.ow-chat-status--approval .ow-chat-status__glyph,
|
|
8109
|
+
.ow-chat-status--cancelled .ow-chat-status__glyph {
|
|
8110
|
+
animation: ow-chat-status-in var(--ow-duration-slow) var(--ow-ease-spring);
|
|
8111
|
+
}
|
|
8112
|
+
|
|
8113
|
+
@keyframes ow-chat-status-in {
|
|
8114
|
+
from {
|
|
8115
|
+
opacity: 0;
|
|
8116
|
+
transform: scale(0.5);
|
|
8117
|
+
}
|
|
8118
|
+
}
|
|
8119
|
+
|
|
8120
|
+
/* A plain disclosure toggle ("Thought for 12 s", "3 sources"): a chevron in a 20px column, so whatever opens below
|
|
8121
|
+
lines up with the label. */
|
|
8122
|
+
.ow-chat-toggle {
|
|
8123
|
+
display: inline-flex;
|
|
8124
|
+
max-width: 100%;
|
|
8125
|
+
min-height: 28px;
|
|
8126
|
+
align-items: center;
|
|
8127
|
+
gap: var(--ow-space-md);
|
|
8128
|
+
margin: 0;
|
|
8129
|
+
border: 0;
|
|
8130
|
+
border-radius: var(--ow-radius-md);
|
|
8131
|
+
background: transparent;
|
|
8132
|
+
padding: var(--ow-space-2xs) var(--ow-space-xs) var(--ow-space-2xs) 0;
|
|
8133
|
+
color: var(--ow-text-soft);
|
|
8134
|
+
font: inherit;
|
|
8135
|
+
font-family: var(--ow-font-sans);
|
|
8136
|
+
font-size: 14px;
|
|
8137
|
+
font-weight: var(--ow-weight-control);
|
|
8138
|
+
line-height: 20px;
|
|
8139
|
+
text-align: left;
|
|
8140
|
+
cursor: pointer;
|
|
8141
|
+
transition: color var(--ow-duration-base) var(--ow-ease-standard);
|
|
8142
|
+
}
|
|
8143
|
+
|
|
8144
|
+
.ow-chat-toggle:hover {
|
|
8145
|
+
color: var(--ow-text);
|
|
8146
|
+
}
|
|
8147
|
+
|
|
8148
|
+
.ow-chat-toggle:focus-visible {
|
|
8149
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
8150
|
+
outline-offset: 2px;
|
|
8151
|
+
}
|
|
8152
|
+
|
|
8153
|
+
.ow-chat-toggle__chevron {
|
|
8154
|
+
display: inline-flex;
|
|
8155
|
+
width: 20px;
|
|
8156
|
+
flex-shrink: 0;
|
|
8157
|
+
justify-content: center;
|
|
8158
|
+
color: var(--ow-icon);
|
|
8159
|
+
transition:
|
|
8160
|
+
transform var(--ow-duration-slow) var(--ow-ease-emphasized),
|
|
8161
|
+
color var(--ow-duration-base) var(--ow-ease-standard);
|
|
8162
|
+
}
|
|
8163
|
+
|
|
8164
|
+
.ow-chat-toggle:hover .ow-chat-toggle__chevron {
|
|
8165
|
+
color: var(--ow-text-muted);
|
|
8166
|
+
}
|
|
8167
|
+
|
|
8168
|
+
.ow-chat-toggle[aria-expanded="true"] .ow-chat-toggle__chevron {
|
|
8169
|
+
transform: rotate(90deg);
|
|
8170
|
+
}
|
|
8171
|
+
|
|
8172
|
+
.ow-chat-toggle__text {
|
|
8173
|
+
display: flex;
|
|
8174
|
+
min-width: 0;
|
|
8175
|
+
flex-wrap: wrap;
|
|
8176
|
+
align-items: baseline;
|
|
8177
|
+
column-gap: var(--ow-space-xs);
|
|
8178
|
+
}
|
|
8179
|
+
|
|
8180
|
+
.ow-chat-toggle__meta {
|
|
8181
|
+
color: var(--ow-text-muted);
|
|
8182
|
+
font-weight: var(--ow-weight-regular);
|
|
8183
|
+
font-variant-numeric: tabular-nums;
|
|
8184
|
+
}
|
|
8185
|
+
|
|
8186
|
+
/* A panel that animates its height with a 0fr → 1fr grid row. Its content's height can change while it's open
|
|
8187
|
+
(streaming text) without animating. */
|
|
8188
|
+
.ow-chat-collapse {
|
|
8189
|
+
display: grid;
|
|
8190
|
+
min-width: 0;
|
|
8191
|
+
grid-template-rows: 0fr;
|
|
8192
|
+
visibility: hidden;
|
|
8193
|
+
transition:
|
|
8194
|
+
grid-template-rows var(--ow-duration-base) var(--ow-ease-standard),
|
|
8195
|
+
visibility 0s linear var(--ow-duration-base);
|
|
8196
|
+
}
|
|
8197
|
+
|
|
8198
|
+
.ow-chat-collapse[data-open="true"] {
|
|
8199
|
+
grid-template-rows: 1fr;
|
|
8200
|
+
visibility: visible;
|
|
8201
|
+
transition:
|
|
8202
|
+
grid-template-rows var(--ow-duration-panel) var(--ow-ease-emphasized),
|
|
8203
|
+
visibility 0s;
|
|
8204
|
+
}
|
|
8205
|
+
|
|
8206
|
+
.ow-chat-collapse__clip {
|
|
8207
|
+
min-width: 0;
|
|
8208
|
+
min-height: 0;
|
|
8209
|
+
overflow: hidden;
|
|
8210
|
+
}
|
|
8211
|
+
|
|
8212
|
+
.ow-chat-collapse__clip > * {
|
|
8213
|
+
opacity: 0;
|
|
8214
|
+
transition: opacity var(--ow-duration-fast) var(--ow-ease-standard);
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
.ow-chat-collapse[data-open="true"] > .ow-chat-collapse__clip > * {
|
|
8218
|
+
opacity: 1;
|
|
8219
|
+
transition: opacity var(--ow-duration-slow) var(--ow-ease-standard) 60ms;
|
|
8220
|
+
}
|
|
8221
|
+
|
|
8222
|
+
/* Room past the edges for the focus rings of links and cards inside. */
|
|
8223
|
+
.ow-chat-collapse--bleed {
|
|
8224
|
+
margin-inline: calc(-1 * var(--ow-space-2xs));
|
|
8225
|
+
}
|
|
8226
|
+
|
|
8227
|
+
.ow-chat-collapse--bleed > .ow-chat-collapse__clip {
|
|
8228
|
+
padding-inline: var(--ow-space-2xs);
|
|
8229
|
+
}
|
|
8230
|
+
|
|
8231
|
+
/* The tool call: a bordered card whose header row is the disclosure button. */
|
|
8232
|
+
.ow-chat-tool {
|
|
8233
|
+
min-width: 0;
|
|
8234
|
+
overflow: hidden;
|
|
8235
|
+
border: 1px solid var(--ow-border);
|
|
8236
|
+
border-radius: var(--ow-radius-container);
|
|
8237
|
+
background: var(--ow-surface);
|
|
8238
|
+
color: var(--ow-text);
|
|
8239
|
+
font-family: var(--ow-font-sans);
|
|
8240
|
+
font-size: 14px;
|
|
8241
|
+
line-height: 1.45;
|
|
8242
|
+
transition: border-color var(--ow-duration-base) var(--ow-ease-standard);
|
|
8243
|
+
}
|
|
8244
|
+
|
|
8245
|
+
.ow-chat-tool:focus-visible {
|
|
8246
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
8247
|
+
outline-offset: 2px;
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
.ow-chat-tool[data-status="approval"] {
|
|
8251
|
+
border-color: var(--ow-warning-border);
|
|
8252
|
+
}
|
|
8253
|
+
|
|
8254
|
+
.ow-chat-tool[data-status="error"] {
|
|
8255
|
+
border-color: var(--ow-danger-border);
|
|
8256
|
+
}
|
|
8257
|
+
|
|
8258
|
+
.ow-chat-tool__header {
|
|
8259
|
+
display: flex;
|
|
8260
|
+
width: 100%;
|
|
8261
|
+
align-items: flex-start;
|
|
8262
|
+
gap: var(--ow-space-md);
|
|
8263
|
+
margin: 0;
|
|
8264
|
+
border: 0;
|
|
8265
|
+
background: transparent;
|
|
8266
|
+
padding: var(--ow-space-md) var(--ow-space-lg);
|
|
8267
|
+
color: inherit;
|
|
8268
|
+
font: inherit;
|
|
8269
|
+
text-align: left;
|
|
8270
|
+
}
|
|
8271
|
+
|
|
8272
|
+
.ow-chat-tool__header--button {
|
|
8273
|
+
cursor: pointer;
|
|
8274
|
+
transition: background-color var(--ow-duration-base) var(--ow-ease-standard);
|
|
8275
|
+
}
|
|
8276
|
+
|
|
8277
|
+
.ow-chat-tool__header--button:hover {
|
|
8278
|
+
background: var(--ow-surface-muted);
|
|
8279
|
+
}
|
|
8280
|
+
|
|
8281
|
+
.ow-chat-tool__header--button:focus-visible {
|
|
8282
|
+
border-radius: calc(var(--ow-radius-container) - 1px);
|
|
8283
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
8284
|
+
outline-offset: -2px;
|
|
8285
|
+
}
|
|
8286
|
+
|
|
8287
|
+
.ow-chat-tool__icon {
|
|
8288
|
+
display: inline-flex;
|
|
8289
|
+
height: 20px;
|
|
8290
|
+
flex-shrink: 0;
|
|
8291
|
+
align-items: center;
|
|
8292
|
+
color: var(--ow-text-muted);
|
|
8293
|
+
}
|
|
8294
|
+
|
|
8295
|
+
.ow-chat-tool__icon > svg {
|
|
8296
|
+
width: 15px;
|
|
8297
|
+
height: 15px;
|
|
8298
|
+
}
|
|
8299
|
+
|
|
8300
|
+
/* The title and tool name, then the result; the result drops to a second line when there's no room beside them. */
|
|
8301
|
+
.ow-chat-tool__main {
|
|
8302
|
+
display: flex;
|
|
8303
|
+
min-width: 0;
|
|
8304
|
+
flex: 1;
|
|
8305
|
+
flex-wrap: wrap;
|
|
8306
|
+
align-items: baseline;
|
|
8307
|
+
gap: 0 var(--ow-space-lg);
|
|
8308
|
+
}
|
|
8309
|
+
|
|
8310
|
+
.ow-chat-tool__heading {
|
|
8311
|
+
display: flex;
|
|
8312
|
+
min-width: 0;
|
|
8313
|
+
flex: 1 1 auto;
|
|
8314
|
+
flex-wrap: wrap;
|
|
8315
|
+
align-items: baseline;
|
|
8316
|
+
gap: 0 var(--ow-space-sm);
|
|
8317
|
+
}
|
|
8318
|
+
|
|
8319
|
+
.ow-chat-tool__title {
|
|
8320
|
+
min-width: 0;
|
|
8321
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8322
|
+
line-height: 20px;
|
|
8323
|
+
overflow-wrap: anywhere;
|
|
8324
|
+
}
|
|
8325
|
+
|
|
8326
|
+
.ow-chat-tool[data-status="pending"] .ow-chat-tool__title,
|
|
8327
|
+
.ow-chat-tool[data-status="cancelled"] .ow-chat-tool__title {
|
|
8328
|
+
color: var(--ow-text-muted);
|
|
8329
|
+
}
|
|
8330
|
+
|
|
8331
|
+
.ow-chat-tool__name.ow-code {
|
|
8332
|
+
font-size: 12px;
|
|
8333
|
+
line-height: 18px;
|
|
8334
|
+
}
|
|
8335
|
+
|
|
8336
|
+
.ow-chat-tool__meta {
|
|
8337
|
+
display: inline-flex;
|
|
8338
|
+
min-width: 0;
|
|
8339
|
+
flex-wrap: wrap;
|
|
8340
|
+
align-items: baseline;
|
|
8341
|
+
gap: 0 var(--ow-space-xs);
|
|
8342
|
+
color: var(--ow-text-muted);
|
|
8343
|
+
font-size: 12px;
|
|
8344
|
+
line-height: 20px;
|
|
8345
|
+
font-variant-numeric: tabular-nums;
|
|
8346
|
+
}
|
|
8347
|
+
|
|
8348
|
+
.ow-chat-tool[data-status="error"] .ow-chat-tool__summary {
|
|
8349
|
+
color: var(--ow-danger-text);
|
|
8350
|
+
}
|
|
8351
|
+
|
|
8352
|
+
.ow-chat-tool[data-status="approval"] .ow-chat-tool__summary {
|
|
8353
|
+
color: var(--ow-warning-text);
|
|
8354
|
+
}
|
|
8355
|
+
|
|
8356
|
+
.ow-chat-tool__duration {
|
|
8357
|
+
white-space: nowrap;
|
|
8358
|
+
}
|
|
8359
|
+
|
|
8360
|
+
.ow-chat-tool__chevron {
|
|
8361
|
+
display: inline-flex;
|
|
8362
|
+
height: 20px;
|
|
8363
|
+
flex-shrink: 0;
|
|
8364
|
+
align-items: center;
|
|
8365
|
+
color: var(--ow-icon);
|
|
8366
|
+
transition: transform var(--ow-duration-slow) var(--ow-ease-emphasized);
|
|
8367
|
+
}
|
|
8368
|
+
|
|
8369
|
+
.ow-chat-tool[data-open="true"] .ow-chat-tool__chevron {
|
|
8370
|
+
transform: rotate(90deg);
|
|
8371
|
+
}
|
|
8372
|
+
|
|
8373
|
+
/* Input, output and error, lined up with the title (12px padding + the 20px mark + a 10px gap). */
|
|
8374
|
+
.ow-chat-tool__details {
|
|
8375
|
+
display: grid;
|
|
8376
|
+
gap: var(--ow-space-lg);
|
|
8377
|
+
padding: var(--ow-space-2xs) var(--ow-space-lg) var(--ow-space-lg) 42px;
|
|
8378
|
+
}
|
|
8379
|
+
|
|
8380
|
+
.ow-chat-tool__section {
|
|
8381
|
+
display: grid;
|
|
8382
|
+
min-width: 0;
|
|
8383
|
+
gap: var(--ow-space-xs);
|
|
8384
|
+
}
|
|
8385
|
+
|
|
8386
|
+
.ow-chat-tool__label {
|
|
8387
|
+
color: var(--ow-text-muted);
|
|
8388
|
+
font-size: 12px;
|
|
8389
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8390
|
+
line-height: 1.35;
|
|
8391
|
+
}
|
|
8392
|
+
|
|
8393
|
+
.ow-chat-tool__output {
|
|
8394
|
+
min-width: 0;
|
|
8395
|
+
color: var(--ow-text-soft);
|
|
8396
|
+
}
|
|
8397
|
+
|
|
8398
|
+
.ow-chat-tool__error {
|
|
8399
|
+
min-width: 0;
|
|
8400
|
+
border: 1px solid var(--ow-danger-border);
|
|
8401
|
+
border-radius: var(--ow-radius-form);
|
|
8402
|
+
background: var(--ow-danger-surface);
|
|
8403
|
+
padding: var(--ow-space-sm) var(--ow-space-lg);
|
|
8404
|
+
color: var(--ow-danger-text);
|
|
8405
|
+
font-family: var(--ow-font-mono);
|
|
8406
|
+
font-size: 12px;
|
|
8407
|
+
line-height: 1.6;
|
|
8408
|
+
white-space: pre-wrap;
|
|
8409
|
+
overflow-wrap: anywhere;
|
|
8410
|
+
}
|
|
8411
|
+
|
|
8412
|
+
/* Waiting for the person: what it wants to do, and Approve and Deny. */
|
|
8413
|
+
.ow-chat-tool__approval {
|
|
8414
|
+
display: flex;
|
|
8415
|
+
flex-wrap: wrap;
|
|
8416
|
+
align-items: center;
|
|
8417
|
+
gap: var(--ow-space-md) var(--ow-space-lg);
|
|
8418
|
+
border-top: 1px solid var(--ow-warning-border);
|
|
8419
|
+
background: var(--ow-warning-surface);
|
|
8420
|
+
padding: var(--ow-space-md) var(--ow-space-lg) var(--ow-space-md) 42px;
|
|
8421
|
+
animation: ow-fade-up var(--ow-duration-slow) var(--ow-ease-emphasized);
|
|
8422
|
+
}
|
|
8423
|
+
|
|
8424
|
+
.ow-chat-tool__request {
|
|
8425
|
+
min-width: 0;
|
|
8426
|
+
flex: 1 1 220px;
|
|
8427
|
+
margin: 0;
|
|
8428
|
+
color: var(--ow-text);
|
|
8429
|
+
font-size: 14px;
|
|
8430
|
+
font-weight: var(--ow-weight-control);
|
|
8431
|
+
line-height: 1.45;
|
|
8432
|
+
}
|
|
8433
|
+
|
|
8434
|
+
.ow-chat-tool__request .ow-code {
|
|
8435
|
+
font-size: 12px;
|
|
8436
|
+
}
|
|
8437
|
+
|
|
8438
|
+
.ow-chat-tool__actions {
|
|
8439
|
+
display: flex;
|
|
8440
|
+
flex-wrap: wrap;
|
|
8441
|
+
gap: var(--ow-space-sm);
|
|
8442
|
+
}
|
|
8443
|
+
|
|
8444
|
+
@media (max-width: 480px) {
|
|
8445
|
+
.ow-chat-tool__details,
|
|
8446
|
+
.ow-chat-tool__approval {
|
|
8447
|
+
padding-left: var(--ow-space-lg);
|
|
8448
|
+
}
|
|
8449
|
+
}
|
|
8450
|
+
|
|
8451
|
+
/* Forced colours drop the tints and inset rings, so the marks get a plain outline. */
|
|
8452
|
+
@media (forced-colors: active) {
|
|
8453
|
+
.ow-chat-status:not(.ow-chat-status--running) {
|
|
8454
|
+
border: 1px solid CanvasText;
|
|
8455
|
+
}
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
@media (prefers-reduced-motion: reduce) {
|
|
8459
|
+
.ow-chat-status__glyph,
|
|
8460
|
+
.ow-chat-tool__approval {
|
|
8461
|
+
animation: none !important;
|
|
8462
|
+
}
|
|
8463
|
+
.ow-chat-collapse,
|
|
8464
|
+
.ow-chat-collapse[data-open="true"],
|
|
8465
|
+
.ow-chat-collapse__clip > *,
|
|
8466
|
+
.ow-chat-toggle__chevron,
|
|
8467
|
+
.ow-chat-tool__chevron {
|
|
8468
|
+
transition: none !important;
|
|
8469
|
+
}
|
|
8470
|
+
}
|
|
8471
|
+
|
|
8472
|
+
/* components/ChainOfThought/ChainOfThought.css */
|
|
8473
|
+
/* ChainOfThought: a "Thinking…" toggle over the agent's reasoning and its steps on a thin line. The toggle, the status
|
|
8474
|
+
marks and the collapsing panel come from ChatTool.css. */
|
|
8475
|
+
.ow-chain-of-thought {
|
|
8476
|
+
display: grid;
|
|
8477
|
+
min-width: 0;
|
|
8478
|
+
justify-items: start;
|
|
8479
|
+
color: var(--ow-text);
|
|
8480
|
+
font-family: var(--ow-font-sans);
|
|
8481
|
+
font-size: 14px;
|
|
8482
|
+
line-height: 1.45;
|
|
8483
|
+
}
|
|
8484
|
+
|
|
8485
|
+
.ow-chain-of-thought > .ow-chat-collapse {
|
|
8486
|
+
justify-self: stretch;
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
.ow-chain-of-thought__static,
|
|
8490
|
+
.ow-chain-of-thought__static:hover {
|
|
8491
|
+
color: var(--ow-text-soft);
|
|
8492
|
+
cursor: default;
|
|
8493
|
+
}
|
|
8494
|
+
|
|
8495
|
+
.ow-chain-of-thought__failed {
|
|
8496
|
+
color: var(--ow-danger-text);
|
|
8497
|
+
}
|
|
8498
|
+
|
|
8499
|
+
.ow-chain-of-thought__body {
|
|
8500
|
+
display: grid;
|
|
8501
|
+
gap: var(--ow-space-md);
|
|
8502
|
+
padding: var(--ow-space-xs) 0 var(--ow-space-2xs);
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
/* The reasoning, lined up with the toggle's words, with a line down from its chevron. */
|
|
8506
|
+
.ow-chain-of-thought__reasoning {
|
|
8507
|
+
position: relative;
|
|
8508
|
+
min-width: 0;
|
|
8509
|
+
padding-left: 30px;
|
|
8510
|
+
color: var(--ow-text-muted);
|
|
8511
|
+
line-height: 1.55;
|
|
8512
|
+
white-space: pre-line;
|
|
8513
|
+
overflow-wrap: anywhere;
|
|
8514
|
+
text-wrap: pretty;
|
|
8515
|
+
}
|
|
8516
|
+
|
|
8517
|
+
.ow-chain-of-thought__reasoning::before {
|
|
8518
|
+
content: "";
|
|
8519
|
+
position: absolute;
|
|
8520
|
+
top: var(--ow-space-2xs);
|
|
8521
|
+
bottom: var(--ow-space-2xs);
|
|
8522
|
+
left: 9.5px;
|
|
8523
|
+
width: 1px;
|
|
8524
|
+
background: var(--ow-border);
|
|
8525
|
+
}
|
|
8526
|
+
|
|
8527
|
+
.ow-chain-of-thought__reasoning p {
|
|
8528
|
+
margin: 0 0 var(--ow-space-sm);
|
|
8529
|
+
}
|
|
8530
|
+
|
|
8531
|
+
.ow-chain-of-thought__reasoning > :last-child {
|
|
8532
|
+
margin-bottom: 0;
|
|
8533
|
+
}
|
|
8534
|
+
|
|
8535
|
+
.ow-chain-of-thought__steps {
|
|
8536
|
+
display: grid;
|
|
8537
|
+
margin: 0;
|
|
8538
|
+
padding: 0;
|
|
8539
|
+
list-style: none;
|
|
8540
|
+
}
|
|
8541
|
+
|
|
8542
|
+
.ow-chain-of-thought__step {
|
|
8543
|
+
position: relative;
|
|
8544
|
+
display: grid;
|
|
8545
|
+
grid-template-columns: 20px minmax(0, 1fr);
|
|
8546
|
+
column-gap: var(--ow-space-md);
|
|
8547
|
+
padding-bottom: var(--ow-space-lg);
|
|
8548
|
+
}
|
|
8549
|
+
|
|
8550
|
+
.ow-chain-of-thought__step:last-child {
|
|
8551
|
+
padding-bottom: 0;
|
|
8552
|
+
}
|
|
8553
|
+
|
|
8554
|
+
/* The line from each mark down to the next, with a little air at both ends; green behind the steps that are done. */
|
|
8555
|
+
.ow-chain-of-thought__step:not(:last-child)::before {
|
|
8556
|
+
content: "";
|
|
8557
|
+
position: absolute;
|
|
8558
|
+
top: 22px;
|
|
8559
|
+
bottom: 2px;
|
|
8560
|
+
left: 9.5px;
|
|
8561
|
+
width: 1px;
|
|
8562
|
+
background: var(--ow-border);
|
|
8563
|
+
}
|
|
8564
|
+
|
|
8565
|
+
.ow-chain-of-thought__step[data-status="success"]:not(:last-child)::before {
|
|
8566
|
+
background: color-mix(in srgb, var(--ow-success-solid) 40%, var(--ow-border));
|
|
8567
|
+
}
|
|
8568
|
+
|
|
8569
|
+
.ow-chain-of-thought__step-body {
|
|
8570
|
+
display: grid;
|
|
8571
|
+
min-width: 0;
|
|
8572
|
+
align-content: start;
|
|
8573
|
+
gap: var(--ow-space-2xs);
|
|
8574
|
+
}
|
|
8575
|
+
|
|
8576
|
+
.ow-chain-of-thought__step-title {
|
|
8577
|
+
min-width: 0;
|
|
8578
|
+
font-weight: var(--ow-weight-control);
|
|
8579
|
+
line-height: 20px;
|
|
8580
|
+
overflow-wrap: anywhere;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
.ow-chain-of-thought__step[data-status="pending"] .ow-chain-of-thought__step-title {
|
|
8584
|
+
color: var(--ow-text-muted);
|
|
8585
|
+
}
|
|
8586
|
+
|
|
8587
|
+
.ow-chain-of-thought__detail {
|
|
8588
|
+
min-width: 0;
|
|
8589
|
+
color: var(--ow-text-muted);
|
|
8590
|
+
line-height: 1.55;
|
|
8591
|
+
overflow-wrap: anywhere;
|
|
8592
|
+
}
|
|
8593
|
+
|
|
8594
|
+
.ow-chain-of-thought__detail .ow-code {
|
|
8595
|
+
font-size: 12px;
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
/* components/ChatSource/ChatSource.css */
|
|
8599
|
+
/* ChatSource: a citation chip in running text with a preview card in the top layer. ChatSources: the list of sources
|
|
8600
|
+
under an answer, behind a toggle (from ChatTool.css). */
|
|
8601
|
+
.ow-chat-source {
|
|
8602
|
+
display: inline;
|
|
8603
|
+
}
|
|
8604
|
+
|
|
8605
|
+
/* The chip: a small numbered pill that sits on the line without changing its height. */
|
|
8606
|
+
.ow-chat-source__chip,
|
|
8607
|
+
.ow-chat-sources__index {
|
|
8608
|
+
border: 1px solid var(--ow-border);
|
|
8609
|
+
border-radius: var(--ow-radius-pill);
|
|
8610
|
+
background: var(--ow-surface-muted);
|
|
8611
|
+
color: var(--ow-text-soft);
|
|
8612
|
+
font-family: var(--ow-font-sans);
|
|
8613
|
+
font-size: 11px;
|
|
8614
|
+
font-style: normal;
|
|
8615
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8616
|
+
font-variant-numeric: tabular-nums;
|
|
8617
|
+
line-height: 1;
|
|
8618
|
+
letter-spacing: 0;
|
|
8619
|
+
text-decoration: none;
|
|
8620
|
+
white-space: nowrap;
|
|
8621
|
+
}
|
|
8622
|
+
|
|
8623
|
+
/* In the text it's a plain inline, not an inline-flex box: the line can break after a box, so the full stop after a
|
|
8624
|
+
citation could otherwise wrap onto a line of its own. */
|
|
8625
|
+
.ow-chat-source__chip {
|
|
8626
|
+
position: relative;
|
|
8627
|
+
top: -1px;
|
|
8628
|
+
display: inline;
|
|
8629
|
+
margin-left: 2px;
|
|
8630
|
+
padding: 2px var(--ow-space-xs);
|
|
8631
|
+
vertical-align: baseline;
|
|
8632
|
+
cursor: pointer;
|
|
8633
|
+
transition-property: color, background-color, border-color;
|
|
8634
|
+
transition-duration: var(--ow-duration-base);
|
|
8635
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8638
|
+
.ow-chat-sources__index {
|
|
8639
|
+
display: inline-flex;
|
|
8640
|
+
height: 18px;
|
|
8641
|
+
min-width: 18px;
|
|
8642
|
+
align-items: center;
|
|
8643
|
+
justify-content: center;
|
|
8644
|
+
padding: 0 var(--ow-space-2xs);
|
|
8645
|
+
}
|
|
8646
|
+
|
|
8647
|
+
/* A label can be cut short, which takes a box. */
|
|
8648
|
+
.ow-chat-source__chip--label {
|
|
8649
|
+
display: inline-flex;
|
|
8650
|
+
height: 18px;
|
|
8651
|
+
max-width: 180px;
|
|
8652
|
+
align-items: center;
|
|
8653
|
+
padding: 0 var(--ow-space-xs);
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8656
|
+
.ow-chat-source__chip-text {
|
|
8657
|
+
min-width: 0;
|
|
8658
|
+
overflow: hidden;
|
|
8659
|
+
text-overflow: ellipsis;
|
|
8660
|
+
}
|
|
8661
|
+
|
|
8662
|
+
.ow-chat-source__chip:hover,
|
|
8663
|
+
.ow-chat-source__chip--open {
|
|
8664
|
+
border-color: var(--ow-primary-border);
|
|
8665
|
+
background: var(--ow-primary-subtle);
|
|
8666
|
+
color: var(--ow-primary-text);
|
|
8667
|
+
}
|
|
8668
|
+
|
|
8669
|
+
.ow-chat-source__chip:focus-visible {
|
|
8670
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
8671
|
+
outline-offset: 2px;
|
|
8672
|
+
}
|
|
8673
|
+
|
|
8674
|
+
/* The preview. It sits in the top layer but inherits from the sentence around the chip, so it sets its own type. */
|
|
8675
|
+
.ow-chat-source-card {
|
|
8676
|
+
z-index: 60;
|
|
8677
|
+
display: grid;
|
|
8678
|
+
width: min(320px, calc(100vw - 16px));
|
|
8679
|
+
gap: var(--ow-space-sm);
|
|
8680
|
+
overflow: hidden;
|
|
8681
|
+
border: 1px solid var(--ow-border);
|
|
8682
|
+
border-radius: var(--ow-radius-container);
|
|
8683
|
+
background: var(--ow-surface);
|
|
8684
|
+
padding: var(--ow-space-lg) var(--ow-space-xl);
|
|
8685
|
+
color: var(--ow-text);
|
|
8686
|
+
font-family: var(--ow-font-sans);
|
|
8687
|
+
font-size: 14px;
|
|
8688
|
+
font-style: normal;
|
|
8689
|
+
font-weight: var(--ow-weight-regular);
|
|
8690
|
+
line-height: 1.45;
|
|
8691
|
+
letter-spacing: normal;
|
|
8692
|
+
text-align: left;
|
|
8693
|
+
text-transform: none;
|
|
8694
|
+
white-space: normal;
|
|
8695
|
+
box-shadow: var(--ow-shadow-menu);
|
|
8696
|
+
}
|
|
8697
|
+
|
|
8698
|
+
.ow-chat-source-card[hidden] {
|
|
8699
|
+
display: none;
|
|
8700
|
+
}
|
|
8701
|
+
|
|
8702
|
+
.ow-chat-source-card__header {
|
|
8703
|
+
display: flex;
|
|
8704
|
+
min-width: 0;
|
|
8705
|
+
align-items: flex-start;
|
|
8706
|
+
gap: var(--ow-space-sm);
|
|
8707
|
+
}
|
|
8708
|
+
|
|
8709
|
+
.ow-chat-source-card__icon {
|
|
8710
|
+
display: inline-flex;
|
|
8711
|
+
height: 20px;
|
|
8712
|
+
flex-shrink: 0;
|
|
8713
|
+
align-items: center;
|
|
8714
|
+
color: var(--ow-text-muted);
|
|
8715
|
+
}
|
|
8716
|
+
|
|
8717
|
+
.ow-chat-source-card__icon > svg {
|
|
8718
|
+
width: 15px;
|
|
8719
|
+
height: 15px;
|
|
8720
|
+
}
|
|
8721
|
+
|
|
8722
|
+
.ow-chat-source-card__title {
|
|
8723
|
+
display: -webkit-box;
|
|
8724
|
+
min-width: 0;
|
|
8725
|
+
overflow: hidden;
|
|
8726
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8727
|
+
line-height: 20px;
|
|
8728
|
+
overflow-wrap: anywhere;
|
|
8729
|
+
-webkit-box-orient: vertical;
|
|
8730
|
+
-webkit-line-clamp: 2;
|
|
8731
|
+
}
|
|
8732
|
+
|
|
8733
|
+
.ow-chat-source-card__source {
|
|
8734
|
+
display: block;
|
|
8735
|
+
min-width: 0;
|
|
8736
|
+
color: var(--ow-text-muted);
|
|
8737
|
+
font-size: 12px;
|
|
8738
|
+
line-height: 1.35;
|
|
8739
|
+
overflow-wrap: anywhere;
|
|
8740
|
+
}
|
|
8741
|
+
|
|
8742
|
+
.ow-chat-source-card__source .ow-code,
|
|
8743
|
+
.ow-chat-sources__source .ow-code {
|
|
8744
|
+
font-size: 11px;
|
|
8745
|
+
}
|
|
8746
|
+
|
|
8747
|
+
/* A few lines from the source, cut off rather than scrolling: there's nothing to scroll with in a preview. */
|
|
8748
|
+
.ow-chat-source-card__snippet {
|
|
8749
|
+
display: -webkit-box;
|
|
8750
|
+
min-width: 0;
|
|
8751
|
+
overflow: hidden;
|
|
8752
|
+
-webkit-box-orient: vertical;
|
|
8753
|
+
}
|
|
8754
|
+
|
|
8755
|
+
.ow-chat-source-card__snippet--text {
|
|
8756
|
+
border-left: 2px solid var(--ow-border-strong);
|
|
8757
|
+
padding-left: var(--ow-space-md);
|
|
8758
|
+
color: var(--ow-text-soft);
|
|
8759
|
+
font-size: 13px;
|
|
8760
|
+
line-height: 1.5;
|
|
8761
|
+
white-space: pre-line;
|
|
8762
|
+
-webkit-line-clamp: 4;
|
|
8763
|
+
}
|
|
8764
|
+
|
|
8765
|
+
.ow-chat-source-card__snippet--code {
|
|
8766
|
+
border: 1px solid var(--ow-border);
|
|
8767
|
+
border-radius: var(--ow-radius-form);
|
|
8768
|
+
background: var(--ow-code-ground);
|
|
8769
|
+
padding: var(--ow-space-sm) var(--ow-space-md);
|
|
8770
|
+
font-family: var(--ow-font-mono);
|
|
8771
|
+
font-size: 12px;
|
|
8772
|
+
line-height: 1.6;
|
|
8773
|
+
white-space: pre;
|
|
8774
|
+
-webkit-line-clamp: 6;
|
|
8775
|
+
}
|
|
8776
|
+
|
|
8777
|
+
.ow-chat-source-card__open.ow-link {
|
|
8778
|
+
display: inline-flex;
|
|
8779
|
+
justify-self: start;
|
|
8780
|
+
align-items: center;
|
|
8781
|
+
gap: var(--ow-space-2xs);
|
|
8782
|
+
font-size: 12px;
|
|
8783
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8784
|
+
}
|
|
8785
|
+
|
|
8786
|
+
/* ChatSources: a toggle, then a card per source in as many columns as fit. */
|
|
8787
|
+
.ow-chat-sources {
|
|
8788
|
+
display: grid;
|
|
8789
|
+
min-width: 0;
|
|
8790
|
+
justify-items: start;
|
|
8791
|
+
color: var(--ow-text);
|
|
8792
|
+
font-family: var(--ow-font-sans);
|
|
8793
|
+
font-size: 14px;
|
|
8794
|
+
line-height: 1.45;
|
|
8795
|
+
}
|
|
8796
|
+
|
|
8797
|
+
.ow-chat-sources > .ow-chat-collapse {
|
|
8798
|
+
justify-self: stretch;
|
|
8799
|
+
}
|
|
8800
|
+
|
|
8801
|
+
.ow-chat-sources__body {
|
|
8802
|
+
padding: var(--ow-space-xs) 0 var(--ow-space-2xs);
|
|
8803
|
+
}
|
|
8804
|
+
|
|
8805
|
+
.ow-chat-sources__list {
|
|
8806
|
+
display: grid;
|
|
8807
|
+
grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
|
|
8808
|
+
gap: var(--ow-space-sm);
|
|
8809
|
+
margin: 0;
|
|
8810
|
+
padding: 0;
|
|
8811
|
+
list-style: none;
|
|
8812
|
+
}
|
|
8813
|
+
|
|
8814
|
+
.ow-chat-sources__list > li {
|
|
8815
|
+
display: grid;
|
|
8816
|
+
min-width: 0;
|
|
8817
|
+
}
|
|
8818
|
+
|
|
8819
|
+
.ow-chat-sources__card {
|
|
8820
|
+
display: flex;
|
|
8821
|
+
min-width: 0;
|
|
8822
|
+
align-items: flex-start;
|
|
8823
|
+
gap: var(--ow-space-md);
|
|
8824
|
+
border: 1px solid var(--ow-border);
|
|
8825
|
+
border-radius: var(--ow-radius-container);
|
|
8826
|
+
background: var(--ow-surface);
|
|
8827
|
+
padding: var(--ow-space-md) var(--ow-space-lg);
|
|
8828
|
+
color: inherit;
|
|
8829
|
+
text-decoration: none;
|
|
8830
|
+
}
|
|
8831
|
+
|
|
8832
|
+
.ow-chat-sources__card--link {
|
|
8833
|
+
cursor: pointer;
|
|
8834
|
+
transition-property: border-color, background-color;
|
|
8835
|
+
transition-duration: var(--ow-duration-base);
|
|
8836
|
+
transition-timing-function: var(--ow-ease-standard);
|
|
8837
|
+
}
|
|
8838
|
+
|
|
8839
|
+
.ow-chat-sources__card--link:hover {
|
|
8840
|
+
border-color: var(--ow-border-strong);
|
|
8841
|
+
background: var(--ow-surface-muted);
|
|
8842
|
+
}
|
|
8843
|
+
|
|
8844
|
+
.ow-chat-sources__card--link:focus-visible {
|
|
8845
|
+
outline: 2px solid var(--ow-focus-ring);
|
|
8846
|
+
outline-offset: 2px;
|
|
8847
|
+
}
|
|
8848
|
+
|
|
8849
|
+
.ow-chat-sources__lead {
|
|
8850
|
+
display: inline-flex;
|
|
8851
|
+
height: 20px;
|
|
8852
|
+
flex-shrink: 0;
|
|
8853
|
+
align-items: center;
|
|
8854
|
+
gap: var(--ow-space-xs);
|
|
8855
|
+
}
|
|
8856
|
+
|
|
8857
|
+
.ow-chat-sources__icon {
|
|
8858
|
+
display: inline-flex;
|
|
8859
|
+
color: var(--ow-text-muted);
|
|
8860
|
+
}
|
|
8861
|
+
|
|
8862
|
+
.ow-chat-sources__icon > svg {
|
|
8863
|
+
width: 15px;
|
|
8864
|
+
height: 15px;
|
|
8865
|
+
}
|
|
8866
|
+
|
|
8867
|
+
.ow-chat-sources__text {
|
|
8868
|
+
display: grid;
|
|
8869
|
+
min-width: 0;
|
|
8870
|
+
flex: 1;
|
|
8871
|
+
gap: 2px;
|
|
8872
|
+
}
|
|
8873
|
+
|
|
8874
|
+
.ow-chat-sources__title {
|
|
8875
|
+
display: -webkit-box;
|
|
8876
|
+
overflow: hidden;
|
|
8877
|
+
font-weight: var(--ow-weight-emphasis);
|
|
8878
|
+
line-height: 20px;
|
|
8879
|
+
overflow-wrap: anywhere;
|
|
8880
|
+
-webkit-box-orient: vertical;
|
|
8881
|
+
-webkit-line-clamp: 2;
|
|
8882
|
+
}
|
|
8883
|
+
|
|
8884
|
+
.ow-chat-sources__source {
|
|
8885
|
+
overflow: hidden;
|
|
8886
|
+
color: var(--ow-text-muted);
|
|
8887
|
+
text-overflow: ellipsis;
|
|
8888
|
+
white-space: nowrap;
|
|
8889
|
+
font-size: 12px;
|
|
8890
|
+
line-height: 1.35;
|
|
8891
|
+
}
|
|
8892
|
+
|
|
8893
|
+
.ow-chat-sources__external {
|
|
8894
|
+
display: inline-flex;
|
|
8895
|
+
height: 20px;
|
|
8896
|
+
flex-shrink: 0;
|
|
8897
|
+
align-items: center;
|
|
8898
|
+
color: var(--ow-icon);
|
|
8899
|
+
}
|