|
1 | | -.pf-chatbot__code-modal-backdrop { |
2 | | - position: static; |
3 | | -} |
4 | | - |
5 | 1 | .pf-chatbot__code-modal { |
6 | | - --pf-v6-c-modal-box--BorderRadius: var(--pf-t--global--border--radius--medium); |
7 | | - position: fixed; |
8 | | - inset-block-end: var(--pf-t--global--spacer--800); // no associated semantic token |
9 | | - inset-inline-end: var(--pf-t--global--spacer--lg); |
10 | | - width: 30rem; |
11 | | - height: 70vh; |
12 | | - background-color: var(--pf-t--global--background--color--secondary--default); |
13 | | - |
14 | | - .pf-v6-c-modal-box__title { |
15 | | - --pf-v6-c-modal-box__title--FontSize: var(--pf-t--global--font--size--heading--h3); |
16 | | - } |
17 | 2 | .pf-v6-c-code-editor { |
18 | 3 | --pf-v6-c-code-editor__main--BackgroundColor: #1f1f1f; |
19 | 4 | --pf-v6-c-code-editor__main--BorderEndStartRadius: 0; |
|
26 | 11 | border-start-start-radius: var(--pf-t--global--border--radius--small); |
27 | 12 | border-start-end-radius: var(--pf-t--global--border--radius--small); |
28 | 13 | } |
| 14 | + .pf-chatbot__code-modal-body { |
| 15 | + gap: var(--pf-t--global--spacer--lg); |
| 16 | + } |
29 | 17 | .pf-chatbot__code-modal--controls > .pf-v6-c-code-editor__header { |
30 | 18 | flex-direction: row-reverse; |
31 | 19 | border-radius: var(--pf-t--global--border--radius--small); |
|
70 | 58 | .pf-v6-c-code-editor__header-main { |
71 | 59 | display: none; |
72 | 60 | } |
73 | | - .pf-v6-c-button.pf-m-primary.pf-m-block, |
74 | | - .pf-v6-c-button.pf-m-link.pf-m-block { |
75 | | - --pf-v6-c-button--FontWeight: 500; |
76 | | - } |
77 | | - .pf-v6-c-modal-box__close { |
78 | | - --pf-v6-c-modal-box__close--InsetBlockStart: 1.125rem; |
79 | | - } |
80 | | - .pf-chatbot__code-modal-body { |
81 | | - gap: var(--pf-t--global--spacer--lg); |
82 | | - } |
83 | | - .pf-v6-c-modal-box__footer { |
84 | | - padding-block-start: var(--pf-t--global--spacer--xl); |
85 | | - padding-block-end: var(--pf-t--global--spacer--xl); |
86 | | - } |
87 | | - .pf-v6-c-modal-box__header { |
88 | | - padding-block-end: var(--pf-t--global--spacer--lg); |
89 | | - } |
90 | 61 | .pf-chatbot__code-modal-file-details { |
91 | 62 | padding-inline-start: var(--pf-t--global--spacer--md); |
92 | 63 | } |
93 | 64 | } |
94 | 65 |
|
95 | | -// ============================================================================ |
96 | | -// Chatbot Display Mode - Fullscreen and Embedded |
97 | | -// ============================================================================ |
98 | | -@media screen and (max-width: 600px) { |
99 | | - .pf-chatbot__code-modal--embedded, |
100 | | - .pf-chatbot__code-modal--fullscreen { |
101 | | - inset-block-end: 0; |
102 | | - inset-inline-end: 0; |
103 | | - width: 100%; |
104 | | - height: 100%; |
105 | | - top: 50%; |
106 | | - left: 50%; |
107 | | - transform: translate(-50%, -50%); |
108 | | - } |
109 | | -} |
110 | | -@media screen and (min-width: 601px) { |
111 | | - .pf-chatbot__code-modal--embedded, |
112 | | - .pf-chatbot__code-modal--fullscreen { |
113 | | - inset-block-end: 0; |
114 | | - inset-inline-end: 0; |
115 | | - width: 50%; |
116 | | - height: fit-content; |
117 | | - top: 50%; |
118 | | - left: 50%; |
119 | | - transform: translate(-50%, -50%); |
120 | | - } |
121 | | -} |
122 | | - |
123 | | -// ============================================================================ |
124 | | -// Chatbot Display Mode - Default |
125 | | -// ============================================================================ |
126 | | -.pf-chatbot__code-modal--default { |
127 | | - box-shadow: unset; |
128 | | -} |
129 | | - |
130 | | -// ============================================================================ |
131 | | -// Chatbot Display Mode - Docked |
132 | | -// ============================================================================ |
133 | | -.pf-chatbot__code-modal--docked { |
134 | | - height: 100vh; |
135 | | - inset-block-end: 0; |
136 | | - inset-inline-end: 0; |
137 | | - border-radius: 0; |
138 | | - --pf-v6-c-modal-box--MaxHeight: 100vh; |
139 | | - box-shadow: unset; |
140 | | -} |
141 | | - |
142 | 66 | // ============================================================================ |
143 | 67 | // Dark theme |
144 | 68 | // ============================================================================ |
|
149 | 73 | --pf-v6-c-button--hover__icon--Color: #c7c7c7; |
150 | 74 | } |
151 | 75 | } |
152 | | - .pf-v6-c-modal-box.pf-chatbot__code-modal { |
153 | | - .pf-v6-c-modal-box__title { |
154 | | - color: #fff; |
155 | | - } |
156 | | - } |
157 | | -} |
158 | | - |
159 | | -// ============================================================================ |
160 | | -// Backdrop |
161 | | -// ============================================================================ |
162 | | -.pf-v6-c-backdrop.pf-chatbot__backdrop { |
163 | | - position: absolute; |
164 | 76 | } |
0 commit comments