File tree Expand file tree Collapse file tree 3 files changed +38
-7
lines changed Expand file tree Collapse file tree 3 files changed +38
-7
lines changed Original file line number Diff line number Diff line change 34
34
35
35
.reveal .r-vstack {
36
36
flex-direction : column ;
37
+ align-items : center ;
38
+ justify-content : center ;
37
39
}
38
40
39
41
.reveal .r-hstack {
40
42
flex-direction : row ;
41
- }
42
-
43
- .reveal .items-center {
44
43
align-items : center ;
44
+ justify-content : center ;
45
45
}
46
46
47
- .reveal .justify-center {
48
- justify-content : center ;
49
- }
47
+ // Naming based on tailwindcss
48
+ .reveal .items-stretch { align-items : stretch ; }
49
+ .reveal .items-start { align-items : flex-start ; }
50
+ .reveal .items-center { align-items : center ; }
51
+ .reveal .items-end { align-items : flex-end ; }
52
+
53
+ .reveal .justify-between { justify-content : space-between ; }
54
+ .reveal .justify-around { justify-content : space-around ; }
55
+ .reveal .justify-start { justify-content : flex-start ; }
56
+ .reveal .justify-center { justify-content : center ; }
57
+ .reveal .justify-end { justify-content : flex-end ; }
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ <h2>Layout Helper Examples</h2>
24
24
< ul >
25
25
< li > < a href ="#/stretch "> Stretch</ a > </ li >
26
26
< li > < a href ="#/stack "> Stack</ a > </ li >
27
+ < li > < a href ="#/hstack "> HStack</ a > </ li >
28
+ < li > < a href ="#/vstack "> VStack</ a > </ li >
27
29
</ ul >
28
30
</ section >
29
31
@@ -74,6 +76,27 @@ <h2>Stack Example</h2>
74
76
</ div >
75
77
</ section >
76
78
79
+ < section id ="hstack ">
80
+ < h2 > HStack</ h2 >
81
+ < p > Stacks multiple elements horizontally.</ p >
82
+ < pre > < code class ="html " data-trim data-line-numbers >
83
+ < div class ="r-hstack ">
84
+ <img width="450" height="300" src="...">
85
+ <img width="300" height="450" src="...">
86
+ <img width="400" height="400" src="...">
87
+ </ div >
88
+ </ code > </ pre >
89
+ </ section >
90
+
91
+ < section data-auto-animate >
92
+ < h2 > HStack Example</ h2 >
93
+ < div class ="r-hstack ">
94
+ < p style ="padding: 0.50em; background: #eee; margin: 0.25em "> One</ p >
95
+ < p style ="padding: 0.75em; background: #eee; margin: 0.25em "> Two</ p >
96
+ < p style ="padding: 1.00em; background: #eee; margin: 0.25em "> Three</ p >
97
+ </ div >
98
+ </ section >
99
+
77
100
</ div >
78
101
79
102
</ div >
You can’t perform that action at this time.
0 commit comments