-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change example, style, NEXT_SECTION behavior
NEXT_SECTION paragraph will be deleted and replaced by a <nav> which contains the expected <ul> with links to the various sections to jump to. The next section block has been themed. Change style and typography (css).
- Loading branch information
Lily Lemmer
committed
Mar 27, 2016
1 parent
93a5fe4
commit 77b8e42
Showing
10 changed files
with
253 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.2.0/highlight.min.js"> | ||
</script> | ||
<link href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.2.0/styles/default.min.css" rel="stylesheet"/> | ||
<style> | ||
/* COLORS | ||
* | ||
* Slate Blue: #52656B | ||
* Pink: #FF3B77 | ||
* Green: #CDFF00 | ||
* White: #fff | ||
* Khaki: #B8B89F | ||
*/ | ||
|
||
@import url(https://fonts.googleapis.com/css?family=Yeseva+One); | ||
@import url(https://fonts.googleapis.com/css?family=Merriweather+Sans); | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
position: relative; | ||
} | ||
|
||
body { | ||
color: #000; | ||
background-color: #fff; | ||
font: 400 32px/1.5 'Merriweather Sans', sans-serif; /* total row height is 48px */ | ||
height: 100vh; | ||
width: 100vw; | ||
perspective: 600; | ||
} | ||
|
||
a:link, | ||
a:visited { | ||
color: #ff3b77; | ||
} | ||
|
||
.next:visited, | ||
.next { | ||
display: inline-block; | ||
background-color: #cdff00; | ||
color: #000; | ||
text-align: center; | ||
padding: 0.75rem 20px 0.75rem; | ||
border-radius: 4px; | ||
box-shadow: 0 5px 0 #000; | ||
margin: 3rem 0 1.5rem 0; | ||
font-weight: bold; | ||
text-decoration: none; | ||
} | ||
|
||
.progress { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
padding: 1.5rem 60px; | ||
background-color: #b8b89f; | ||
} | ||
|
||
section { | ||
background: #fff; | ||
padding: 3rem; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100vh; | ||
width: 100vw; | ||
overflow-y: scroll; | ||
} | ||
|
||
section h1 { | ||
color: #52656B; | ||
font-size: 6rem; | ||
font-family: "Yevesa One", cursive; | ||
font-weight: bold; | ||
line-height: 1; | ||
margin-bottom: 1.5rem; | ||
} | ||
|
||
section p { | ||
margin-top: 1.5rem; | ||
} | ||
|
||
section ul { | ||
margin: 1.5rem 0 1.5rem 3rem; | ||
} | ||
|
||
section + section { | ||
visibility: hidden; | ||
opacity: 0; | ||
transition: all 0.5s; | ||
} | ||
|
||
section:target { | ||
visibility: visible; | ||
opacity: 1; | ||
transform-style: preserve-3d; | ||
animation: flip 0.5s; | ||
} | ||
|
||
@keyframes flip { | ||
from { transform: rotateY(180deg); } | ||
to { transform: rotateY(0deg); } | ||
} | ||
|
||
pre code { | ||
margin: 1.5rem 0; | ||
} | ||
</style> | ||
<section id="introduction"> | ||
<progress max="3" value="1"> | ||
</progress> | ||
<h1> | ||
It was a dark and rainy night... | ||
</h1> | ||
<p> | ||
It is dark, you're walking the streets... | ||
</p> | ||
<p> | ||
NEXT_SECTION: | ||
</p> | ||
<ul> | ||
<li> | ||
<a href="#walk_down_alleyway"> | ||
walk_down_alleyway | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#head_to_coffee_shop"> | ||
head_to_coffee_shop | ||
</a> | ||
</li> | ||
</ul> | ||
<a class="next" href="#walk_down_alleyway"> | ||
Next Section | ||
</a> | ||
</section> | ||
<section id="walk_down_alleyway"> | ||
<progress max="3" value="2"> | ||
</progress> | ||
<h1> | ||
Walk down alleyway | ||
</h1> | ||
<p> | ||
Just an alleyway... guess I'll go to the coffee shop! | ||
</p> | ||
<a class="next" href="#head_to_coffee_shop"> | ||
Next Section | ||
</a> | ||
</section> | ||
<section id="head_to_coffee_shop"> | ||
<progress max="3" value="3"> | ||
</progress> | ||
<h1> | ||
Coffee Shop | ||
</h1> | ||
<p> | ||
Ah, relaxing cup o' joe! | ||
</p> | ||
<p> | ||
La fin! | ||
</p> | ||
</section> | ||
<script> | ||
hljs.initHighlightingOnLoad(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
getting-started.md | ||
notes.md | ||
demo.md | ||
introduction.md | ||
walk_down_alleyway.md | ||
head_to_coffee_shop.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Coffee Shop | ||
|
||
Ah, relaxing cup o' joe! | ||
|
||
La fin! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# It was a dark and rainy night... | ||
|
||
It is dark, you're walking the streets... | ||
|
||
NEXT_SECTION: | ||
|
||
* walk_down_alleyway.md | ||
* head_to_coffee_shop.md |
Oops, something went wrong.