Skip to content

Commit 49c3fe8

Browse files
committed
docs: prevent css purging used classes
1 parent 6b62559 commit 49c3fe8

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

docs/style.css

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,30 @@
1515
--rsbs-backdrop-bg: rgba(15, 23, 42, 0.7);
1616
}
1717
}
18-
@layer components {
19-
.is-window {
20-
--rsbs-max-w: 640px;
21-
--rsbs-ml: auto;
22-
--rsbs-mr: auto;
23-
@screen sm {
24-
& [data-rsbs-overlay] {
25-
--rsbs-overlay-rounded: 16px;
26-
}
18+
19+
.is-window {
20+
--rsbs-max-w: 640px;
21+
--rsbs-ml: auto;
22+
--rsbs-mr: auto;
23+
@screen sm {
24+
& [data-rsbs-overlay] {
25+
--rsbs-overlay-rounded: 16px;
2726
}
2827
}
29-
.is-iframe {
30-
--rsbs-ml: 0px;
31-
--rsbs-mr: 0px;
28+
}
29+
.is-iframe {
30+
--rsbs-ml: 0px;
31+
--rsbs-mr: 0px;
3232

33-
/* the bottom sheet doesn't need display cutout paddings when in the iframe */
34-
& [data-rsbs-has-footer='false'] [data-rsbs-scroll] {
35-
padding-bottom: 0px !important;
36-
}
37-
& [data-rsbs-footer] {
38-
padding-bottom: 16px !important;
39-
}
33+
/* the bottom sheet doesn't need display cutout paddings when in the iframe */
34+
& [data-rsbs-has-footer='false'] [data-rsbs-scroll] {
35+
padding-bottom: 0px !important;
4036
}
41-
/* Used by things like the "Close example" links that are only needed when not in the iframe */
42-
.is-iframe .only-window {
43-
display: none;
37+
& [data-rsbs-footer] {
38+
padding-bottom: 16px !important;
4439
}
4540
}
41+
/* Used by things like the "Close example" links that are only needed when not in the iframe */
42+
.is-iframe .only-window {
43+
display: none;
44+
}

0 commit comments

Comments
 (0)