Skip to content

Commit a9d3444

Browse files
committed
Less specific CSS selector
Hopefully this doesn't mess up the GUI on pages with general selectors. It is required to have 'ChatGPT apps' work though.
1 parent da73673 commit a9d3444

File tree

1 file changed

+19
-0
lines changed
  • backend/files/system/openai/front.files/chat

1 file changed

+19
-0
lines changed

backend/files/system/openai/front.files/chat/common.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88
/*
99
* Resetting all CSS values to make sure site's CSS doesn't interfere with chatbot UI.
1010
*/
11+
.ainiro,
12+
.ainiro * {
13+
all: initial;
14+
}
15+
16+
.hljs_ignore,
17+
.hljs_ignore * {
18+
all: revert;
19+
}
20+
21+
/*
22+
If the above doesn't work, there might be too specific selectors on the page where
23+
the chatbot is embedded, at which point the following might work:
24+
1125
html>body.ainiro_bdy>button.ainiro,
1226
html>body.ainiro_bdy>div.ainiro * {
1327
all: initial;
@@ -18,8 +32,13 @@ html>body.ainiro_bdy>div.ainiro .hljs_ignore * {
1832
all: revert;
1933
}
2034
35+
*/
36+
2137
/*
2238
* Re-applying some sane defaults again.
39+
*
40+
* NOTICE!
41+
* Extreme "specificity" to avoid CSS on page from overriding things.
2342
*/
2443
html>body.ainiro_bdy>div.ainiro div {
2544
display: block !important;

0 commit comments

Comments
 (0)