Add kuiSubduedText override. (#10988) (#10989)

This commit is contained in:
CJ Cenizal 2017-03-31 15:16:58 -07:00 committed by GitHub
parent 562011647f
commit 9a6b3a3c10
7 changed files with 38 additions and 3 deletions

View file

@ -28,3 +28,7 @@
line-height: $lineHeight;
font-size: $fontSize;
}
.kuiSubduedText {
color: $subduedFontColor !important;
}

View file

@ -2308,6 +2308,9 @@ body {
line-height: 1.5;
font-size: 14px; }
.kuiSubduedText {
color: #9fa3a7 !important; }
.kuiVerticalRhythm + .kuiVerticalRhythm {
margin-top: 10px; }

View file

@ -1,3 +1,3 @@
<h2 class="kuiSubTitle">
Chapter 1: The River on a Cold Morning
SubTitle
</h2>

View file

@ -0,0 +1,11 @@
<h1 class="kuiTitle kuiSubduedText">
Subdued Title
</h1>
<h2 class="kuiSubTitle kuiSubduedText">
Subdued SubTitle
</h2>
<p class="kuiText kuiSubduedText">
Subdued Text
</p>

View file

@ -1,3 +1,3 @@
<p class="kuiText">
That was the winter the Sager froze over.
Text
</p>

View file

@ -1,3 +1,3 @@
<h1 class="kuiTitle">
The Great American Novel
Title
</h1>

View file

@ -16,6 +16,7 @@ import {
const titleHtml = require('./title.html');
const subTitleHtml = require('./sub_title.html');
const textHtml = require('./text.html');
const subduedHtml = require('./subdued_type.html');
export default props => (
<GuidePage title={props.route.name}>
@ -66,5 +67,21 @@ export default props => (
html={textHtml}
/>
</GuideSection>
<GuideSection
title="Subdued type"
source={[{
type: GuideSectionTypes.HTML,
code: subduedHtml,
}]}
>
<GuideText>
You can drop type a half-step down in the type hierarchy.
</GuideText>
<GuideDemo
html={subduedHtml}
/>
</GuideSection>
</GuidePage>
);