Skip to content

Commit 2e1301b

Browse files
author
Matthieu Oger
committed
Tutorial layout: show promotion if present.
1 parent fd0e34c commit 2e1301b

File tree

5 files changed

+46
-4
lines changed

5 files changed

+46
-4
lines changed

_includes/promotion.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% if page.show_promotion != nil %}
2+
3+
<!-- BulletML for Unity promotion -->
4+
{% if page.show_promotion == 'bulletml-for-unity' %}
5+
<div class="promotion">
6+
We have created a plugin called <em>"BulletML for Unity"</em> which allows you to create fantastic patterns for your shooter. Interested? <a href="/work/bulletml-for-unity/">Read more here.</a>
7+
</div>
8+
{% endif %}
9+
10+
{% endif %}

_layouts/tutorial.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ <h3 class="entry__subtitle">
114114
</div>
115115
<!-- end pagination -->
116116

117+
<!-- start promotion -->
118+
{% include promotion.html %}
119+
<!-- end promotion -->
120+
117121
</div>
118122

119123
<!-- reduced footer -->

_sources/pixelnest.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,5 @@ li {
173173
@import "tutorial";
174174
@import "legal";
175175
@import "fusionads";
176+
@import "promotion";
176177
@import "ie";

_sources/promotion.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// -------------------------------------------------------
2+
// Promotion.
3+
// -------------------------------------------------------
4+
5+
.promotion {
6+
margin-top: 60px;
7+
padding: 15px;
8+
background: #f3f3f3;
9+
border: 1px solid #d6d6d6;
10+
border-radius: 10px;
11+
12+
color: #5f5f5f;
13+
font-size: 0.7em;
14+
line-height: 1.4em;
15+
16+
a { @extend %link; }
17+
}

static/css/pixelnest.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
zoom: 1; }
2424

2525
.page-content p a, .page-content ul a,
26-
.page-content ol a, .home__aside li a, .card__title a, .entry__title a, .entry__content a, .contacts li a, .founder__links li a, .pager a, .archives a, .tutorial .page-header a, .ie .logo {
26+
.page-content ol a, .home__aside li a, .card__title a, .entry__title a, .entry__content a, .contacts li a, .founder__links li a, .pager a, .archives a, .tutorial .page-header a, .promotion a, .ie .logo {
2727
color: #00a9e0;
2828
text-decoration: none; }
2929
.page-content p a:hover, .page-content ul a:hover,
30-
.page-content ol a:hover, .home__aside li a:hover, .card__title a:hover, .entry__title a:hover, .entry__content a:hover, .contacts li a:hover, .founder__links li a:hover, .pager a:hover, .archives a:hover, .tutorial .page-header a:hover, .ie .logo:hover {
30+
.page-content ol a:hover, .home__aside li a:hover, .card__title a:hover, .entry__title a:hover, .entry__content a:hover, .contacts li a:hover, .founder__links li a:hover, .pager a:hover, .archives a:hover, .tutorial .page-header a:hover, .promotion a:hover, .ie .logo:hover {
3131
text-decoration: underline; }
3232
.page-content p a:active, .page-content ul a:active,
33-
.page-content ol a:active, .home__aside li a:active, .card__title a:active, .entry__title a:active, .entry__content a:active, .contacts li a:active, .founder__links li a:active, .pager a:active, .archives a:active, .tutorial .page-header a:active, .ie .logo:active {
33+
.page-content ol a:active, .home__aside li a:active, .card__title a:active, .entry__title a:active, .entry__content a:active, .contacts li a:active, .founder__links li a:active, .pager a:active, .archives a:active, .tutorial .page-header a:active, .promotion a:active, .ie .logo:active {
3434
color: #98c73d; }
3535
.page-content p a:focus, .page-content ul a:focus,
36-
.page-content ol a:focus, .home__aside li a:focus, .card__title a:focus, .entry__title a:focus, .entry__content a:focus, .contacts li a:focus, .founder__links li a:focus, .pager a:focus, .archives a:focus, .tutorial .page-header a:focus, .ie .logo:focus {
36+
.page-content ol a:focus, .home__aside li a:focus, .card__title a:focus, .entry__title a:focus, .entry__content a:focus, .contacts li a:focus, .founder__links li a:focus, .pager a:focus, .archives a:focus, .tutorial .page-header a:focus, .promotion a:focus, .ie .logo:focus {
3737
color: #98c73d; }
3838

3939
html, body {
@@ -761,6 +761,16 @@ li {
761761
margin-top: 20px;
762762
text-align: center; }
763763

764+
.promotion {
765+
margin-top: 60px;
766+
padding: 15px;
767+
background: #f3f3f3;
768+
border: 1px solid #d6d6d6;
769+
border-radius: 10px;
770+
color: #5f5f5f;
771+
font-size: 0.7em;
772+
line-height: 1.4em; }
773+
764774
/*
765775
* Dirty fixes for IE version 7 and 8. Not IE6, get away.
766776
* The plan is not to make the site beautiful, but **readable**.

0 commit comments

Comments
 (0)