Skip to content

Commit

Permalink
Merge pull request #72 from SlateFoundation/develop
Browse files Browse the repository at this point in the history
Release: slate v2.1.10
  • Loading branch information
themightychris authored Oct 2, 2016
2 parents df66537 + c22e791 commit 3e15264
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
5 changes: 3 additions & 2 deletions html-templates/includes/site.header-bottom.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
{* TODO: replace with VFS-based contentBlocks engine *}

{$heroNode = Site::resolvePath('content-blocks/about/short.md')}
{$heroMarkdown = $heroNode->RealPath|file_get_contents|trim}

{if $heroNode}
{if $heroMarkdown}
<div class="inner hero-ct">
<div class="hero-text">
{$heroNode->RealPath|file_get_contents|markdown}
{$heroMarkdown|markdown}
</div>
</div>
{/if}
28 changes: 15 additions & 13 deletions site-root/sass/slate/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ body {
-webkit-font-smoothing: subpixel-antialiased;
}

.site.header {
background-image: image-url('header.jpg');
background-size: cover;
background-position: top;
position: relative;

&.reveal-hero {
height: 560px;
@if $hero-header-image {
.site.header {
background-image: image-url('header.jpg');
background-size: cover;
background-position: top;
position: relative;

&.reveal-hero {
height: 560px;
}
}
}

Expand Down Expand Up @@ -84,29 +86,29 @@ body {
&.has-image {
background-color: #444;
border-top: 2px solid #444;

.footer-info {
background: rgba(white, .9);
float: right;
padding: 2em 1.5em;
width: 250px;
}

> .inner {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
padding: 0;
}

address {
display: inline-block;
}

small {
clear: both;
display: block;
margin: 1em 0 0;
}
}
}
}
2 changes: 2 additions & 0 deletions site-root/sass/slate/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ $heading-font: Sanchez, Lato, Rockwell, 'Rockwell Std', Georgia, serif !default

$omnibar-height: 2.75em;

$hero-header-image: image-url('header.jpg') !default;

// button colors
$button-color: mix(#dfdfdf, $accent-color, 95%) !default;
$destructive-color: #ff332e !default;

0 comments on commit 3e15264

Please sign in to comment.