Skip to content

Commit

Permalink
Tweak popover docs colors (#2274)
Browse files Browse the repository at this point in the history
* Tweak popover docs colors

* remove unnecessary button

* simplify styles
  • Loading branch information
llorca authored and giladgray committed Mar 20, 2018
1 parent afd0939 commit b4de4e6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export class PopoverInlineExample extends BaseExample<IPopoverInlineExampleState
>
<div className="docs-popover-inline-example-scroll-content">
<Popover {...popoverBaseProps} content="I am in a Portal (default)." usePortal={true}>
<Button>
<code>{`usePortal={true}`}</code>
</Button>
<code>{`usePortal={true}`}</code>
</Popover>
</div>
</div>
Expand All @@ -68,9 +66,7 @@ export class PopoverInlineExample extends BaseExample<IPopoverInlineExampleState
>
<div className="docs-popover-inline-example-scroll-content">
<Popover {...popoverBaseProps} content="I am an inline popover." usePortal={false}>
<Button>
<code>{`usePortal={false}`}</code>
</Button>
<code>{`usePortal={false}`}</code>
</Popover>
</div>
</div>
Expand Down
20 changes: 13 additions & 7 deletions packages/docs-app/src/styles/_examples.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,17 +191,22 @@

.docs-popover-example {
.docs-react-example {
border-radius: $pt-border-radius;
background: $light-gray3;
width: 100%;
height: 350px;
overflow: scroll;

.pt-dark & {
background: $dark-gray5;
}
}

.docs-popover-example-scroll {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: rgba($black, 0.1);
min-width: 200%;
min-height: 200%;
}
Expand All @@ -215,8 +220,12 @@
.docs-popover-position-example-instructions {
display: inline-block;
max-width: 25 * $pt-grid-size;
color: $gray3;
color: $pt-text-color-muted;
font-style: italic;

.pt-dark & {
color: $pt-dark-text-color-muted;
}
}

.docs-popover-position-example-button {
Expand Down Expand Up @@ -293,16 +302,13 @@

.docs-popover-inline-example-scroll-container {
flex: 1 1 auto;
border: 1px solid $pt-divider-black;
border-radius: $pt-border-radius;
box-shadow: inset 0 1px 1px rgba($black, 0.05);
background: $light-gray4;
background: $light-gray3;
overflow-x: scroll;
overflow-y: hidden;

.pt-dark & {
border-color: $pt-dark-divider-black;
background: $dark-gray2;
background: $dark-gray5;
}

&:first-child {
Expand Down
8 changes: 8 additions & 0 deletions packages/docs-app/src/styles/_sections.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,17 @@

.docs-popover-position-label-side {
color: $cobalt3;

.pt-dark & {
color: $cobalt5;
}
}

.docs-popover-position-label-alignment {
color: $forest3;

.pt-dark & {
color: $forest5;
}
}
}

1 comment on commit b4de4e6

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweak popover docs colors (#2274)

Preview: documentation | landing | table

Please sign in to comment.