forked from TylerAHolden/react-spring-bottom-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
44 lines (40 loc) · 861 Bytes
/
style.css
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
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
html,
body {
@apply font-body overscroll-y-none;
}
}
/* Bottom Sheet styling used in the docs */
@layer base {
:root {
--rsbs-backdrop-bg: rgba(15, 23, 42, 0.7);
}
}
.is-window {
--rsbs-max-w: 640px;
--rsbs-ml: auto;
--rsbs-mr: auto;
@screen sm {
& [data-rsbs-overlay] {
--rsbs-overlay-rounded: 16px;
}
}
}
.is-iframe {
--rsbs-ml: 0px;
--rsbs-mr: 0px;
/* the bottom sheet doesn't need display cutout paddings when in the iframe */
& [data-rsbs-has-footer='false'] [data-rsbs-scroll] {
padding-bottom: 0px !important;
}
& [data-rsbs-footer] {
padding-bottom: 16px !important;
}
}
/* Used by things like the "Close example" links that are only needed when not in the iframe */
.is-iframe .only-window {
display: none;
}