Skip to content

Commit f2e4442

Browse files
committed
Slightly nicer style for row/column in ui-demo
1 parent 80b175b commit f2e4442

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/ui-demo.eve

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ search
6666
container = [#demo name: demo]
6767
commit
6868
container <- [children:
69-
[#ui/row #demo-spaced demo | children:
69+
[#ui/row #demo-spaced #demo-centered demo | children:
7070
[#html/div #demo-square demo sort: 1]
7171
[#html/div #demo-square demo sort: 2]
7272
[#html/div #demo-square demo sort: 3]]]
@@ -80,7 +80,7 @@ search
8080
container = [#demo name: demo]
8181
commit
8282
container <- [children:
83-
[#ui/column #demo-spaced demo | children:
83+
[#ui/column #demo-spaced #demo-centered demo | children:
8484
[#html/div #demo-square demo sort: 1]
8585
[#html/div #demo-square demo sort: 2]
8686
[#html/div #demo-square demo sort: 3]]]
@@ -261,8 +261,10 @@ commit
261261
.demo > .ui-row + .ui-row,
262262
.variant-matrix > .ui-row + .ui-row { margin-top: 10px; }
263263
.variant-matrix + .variant-matrix { margin-top: 10px; }
264+
264265
.ui-row.demo-spaced > * + * { margin-left: 10px; }
265266
.ui-column.demo-spaced > * + * { margin-top: 10px; }
267+
.demo-centered { flex: 1; align-items: center; justify-content: center }
266268

267269
.demo-square { width: 50px; height: 50px; background: rgb(95, 211, 247); }
268270
"]

0 commit comments

Comments
 (0)