From 14992ea3e99affd5b32b14327e539193e428c800 Mon Sep 17 00:00:00 2001 From: Oscar Cortez Date: Tue, 14 Jul 2015 15:42:11 -0600 Subject: [PATCH] Create highlight post layout for use in the templates only include in the site settings post_type: highlight for now this is static --- _config.yml | 1 + _includes/highlight_post.html | 26 +++++++++++++++++ _layouts/default.html | 3 ++ _sass/_layout.scss | 54 +++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 _includes/highlight_post.html diff --git a/_config.yml b/_config.yml index 060a7d8..319b318 100644 --- a/_config.yml +++ b/_config.yml @@ -12,5 +12,6 @@ github_username: jekyll # Layout settings header_type: fixed +post_type: highlight # Build settings markdown: kramdown diff --git a/_includes/highlight_post.html b/_includes/highlight_post.html new file mode 100644 index 0000000..9333b1c --- /dev/null +++ b/_includes/highlight_post.html @@ -0,0 +1,26 @@ +
+ +
+ play_circle_filled +
+ +
+
+

Features

+ Dolore ex deserunt aute fugiat aute nulla ea sunt aliqua nisi cupidatat eu. Nostrud in laboris labore nisi amet do dolor eu fugiat consectetur elit cillum esse. +
+ +
+ + + + +
diff --git a/_layouts/default.html b/_layouts/default.html index ed3dfb6..ee8d852 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,6 +15,9 @@
+ {% if site.post_type == 'highlight' %} + {% include highlight_post.html %} + {% endif %} {{ content }}
{% include footer.html %} diff --git a/_sass/_layout.scss b/_sass/_layout.scss index 53800f5..b43d45e 100644 --- a/_sass/_layout.scss +++ b/_sass/_layout.scss @@ -13,3 +13,57 @@ color: #fff; } +.section-highlight { + position: relative; + + .mdl-card__supporting-text { + margin: 40px; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + padding: 0; + color: inherit; + width: calc(100% - 80px); + } + + .mdl-card__actions { + border-top: 1px solid rgba(0, 0, 0, 0.12); + margin: 0; + padding: 4px 40px; + color: inherit; + + a { + color: #00BCD4; + margin: 0; + } + } + + header { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + min-height: 200px; + + .material-icons { + font-size: 3rem; + } + } + + button { + position: absolute; + z-index: 99; + top: 8px; + right: 8px; + } + +}