Skip to content

Commit cc39fb5

Browse files
authored
Make Liveview's root divs transparent for layout purposes. (#6052)
1 parent 300cfb1 commit cc39fb5

File tree

1 file changed

+8
-0
lines changed
  • installer/templates/phx_assets

1 file changed

+8
-0
lines changed

installer/templates/phx_assets/app.css

+8
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22
@import "tailwindcss/components";
33
@import "tailwindcss/utilities";
44

5+
/*
6+
* Make LiveView wrapper divs transparent for layout.
7+
* This makes it possible to use LiveViews as flex children for example.
8+
*/
9+
10+
11+
[data-phx-root-id] { display: contents }
12+
513
/* This file is for your main application CSS */

0 commit comments

Comments
 (0)