diff --git a/packages/core/src/components/tree/_tree.scss b/packages/core/src/components/tree/_tree.scss
index cc4a705724..056b000a69 100644
--- a/packages/core/src/components/tree/_tree.scss
+++ b/packages/core/src/components/tree/_tree.scss
@@ -80,7 +80,7 @@ $tree-icon-spacing: ($tree-row-height - $pt-icon-size-standard) / 2 !default;
.pt-tree-node-caret-none {
position: relative;
min-width: $pt-grid-size * 3;
- // override default icon styles, which appear first for some reason
+ // CSS API: override default icon styles, which appear first for some reason
line-height: $tree-row-height !important; // stylelint-disable-line declaration-no-important
}
@@ -99,6 +99,10 @@ $tree-icon-spacing: ($tree-row-height - $pt-icon-size-standard) / 2 !default;
&.pt-icon-standard::before {
content: $pt-icon-caret-right;
}
+
+ .pt-icon {
+ margin: $tree-icon-spacing;
+ }
}
.pt-tree-node-icon {
diff --git a/packages/docs-theme/src/components/block.tsx b/packages/docs-theme/src/components/block.tsx
index e5182a5c3e..767061cac2 100644
--- a/packages/docs-theme/src/components/block.tsx
+++ b/packages/docs-theme/src/components/block.tsx
@@ -15,7 +15,7 @@ export function renderBlock(block: IBlock | undefined, tagRenderers: ITagRendere
}
return block.contents.map((node, i) => {
if (typeof node === "string") {
- return
;
+ return ;
}
try {
const renderer = tagRenderers[node.tag];
diff --git a/packages/docs-theme/src/components/modifierTable.tsx b/packages/docs-theme/src/components/modifierTable.tsx
index e4da90b76d..f1efa4a5e1 100644
--- a/packages/docs-theme/src/components/modifierTable.tsx
+++ b/packages/docs-theme/src/components/modifierTable.tsx
@@ -12,7 +12,7 @@ export interface IModifierTableProps {
export const ModifierTable: React.SFC = ({ children, title }) =>
React.Children.count(children) > 0 ? (
-
+
diff --git a/packages/docs-theme/src/components/page.tsx b/packages/docs-theme/src/components/page.tsx
index 7a8a7a1156..8b41574fcf 100644
--- a/packages/docs-theme/src/components/page.tsx
+++ b/packages/docs-theme/src/components/page.tsx
@@ -18,7 +18,7 @@ export interface IPageProps {
export const Page: React.SFC = ({ tagRenderers, page }) => {
const pageContents = renderBlock(page, tagRenderers);
return (
-
+
{pageContents}
);
diff --git a/packages/docs-theme/src/styles/_api.scss b/packages/docs-theme/src/styles/_api.scss
index c2c5241cf5..ee82ce354d 100644
--- a/packages/docs-theme/src/styles/_api.scss
+++ b/packages/docs-theme/src/styles/_api.scss
@@ -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);
}
}
diff --git a/packages/docs-theme/src/styles/_content.scss b/packages/docs-theme/src/styles/_content.scss
index 8c0398431e..c8a0930826 100644
--- a/packages/docs-theme/src/styles/_content.scss
+++ b/packages/docs-theme/src/styles/_content.scss
@@ -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;
}
}