From c11737ff7309e7fdc547f641b48c5b0ca836eb63 Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Fri, 1 May 2015 06:04:23 -0700 Subject: [PATCH] Standard case for API pages --- public/_includes/_hero.jade | 8 +++++++- public/resources/css/module/_hero.scss | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/public/_includes/_hero.jade b/public/_includes/_hero.jade index 691d3dc38c..d6385d7e32 100644 --- a/public/_includes/_hero.jade +++ b/public/_includes/_hero.jade @@ -1,5 +1,11 @@ +textFormat = '' + +if current.path[4] && current.path[3] == 'api' + textFormat = 'is-standard-case' + + header(class="hero background-sky") - h1.hero-title.text-display-1 #{title} + h1(class="hero-title text-display-1 #{textFormat}") #{title} if subtitle h2.hero-subtitle.text-subhead #{subtitle} diff --git a/public/resources/css/module/_hero.scss b/public/resources/css/module/_hero.scss index 6f695e5cba..dca1bf24dc 100644 --- a/public/resources/css/module/_hero.scss +++ b/public/resources/css/module/_hero.scss @@ -28,6 +28,10 @@ $hero-padding: $unit * 2; margin: ($unit * 9) 0px 0px ($unit * 10); opacity: .87; + &.is-standard-case { + text-transform: none; + } + @media handheld and (max-width: $phone-breakpoint), screen and (max-device-width: $phone-breakpoint), screen and (max-width: $tablet-breakpoint) {