@quilltap/theme-storybook 1.0.94 → 1.0.96
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/dist/index.css +66 -0
- package/package.json +1 -1
- package/src/css/qt-components.css +95 -0
package/dist/index.css
CHANGED
|
@@ -1608,6 +1608,72 @@ body {
|
|
|
1608
1608
|
.qt-chat-announcement-chip.qt-pascal-result--info {
|
|
1609
1609
|
border-left-color: var(--qt-alert-info-border);
|
|
1610
1610
|
}
|
|
1611
|
+
.qt-chat-composer-established-fact .qt-chat-composer-input {
|
|
1612
|
+
border-color: var(--color-ring);
|
|
1613
|
+
box-shadow: inset 0 0 0 1px var(--color-ring);
|
|
1614
|
+
background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
|
|
1615
|
+
}
|
|
1616
|
+
.qt-chat-message-established-fact {
|
|
1617
|
+
font-size: 0.75rem;
|
|
1618
|
+
font-weight: 600;
|
|
1619
|
+
font-variant-caps: all-small-caps;
|
|
1620
|
+
letter-spacing: 0.04em;
|
|
1621
|
+
color: inherit;
|
|
1622
|
+
margin-bottom: 0.25rem;
|
|
1623
|
+
}
|
|
1624
|
+
.qt-chat-system-bar.qt-chat-established-fact,
|
|
1625
|
+
.qt-chat-announcement-chip.qt-chat-established-fact {
|
|
1626
|
+
border-left-width: 3px;
|
|
1627
|
+
border-left-color: var(--color-ring);
|
|
1628
|
+
padding-left: 0.75rem;
|
|
1629
|
+
}
|
|
1630
|
+
.qt-chat-established-fact-row {
|
|
1631
|
+
width: 100%;
|
|
1632
|
+
max-width: none;
|
|
1633
|
+
}
|
|
1634
|
+
.qt-chat-established-fact-band {
|
|
1635
|
+
width: 100%;
|
|
1636
|
+
background: var(--qt-alert-info-bg);
|
|
1637
|
+
border: 1px solid var(--qt-alert-info-border);
|
|
1638
|
+
border-left: 3px solid var(--color-ring);
|
|
1639
|
+
box-shadow: none;
|
|
1640
|
+
}
|
|
1641
|
+
.qt-chat-established-fact-toggle {
|
|
1642
|
+
display: inline-flex;
|
|
1643
|
+
align-items: center;
|
|
1644
|
+
justify-content: center;
|
|
1645
|
+
width: 1.625rem;
|
|
1646
|
+
height: 1.625rem;
|
|
1647
|
+
padding: 0;
|
|
1648
|
+
border: 1px solid var(--color-border);
|
|
1649
|
+
border-radius: var(--radius-sm);
|
|
1650
|
+
background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
|
|
1651
|
+
color: var(--color-foreground);
|
|
1652
|
+
cursor: pointer;
|
|
1653
|
+
opacity: 0.85;
|
|
1654
|
+
transition:
|
|
1655
|
+
opacity 150ms ease,
|
|
1656
|
+
border-color 150ms ease,
|
|
1657
|
+
box-shadow 150ms ease;
|
|
1658
|
+
}
|
|
1659
|
+
.qt-chat-established-fact-toggle:hover,
|
|
1660
|
+
.qt-chat-established-fact-toggle:focus-visible {
|
|
1661
|
+
opacity: 1;
|
|
1662
|
+
}
|
|
1663
|
+
.qt-chat-established-fact-toggle:focus-visible {
|
|
1664
|
+
outline: 2px solid var(--color-ring);
|
|
1665
|
+
outline-offset: 1px;
|
|
1666
|
+
}
|
|
1667
|
+
.qt-chat-established-fact-toggle[aria-pressed=true] {
|
|
1668
|
+
opacity: 1;
|
|
1669
|
+
border-color: var(--color-ring);
|
|
1670
|
+
box-shadow: inset 0 0 0 1px var(--color-ring);
|
|
1671
|
+
background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
|
|
1672
|
+
}
|
|
1673
|
+
.qt-chat-established-fact-toggle:disabled {
|
|
1674
|
+
cursor: not-allowed;
|
|
1675
|
+
opacity: 0.5;
|
|
1676
|
+
}
|
|
1611
1677
|
.qt-chat-message-silent {
|
|
1612
1678
|
background: var(--qt-chat-silent-bg);
|
|
1613
1679
|
color: var(--qt-chat-silent-fg);
|
package/package.json
CHANGED
|
@@ -1936,6 +1936,101 @@
|
|
|
1936
1936
|
border-left-color: var(--qt-alert-info-border);
|
|
1937
1937
|
}
|
|
1938
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* Deus Ex Machina — established facts in the Salon.
|
|
1941
|
+
*
|
|
1942
|
+
* Mirrors app/styles/qt-components/_chat.css. Built on existing tokens only (the --qt-alert-info-* family and --color-ring,
|
|
1943
|
+
* the focus-ring colour), so every bundled theme renders it without per-theme
|
|
1944
|
+
* work and the armed frame holds the focus ring's own contrast.
|
|
1945
|
+
*
|
|
1946
|
+
* - .qt-chat-composer-established-fact: the composer's editor wrapper while
|
|
1947
|
+
* `/deus` is armed — a frame and a faint tint, so the operator can see the
|
|
1948
|
+
* next line will be posted as fact.
|
|
1949
|
+
* - .qt-chat-message-established-fact: the small ribbon on an operator line
|
|
1950
|
+
* posted as fact.
|
|
1951
|
+
* - .qt-chat-established-fact: the accent on a machine fact's bar/chip.
|
|
1952
|
+
* - .qt-chat-established-fact-row / -band: a machine fact renders as a
|
|
1953
|
+
* full-width band (no avatar) rather than a speech bubble.
|
|
1954
|
+
*/
|
|
1955
|
+
.qt-chat-composer-established-fact .qt-chat-composer-input {
|
|
1956
|
+
border-color: var(--color-ring);
|
|
1957
|
+
box-shadow: inset 0 0 0 1px var(--color-ring);
|
|
1958
|
+
background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
/* The ribbon sits on whatever the theme paints the speaker's bubble, so it
|
|
1962
|
+
takes the bubble's own text colour (every theme pairs those) and stands
|
|
1963
|
+
apart by weight and small caps rather than by a hue of its own. */
|
|
1964
|
+
.qt-chat-message-established-fact {
|
|
1965
|
+
font-size: 0.75rem;
|
|
1966
|
+
font-weight: 600;
|
|
1967
|
+
font-variant-caps: all-small-caps;
|
|
1968
|
+
letter-spacing: 0.04em;
|
|
1969
|
+
color: inherit;
|
|
1970
|
+
margin-bottom: 0.25rem;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
.qt-chat-system-bar.qt-chat-established-fact,
|
|
1974
|
+
.qt-chat-announcement-chip.qt-chat-established-fact {
|
|
1975
|
+
border-left-width: 3px;
|
|
1976
|
+
border-left-color: var(--color-ring);
|
|
1977
|
+
padding-left: 0.75rem;
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
.qt-chat-established-fact-row {
|
|
1981
|
+
width: 100%;
|
|
1982
|
+
max-width: none;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.qt-chat-established-fact-band {
|
|
1986
|
+
width: 100%;
|
|
1987
|
+
background: var(--qt-alert-info-bg);
|
|
1988
|
+
border: 1px solid var(--qt-alert-info-border);
|
|
1989
|
+
border-left: 3px solid var(--color-ring);
|
|
1990
|
+
box-shadow: none;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
/* The toggle that arms Deus Ex Machina, seated in the corner of the composer's
|
|
1994
|
+
"speaking as" portrait. A small frosted tile at rest; armed, it wears the
|
|
1995
|
+
composer frame's own ring and tint so the two read as one state. */
|
|
1996
|
+
.qt-chat-established-fact-toggle {
|
|
1997
|
+
display: inline-flex;
|
|
1998
|
+
align-items: center;
|
|
1999
|
+
justify-content: center;
|
|
2000
|
+
width: 1.625rem;
|
|
2001
|
+
height: 1.625rem;
|
|
2002
|
+
padding: 0;
|
|
2003
|
+
border: 1px solid var(--color-border);
|
|
2004
|
+
border-radius: var(--radius-sm);
|
|
2005
|
+
background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
|
|
2006
|
+
color: var(--color-foreground);
|
|
2007
|
+
cursor: pointer;
|
|
2008
|
+
opacity: 0.85;
|
|
2009
|
+
transition: opacity 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
.qt-chat-established-fact-toggle:hover,
|
|
2013
|
+
.qt-chat-established-fact-toggle:focus-visible {
|
|
2014
|
+
opacity: 1;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
.qt-chat-established-fact-toggle:focus-visible {
|
|
2018
|
+
outline: 2px solid var(--color-ring);
|
|
2019
|
+
outline-offset: 1px;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
.qt-chat-established-fact-toggle[aria-pressed="true"] {
|
|
2023
|
+
opacity: 1;
|
|
2024
|
+
border-color: var(--color-ring);
|
|
2025
|
+
box-shadow: inset 0 0 0 1px var(--color-ring);
|
|
2026
|
+
background-image: linear-gradient(var(--qt-alert-info-bg), var(--qt-alert-info-bg));
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
.qt-chat-established-fact-toggle:disabled {
|
|
2030
|
+
cursor: not-allowed;
|
|
2031
|
+
opacity: 0.5;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
1939
2034
|
/**
|
|
1940
2035
|
* Silent message — inner thoughts and actions from character in silent mode.
|
|
1941
2036
|
* Distinguished from whispers by a dotted border (vs dashed) and sage/teal tones.
|