Skip to content

Commit

Permalink
give ModifierTable its own class. fixes #2163
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Gray committed Mar 3, 2018
1 parent 57eedfb commit 99b4ed2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/docs-theme/src/components/modifierTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface IModifierTableProps {

export const ModifierTable: React.SFC<IModifierTableProps> = ({ children, title }) =>
React.Children.count(children) > 0 ? (
<div className="docs-modifiers pt-running-text-small">
<div className="docs-modifiers-table">
<table className="pt-html-table">
<thead>
<tr>
Expand Down
9 changes: 3 additions & 6 deletions packages/docs-theme/src/styles/_api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@
flex-direction: column;
margin: 0;
width: $content-width;

> * {
padding: $pt-grid-size ($pt-grid-size * 2);
}
}

.docs-interface-header {
flex: 0 0 auto;
margin: 0;
padding: $pt-grid-size ($pt-grid-size * 2);
}

.docs-interface-table {
.docs-modifiers-table {
overflow: auto;
padding-bottom: $pt-grid-size * 2;
padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2);
}
}

Expand Down
17 changes: 5 additions & 12 deletions packages/docs-theme/src/styles/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,22 +107,15 @@ $dark-example-background-color: $dark-content-background-color;
vertical-align: top;

> code {
display: inline-block;
margin-bottom: $pt-grid-size;
}

&[data-modifier="default"]:last-child > code {
display: none;
&:empty {
display: none;
}
}
}

// modifier labels
.docs-modifiers code,
.docs-example > code {
display: inline-block;
line-height: 1.4;
white-space: nowrap;

&:empty {
&[data-modifier="default"]:last-child > code {
display: none;
}
}
Expand Down

0 comments on commit 99b4ed2

Please sign in to comment.