Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Seales
Kubernetes Presentation
Commits
cd5161ff
Commit
cd5161ff
authored
May 20, 2020
by
Hakim El Hattab
Browse files
initial work for hstack and vstack
parent
f0b67ad6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
css/layout.scss
View file @
cd5161ff
...
@@ -34,16 +34,24 @@
...
@@ -34,16 +34,24 @@
.reveal
.r-vstack
{
.reveal
.r-vstack
{
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
}
.reveal
.r-hstack
{
.reveal
.r-hstack
{
flex-direction
:
row
;
flex-direction
:
row
;
}
.reveal
.items-center
{
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
}
.reveal
.justify-center
{
// Naming based on tailwindcss
justify-content
:
center
;
.reveal
.items-stretch
{
align-items
:
stretch
;
}
}
.reveal
.items-start
{
align-items
:
flex-start
;
}
\ No newline at end of file
.reveal
.items-center
{
align-items
:
center
;
}
.reveal
.items-end
{
align-items
:
flex-end
;
}
.reveal
.justify-between
{
justify-content
:
space-between
;
}
.reveal
.justify-around
{
justify-content
:
space-around
;
}
.reveal
.justify-start
{
justify-content
:
flex-start
;
}
.reveal
.justify-center
{
justify-content
:
center
;
}
.reveal
.justify-end
{
justify-content
:
flex-end
;
}
dist/reveal.css
View file @
cd5161ff
This diff is collapsed.
Click to expand it.
examples/layout-helpers.html
View file @
cd5161ff
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
<ul>
<ul>
<li><a
href=
"#/stretch"
>
Stretch
</a></li>
<li><a
href=
"#/stretch"
>
Stretch
</a></li>
<li><a
href=
"#/stack"
>
Stack
</a></li>
<li><a
href=
"#/stack"
>
Stack
</a></li>
<li><a
href=
"#/hstack"
>
HStack
</a></li>
<li><a
href=
"#/vstack"
>
VStack
</a></li>
</ul>
</ul>
</section>
</section>
...
@@ -74,6 +76,27 @@
...
@@ -74,6 +76,27 @@
</div>
</div>
</section>
</section>
<section
id=
"hstack"
>
<h2>
HStack
</h2>
<p>
Stacks multiple elements horizontally.
</p>
<pre><code
class=
"html"
data-trim
data-line-numbers
>
<div
class=
"r-hstack"
>
<
img width="450" height="300" src="..."
>
<
img width="300" height="450" src="..."
>
<
img width="400" height="400" src="..."
>
</div>
</code></pre>
</section>
<section
data-auto-animate
>
<h2>
HStack Example
</h2>
<div
class=
"r-hstack"
>
<p
style=
"padding: 0.50em; background: #eee; margin: 0.25em"
>
One
</p>
<p
style=
"padding: 0.75em; background: #eee; margin: 0.25em"
>
Two
</p>
<p
style=
"padding: 1.00em; background: #eee; margin: 0.25em"
>
Three
</p>
</div>
</section>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment