Skip to content

Commit

Permalink
feat: Clean up styles between the reference templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 6, 2020
1 parent d64e9df commit 80fdbff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 47 deletions.
6 changes: 1 addition & 5 deletions src/components/MethodReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ const MethodReference = ({ className, method }) => (
returnValue={method.returnValue}
/>
{method.examples.map((example, i) => (
<ComponentExample
key={i}
className={styles.componentExample}
example={example}
/>
<ComponentExample key={i} className={styles.example} example={example} />
))}
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions src/components/MethodReference.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
margin-top: 1rem;
margin-bottom: 1rem;
}

.example:not(:last-child) {
margin-bottom: 2rem;
}
30 changes: 0 additions & 30 deletions src/templates/ApiDocTemplate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
grid-area: sidebar;
}

.componentExample:not(:last-child) {
margin-bottom: 2rem;
}

.description {
border-top: 1px solid var(--color-neutrals-200);
margin-top: 0.5rem;
Expand All @@ -39,29 +35,3 @@
.section:not(:last-child) {
margin-bottom: 2rem;
}

.toastManager > div {
position: fixed;
top: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
padding-top: 16px;
padding-right: 16px;
pointer-events: none;
z-index: 200;
min-height: 9999px;
}

.methodDescription {
margin-top: 1rem;
margin-bottom: 1rem;
}

.methodName {
padding: 0.125rem 0.25rem;
display: inline;
color: var(--color-teal-500);
background: var(--color-teal-050);
}
12 changes: 0 additions & 12 deletions src/templates/ComponentDocTemplate.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,3 @@
z-index: 200;
min-height: 9999px;
}

.methodDescription {
margin-top: 1rem;
margin-bottom: 1rem;
}

.methodName {
padding: 0.125rem 0.25rem;
display: inline;
color: var(--color-teal-500);
background: var(--color-teal-050);
}

0 comments on commit 80fdbff

Please sign in to comment.