|
9 | 9 | flex-direction: column; |
10 | 10 | width: 30rem; |
11 | 11 | height: 70vh; |
12 | | - background-color: var( |
13 | | - --pf-t--global--background--color--floating--secondary--default, |
14 | | - --pf-t--global--background--color--secondary--default |
15 | | - ); |
| 12 | + background-color: var(--pf-t--global--background--color--floating--secondary--default); |
16 | 13 | border-radius: var(--pf-t--global--border--radius--medium); |
17 | 14 | box-shadow: var(--pf-t--global--box-shadow--lg); |
18 | 15 | font-size: var(--pf-t--global--font--size--md); |
|
31 | 28 | opacity: 1; |
32 | 29 | transform: translateY(0); |
33 | 30 | } |
34 | | - // for high contrast support |
35 | | - border: var(--pf-t--global--border--width--high-contrast--regular) solid |
36 | | - var(--pf-t--global--border--color--high-contrast); |
| 31 | + |
| 32 | + border: var(--pf-t--global--border--width--regular) solid var(--pf-t--global--border--color--subtle); |
37 | 33 |
|
38 | 34 | // 32 rem is the width of the overlay chatbot plus the insets |
39 | 35 | // if the screen is smaller, we want to be 100% |
|
46 | 42 | @media screen and (max-height: 518px) { |
47 | 43 | overflow: auto; |
48 | 44 | } |
| 45 | + |
| 46 | + &:not(&--default) { |
| 47 | + background-color: var( |
| 48 | + --pf-t--global--background--color--glass--primary--default, |
| 49 | + var(--pf-t--global--background--color--secondary--default) |
| 50 | + ); |
| 51 | + } |
| 52 | +} |
| 53 | + |
| 54 | +:root:where(.pf-v6-theme-felt):not(.pf-v6-theme-glass) { |
| 55 | + .pf-chatbot.pf-chatbot--default { |
| 56 | + box-shadow: var(--pf-t--global--box-shadow--md); |
| 57 | + } |
49 | 58 | } |
50 | 59 |
|
51 | 60 | // ============================================================================ |
52 | 61 | // Chatbot Display Mode - Docked |
53 | 62 | // ============================================================================ |
54 | 63 | .pf-chatbot--docked { |
55 | | - // for high contrast support |
56 | 64 | border: unset; |
57 | | - border-left: var(--pf-t--global--border--width--high-contrast--regular) solid |
58 | | - var(--pf-t--global--border--color--high-contrast); |
| 65 | + border-left: var(--pf-t--global--border--width--regular) solid var(--pf-t--global--border--color--subtle); |
59 | 66 | inset-block-end: 0; |
60 | 67 | inset-inline-end: 0; |
61 | 68 | padding: 0; |
62 | 69 | height: 100%; |
63 | 70 | border-radius: 0; |
64 | | - box-shadow: var(--pf-t--global--box-shadow--lg--left); |
65 | 71 | overflow: inherit; |
66 | 72 |
|
| 73 | + @at-root :where(.pf-v6-theme-glass) & { |
| 74 | + border-left: var(--pf-t--global--border--width--glass--default) solid |
| 75 | + var(--pf-t--global--border--color--glass--default); |
| 76 | + box-shadow: var(--pf-t--global--box-shadow--md--left); |
| 77 | + backdrop-filter: var(--pf-t--global--background--filter--glass--blur--primary); |
| 78 | + } |
| 79 | + |
67 | 80 | // 30rem is the width of the docked chatbot |
68 | 81 | // if the screen is smaller, we want to be 100% |
69 | 82 | @media screen and (max-width: 30rem) { |
|
75 | 88 | // Chatbot Display Mode - Fullscreen |
76 | 89 | // ============================================================================ |
77 | 90 | .pf-chatbot--fullscreen { |
78 | | - background-color: var(--pf-t--global--background--color--secondary--default); |
79 | | - |
80 | | - // for high contrast support |
81 | 91 | border: unset; |
82 | 92 | inset-block-end: 0; |
83 | 93 | inset-inline-end: 0; |
|
86 | 96 | height: 100%; |
87 | 97 | border-radius: 0; |
88 | 98 | box-shadow: none; |
| 99 | + |
| 100 | + @at-root :where(.pf-v6-theme-glass) & { |
| 101 | + backdrop-filter: var(--pf-t--global--background--filter--glass--blur--primary); |
| 102 | + } |
89 | 103 | } |
90 | 104 |
|
91 | 105 | // ============================================================================ |
92 | 106 | // Chatbot Display Mode - Embedded |
93 | 107 | // ============================================================================ |
94 | 108 | .pf-chatbot--embedded { |
95 | | - background-color: var(--pf-t--global--background--color--secondary--default); |
96 | | - |
97 | | - // for high contrast support |
98 | | - border: unset; |
99 | 109 | position: static; |
100 | 110 | width: 100%; |
101 | 111 | min-height: 100%; |
102 | 112 | border-radius: 0; |
103 | | - box-shadow: none; |
| 113 | + box-shadow: var(--pf-t--global--box-shadow--lg); |
| 114 | + |
| 115 | + @at-root :where(.pf-v6-theme-glass) & { |
| 116 | + border: var(--pf-t--global--border--width--glass--default) solid var(--pf-t--global--border--color--glass--default); |
| 117 | + box-shadow: var(--pf-t--global--box-shadow--md); |
| 118 | + backdrop-filter: var(--pf-t--global--background--filter--glass--blur--primary); |
| 119 | + } |
104 | 120 | } |
105 | 121 |
|
106 | 122 | .pf-chatbot-container { |
|
143 | 159 | height: 100%; |
144 | 160 | border-radius: 0; |
145 | 161 | box-shadow: none; |
146 | | - border-color: var(--pf-t--global--border--color--default); |
| 162 | + border-color: var(--pf-t--global--border--color--subtle); |
147 | 163 |
|
148 | | - .pf-chatbot-container { |
149 | | - border-radius: var(--pf-t--global--border--radius--sharp); |
| 164 | + @at-root :where(.pf-v6-theme-glass) & { |
| 165 | + border: var(--pf-t--global--border--width--glass--default) solid var(--pf-t--global--border--color--glass--default); |
| 166 | + box-shadow: var(--pf-t--global--box-shadow--md); |
| 167 | + backdrop-filter: var(--pf-t--global--background--filter--glass--blur--primary); |
150 | 168 | } |
151 | 169 |
|
152 | | - @media screen and (min-width: 768px) { |
153 | | - // only want if drawer open - drawer closes/stops being inline on mobile |
154 | | - border-left: var(--pf-t--global--border--width--divider--default) solid; |
| 170 | + .pf-chatbot-container { |
| 171 | + border-radius: var(--pf-t--global--border--radius--sharp); |
155 | 172 | } |
156 | 173 | } |
157 | 174 |
|
158 | | -// for high contrast support |
159 | 175 | :root:where(.pf-v6-theme-high-contrast) { |
160 | 176 | .pf-chatbot--drawer { |
161 | 177 | border: unset; |
|
0 commit comments