-
Notifications
You must be signed in to change notification settings - Fork 236
Expand file tree
/
Copy pathplayground.css
More file actions
56 lines (50 loc) · 2.04 KB
/
Copy pathplayground.css
File metadata and controls
56 lines (50 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@media (min-width: 1024px) {
html[data-current-path="/assistant/widget"] #content-area {
position: relative;
max-width: 1800px !important;
margin-inline: auto;
/* Percentage padding resolves against the parent, so cap it at half of the 1800px max-width */
padding-right: calc(min(50%, 900px) + 1rem);
}
html[data-current-path="/assistant/widget"] #content {
position: static;
}
html[data-current-path="/assistant/widget"] [data-assistant-preview] {
position: absolute;
inset: 0 1.5rem 0 auto;
width: calc(50% - 2.5rem);
}
}
html[data-current-path="/assistant/widget"]
div:has(> iframe[title="Live Assistant Widget preview"]) {
min-height: 0;
flex: 1 1 0%;
}
html[data-current-path="/assistant/widget"]
iframe[title="Live Assistant Widget preview"] {
height: 100%;
}
/* The widget playground embeds /assistant/widget-preview in its preview
iframe. The suffix match keeps localized paths covered. Hide every piece of
docs chrome so only the widget renders, and keep the document transparent
so the playground card provides the visible frame. */
html[data-current-path$="/assistant/widget-preview"] #navbar,
html[data-current-path$="/assistant/widget-preview"] #navbar-transition,
html[data-current-path$="/assistant/widget-preview"] #mobile-nav,
html[data-current-path$="/assistant/widget-preview"] #banner,
html[data-current-path$="/assistant/widget-preview"] #sidebar,
html[data-current-path$="/assistant/widget-preview"] #footer,
html[data-current-path$="/assistant/widget-preview"] #assistant-entry,
html[data-current-path$="/assistant/widget-preview"] #assistant-entry-mobile,
html[data-current-path$="/assistant/widget-preview"] [aria-label="Preview Widget"],
html[data-current-path$="/assistant/widget-preview"] [aria-label="Preview Widget Menu"] {
display: none !important;
}
html[data-current-path$="/assistant/widget-preview"],
html[data-current-path$="/assistant/widget-preview"] body {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden !important;
background: transparent !important;
}