Skip to content

Commit 60c68c4

Browse files
committed
docs(popover-examples): create popover.css
1 parent 1ad371f commit 60c68c4

File tree

1 file changed

+37
-0
lines changed
  • apps/website/src/routes/docs/headless/popover/snippets

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
:root {
2+
--select-width: 12rem;
3+
}
4+
5+
.popover-trigger {
6+
border-radius: var(--border-radius);
7+
border: 2px dotted hsla(var(--primary));
8+
background-color: hsl(var(--popover));
9+
color: hsl(var(--foreground));
10+
padding: 0.5rem;
11+
margin-bottom: 0.5rem;
12+
}
13+
14+
.popover {
15+
border-radius: var(--border-radius);
16+
border: 2px dotted hsla(var(--primary));
17+
background-color: hsl(var(--popover));
18+
color: hsl(var(--foreground));
19+
padding: 0.5rem;
20+
box-shadow:
21+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
22+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
23+
transition:
24+
opacity 0.5s,
25+
display 0.5s,
26+
overlay 0.5s;
27+
transition-behavior: allow-discrete;
28+
opacity: 0;
29+
}
30+
31+
.popover-showing {
32+
opacity: 1;
33+
}
34+
35+
.popover-closing {
36+
opacity: 0;
37+
}

0 commit comments

Comments
 (0)