Skip to content

Commit

Permalink
Merge pull request #104 from newrelic/increase_font_size_for_intro_pa…
Browse files Browse the repository at this point in the history
…ragraph_in_reference_docs

Increase font size for component description in reference docs
  • Loading branch information
jerelmiller authored Jun 9, 2020
2 parents bbbb192 + cef99df commit 116c2b3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
6 changes: 2 additions & 4 deletions src/components/Intro.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.container p {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
.container {
composes: intro-text from global;
}
16 changes: 10 additions & 6 deletions src/components/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ body {
margin: 0;
font-size: 16px;
font-family: var(--primary-font-family);
color: var(--color-black);
color: var(--color-neutrals-700);
background-color: var(--color-white);
line-height: 1.2;
}
Expand All @@ -104,7 +104,6 @@ img {
p {
margin: 0;
margin-top: 8px;
color: var(--color-neutrals-700);
}

h1,
Expand Down Expand Up @@ -164,12 +163,17 @@ button,

ul {
padding-left: 30px;
font-size: 14px;
line-height: 22px;
color: var(--color-neutrals-700);
font-size: 1rem;
line-height: 1.6;
}

li {
margin-bottom: 1rem;
}

:global {
.intro-text {
color: var(--color-neutrals-600);
font-size: 1.125rem;
line-height: 2rem;
}
}
6 changes: 5 additions & 1 deletion src/templates/ComponentReferenceTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ const ComponentReferenceTemplate = ({ data }) => {
<h1>{component}</h1>

<section
className={cx(templateStyles.section, templateStyles.description)}
className={cx(
templateStyles.section,
templateStyles.description,
'intro-text'
)}
>
<ReactMarkdown source={componentDescription} />
</section>
Expand Down

0 comments on commit 116c2b3

Please sign in to comment.