-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.0] docs site redesign! #2243
Conversation
refactor NavMenu & NavMenuItem accordingly
flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup
prevent body scrollingPreview: documentation | landing | table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&.docs-nav-expanded { | ||
// bold text instead of background color | ||
background-color: transparent !important; // stylelint-disable-line declaration-no-important | ||
font-weight: 600; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunate side effect of this is that it can change the number of lines which an item takes up. so it can push down the layout of the rest of the nav tree. a minor inconvenience 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I noticed as well, I'll update that but maybe not in this PR (unless I figure something great before this merges)
@adidahiya re: shortcuts, they're actually disabled text, can hardly go less in your face than that. we want to display them for a while to let people get used to it, and we can probably remove them at some point. |
🌟 Components becomes non-interactive header that expands its menu!Preview: documentation | landing | table |
@giladgray: When using the latest preview by blueprint-bot, the left menu can't be scrolled in Firefox and Edge. |
inject some styles to add padding equal to scrollbar width when Overlay open
@qcz i believe i've resolved the scrolling issues. thanks for reporting! |
restore scroll spyPreview: documentation | landing | table |
new Logo component rendering logo SVG inlinePreview: documentation | landing | table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@llorca I reviewed your commit
@@ -0,0 +1,27 @@ | |||
/* | |||
* Copyright 2015 Palantir Technologies, Inc. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2018
export const Logo: React.SFC<ILogoProps> = ({ color }) => { | ||
return ( | ||
<svg width="65" height="76" xmlns="http://www.w3.org/2000/svg"> | ||
<g fill={color} fill-rule="nonzero"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fillRule
@@ -32,20 +32,35 @@ $dark-package-colors: ( | |||
|
|||
.docs-logo { | |||
display: block; | |||
opacity: 0.8; | |||
margin-right: $logo-margin; | |||
background-image: url("./assets/blueprint-logo.svg"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these background
properties, and the associated file.
while you're at it, refactor this entire class. i'll bet half the properties aren't necessary anymore.
close navigator when an item is selected, in case it's the current section
fix sidebar width, remove left paddingPreview: documentation | landing | table |
|
make sure the interface description doesn't shrink in api overlay
fix api overlay desc sizePreview: documentation | landing | table |
@llorca let's merge now and remove banner later. approval? |
make copy to clipboard tick consistent everywherePreview: documentation | landing | table |
@@ -40,6 +40,7 @@ $swatch-copied-message: "#{$pt-icon-tick} Copied to clipboard"; | |||
// override more specific selector above | |||
//stylelint-disable declaration-no-important | |||
&.docs-clipboard-copied .docs-clipboard-message::after { | |||
font-family: $pt-font-family; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but we want monospace. whatever.
woooooo new design!
To do:
v2
label dropdown near "Blueprint" header.docs-section
s within.docs-modifiers
should have no.pt-running-text
class (text too big in props tables currently)page down
).docs-app
therefore can't get.pt-dark
styles.pt-dark
styles