[mod] update example

This commit is contained in:
Laurent Peuch 2016-04-18 19:45:06 +02:00
parent a8c4a0f76f
commit d81fec847e
3 changed files with 328 additions and 124 deletions

View File

@ -23,7 +23,10 @@
<div class="picture-text-column">
<h1>Beautiful Title</h1>
<h2>pouet pouet</h2>
<div class="datetime">08 December 2015</div>
</div>
</div>
@ -31,25 +34,60 @@
<section class="bordered-picture baguette">
<div class="caption">
<a href="stuff.png ">
<img src="stuff.png">
</div>
</a>
</section>
<section class="bordered-picture baguette">
<div class="caption">
<a href="stuff.png data-caption="plop"">
<img src="stuff.png">
<div class="caption__overlay">
<h5 class="caption__overlay__title">plop</h5>
</div>
</div>
</a>
</section>
<section class="text">
« voici plein de blabla à rajouter et <b>ceci est du gras</b> et encore plein plein plein plein de text car je veux voir comment ça va wrapper car c'est important et il faut pas que j'oublie de mettre des margins en % sinon ça va pas le faire alala là ça devrait aller »
</section>
<section class="pictures-group baguette">
<div class="pictures-line">
<div class="picture">
<a href="stuff.png">
<div class="picture caption">
<a href="stuff.png" data-caption="test">
<img src="stuff-x600.png">
<div class="caption__overlay">
<h5 class="caption__overlay__title">test</h5>
</div>
</a>
</div>
@ -58,9 +96,15 @@
<div class="picture">
<a href="stuff.png">
<div class="picture caption">
<a href="stuff.png" data-caption="test">
<img src="stuff-x600.png">
<div class="caption__overlay">
<h5 class="caption__overlay__title">test</h5>
</div>
</a>
</div>
@ -69,9 +113,15 @@
<div class="picture">
<a href="stuff.png">
<div class="picture caption">
<a href="stuff.png" data-caption="test">
<img src="stuff-x600.png">
<div class="caption__overlay">
<h5 class="caption__overlay__title">test</h5>
</div>
</a>
</div>
@ -82,9 +132,11 @@
<div class="picture">
<div class="picture caption">
<a href="stuff.png" >
<img src="stuff-x600.png">
</a>
</div>
@ -93,9 +145,11 @@
<div class="picture">
<div class="picture caption">
<a href="stuff.png" >
<img src="stuff-x600.png">
</a>
</div>
@ -106,11 +160,14 @@
<section class="full-picture" style="background: transparent url('stuff.png') no-repeat scroll center top / cover;">
</section>
<div class="back-to-home">
<hr>
<a href="../">
@ -135,8 +192,13 @@
});
});
</script>
<footer>
<p>Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a></p>
</footer>
</body>
</html>

View File

@ -6,7 +6,6 @@
<link type="text/css" rel="stylesheet" href="static/css/fonts.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="static/css/style.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Example gallery</title>
@ -33,7 +32,7 @@
<div class="gallery-title">
<h2>my first gallery</h2>
<h3>some subtitle</h3>
<div class="gallery-datetime">08 December 2015</div>
</div>
</a>
@ -48,8 +47,12 @@
<p style="visibility: hidden">.</p>
<footer>
<p>Generated using <a href="https://github.com/psycojoker/prosopopee">Prosopopée</a> · content under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a> · atom logo by <a href="https://thenounproject.com/jjjon/">Jonathan Li</a> under <a href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a></p>
</footer>
</body>
</html>

View File

@ -8,6 +8,7 @@ body {
height: 100%;
width: 100%;
background-color: #FBFBFB;
color: black;
margin: 0;
}
@ -103,7 +104,6 @@ a {
line-height: 1.8em;
margin-left: 21%;
margin-right: 21%;
color: black;
}
.paragraph {
@ -112,7 +112,6 @@ a {
font-size: 1em;
margin-left: 21%;
margin-right: 21%;
color: #333;
}
.paragraph h2 {
@ -120,7 +119,6 @@ a {
font-weight: normal;
font-size: 2.5em;
text-transform: uppercase;
color: black;
line-height: 1.4em;
}
@ -148,7 +146,6 @@ footer {
.back-to-home hr {
width: 14%;
margin-top: 8em;
color: #DDD;
}
@ -197,3 +194,145 @@ footer a {
.gallery-header {
margin-bottom: 0;
}
.caption {
position: relative;
overflow: hidden;
}
.caption__media {
display: block;
min-width: 100%;
max-width: 100%;
height: auto;
}
.caption__overlay {
height: 20px;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 20px 0 30px 0;
color: white;
transform: translateY(-100%);
transition: transform .35s ease-out;
background: -moz-linear-gradient(top, rgba(0,0,0,0.85) 0%, transparent 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0,0,0,0.85)), color-stop(100%, transparent));
background: -webkit-linear-gradient(top, rgba(0,0,0,0.85) 0%, transparent 100%);
background: -o-linear-gradient(top, rgba(0,0,0,0.85) 0%, transparent 100%);
background: -ms-linear-gradient(top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.caption:hover .caption__overlay {
transform: translateY(0);
}
.caption h5 {
position: relative;
width: auto;
display: inline-block;
margin: 0 auto 10px auto;
font-size: 20px;
font-family: "adobe-garamond-pro", serif;
font-weight: normal;
font-style: italic;
padding: 2px 20px;
width: 100%;
text-align: center;
}
.bordered-picture .caption__overlay {
margin-left: 11.5%;
margin-right: 11.5%;
}
.center, .center-align {
text-align: center;
}
.share, .author {
text-align: center;
height: auto;
position: relative;
bottom: 0;
padding: 0 0 10px 0;
font-family: 'crimson', serif;
}
ul.icon {
padding: 0;
margin: 10px 0 0 0;
}
ul.icon li {
padding: 0;
list-style-type: none;
display:inline-block;
}
ul.icon a {
display: block;
float: left;
background: url(../img/social-share.png) no-repeat;
background-size: 196px 23px;
border: none;
}
ul.icon li, ul.icon a {
width: 32px;
height: 32px;
text-indent: -999999em;
overflow: hidden;
list-style-type: none;
display: inline-block;
}
a.twitter {
background-position: 5px 0 !important;
}
a.facebook {
background-position: -57px 0 !important;
}
a.pinterest {
background-position: -114px 0 !important;
}
a.google {
background-position: -172px 0 !important;
}
.author img.circle {
border-radius: 50%;
width: 80px;
}
.author {
padding-bottom: 7em;
}
.author-meta {
color: #ccc;
font-style: italic;
font-size: 19px;
}
.author h4 {
text-transform: uppercase;
}
.author .desc {
width: 350px;
margin: auto;
padding-bottom: 10px;
font-style: normal;
font-size: 14px;
line-height: normal;
color: #333;
}