Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
ff35847f
Commit
ff35847f
authored
11 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
update example deck to use slide backgrounds (#453)
parent
0ce57f1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
index.html
+18
-9
18 additions, 9 deletions
index.html
with
18 additions
and
9 deletions
index.html
+
18
−
9
View file @
ff35847f
...
...
@@ -183,25 +183,34 @@
</section>
<section>
<section
data-state=
"alert"
>
<h2>
Global State
</h2>
<h2>
Global State
</h2>
<p>
Set
<code>
data-state="something"
</code>
on a slide and
<code>
"something"
</code>
will be added as a class to the document element when the slide is open. This lets you
apply broader style changes, like switching the background.
</p>
</section>
<section>
<section
data-background=
"#007777"
>
<h2>
Slide Backgrounds
</h2>
<p>
Set
<code>
data-state="something"
</code>
on a slide and
<code>
"something"
</code>
will be added as a class to the document element when the slide is open. This lets you
apply broader style changes, like switching the background.
Set
<code>
data-background="#007777"
</code>
on a slide to change the full page background to the given color. All CSS color formats are supported.
</p>
<a
href=
"#"
class=
"image navigate-down"
>
<img
width=
"178"
height=
"238"
src=
"https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png"
alt=
"Down arrow"
>
</a>
</section>
<section
data-state=
"blackout"
>
<h2>
"blackout"
</h2>
<section
data-background=
"https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif"
>
<h2>
Image Backgrounds
</h2>
<pre><code>
<
section data-background="image.png"
>
</code></pre>
<a
href=
"#"
class=
"image navigate-down"
>
<img
width=
"178"
height=
"238"
src=
"https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png"
alt=
"Down arrow"
>
</a>
</section>
<section
data-state=
"soothe"
>
<h2>
"soothe"
</h2>
<section
data-background=
"https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif"
data-background-repeat=
"repeat"
data-background-size=
"100px"
>
<h2>
Repeated Image Backgrounds
</h2>
<pre><code
style=
"word-wrap: break-word;"
>
<
section data-background="image.png" data-background-repeat="repeat" data-background-size="100px"
>
</code></pre>
<a
href=
"#"
class=
"image navigate-next"
>
<img
width=
"178"
height=
"238"
src=
"https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png"
alt=
"Up arrow"
style=
"-webkit-transform: rotate(-90deg);"
>
</a>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment