Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c11737f

Browse files
committed
Standard case for API pages
1 parent bceb5ca commit c11737f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

public/_includes/_hero.jade

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
textFormat = ''
2+
3+
if current.path[4] && current.path[3] == 'api'
4+
textFormat = 'is-standard-case'
5+
6+
17
header(class="hero background-sky")
2-
h1.hero-title.text-display-1 #{title}
8+
h1(class="hero-title text-display-1 #{textFormat}") #{title}
39

410
if subtitle
511
h2.hero-subtitle.text-subhead #{subtitle}

public/resources/css/module/_hero.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ $hero-padding: $unit * 2;
2828
margin: ($unit * 9) 0px 0px ($unit * 10);
2929
opacity: .87;
3030

31+
&.is-standard-case {
32+
text-transform: none;
33+
}
34+
3135
@media handheld and (max-width: $phone-breakpoint),
3236
screen and (max-device-width: $phone-breakpoint),
3337
screen and (max-width: $tablet-breakpoint) {

0 commit comments

Comments
 (0)