code_before
stringlengths
16
1.81M
edits
stringlengths
4
328k
next_edit
stringlengths
0
76.5k
code_after
stringlengths
3
49.9M
label_window
sequencelengths
4
1.81k
instruction
stringlengths
20
51.9k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
*/ import * as React from "react"; import { IPageData } from "documentalist/dist/client"; import { ITagRendererMap } from "../tags"; import { renderBlock } from "./block"; export interface IPageProps {
</s> remove import { Dialog, FocusStyleManager, Hotkey, Hotkeys, HotkeysTarget, IProps, Utils } from "@blueprintjs/core"; </s> add import { Classes, FocusStyleManager, Hotkey, Hotkeys, HotkeysTarget, IProps, Overlay, Utils } from "@blueprintjs/core"; </s> remove import { findDOMNode } from "react-dom"; </s> add
import { Classes } from "@blueprintjs/core";
*/ import * as React from "react"; import { Classes } from "@blueprintjs/core"; import { IPageData } from "documentalist/dist/client"; import { ITagRendererMap } from "../tags"; import { renderBlock } from "./block"; export interface IPageProps {
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/page.tsx
tagRenderers: ITagRendererMap; } export const Page: React.SFC<IPageProps> = ({ tagRenderers, page }) => { const pageContents = renderBlock(page, tagRenderers); return ( <div className="docs-page" data-page-id={page.reference}> {pageContents} </div> );
</s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </s> remove private renderVersionsMenu() { const { versions } = this.props; if (versions.length === 1) { </s> add private renderNavMenuItem = (props: INavMenuItemProps) => { if (isPageNode(props.section) && props.section.level === 1) { const pkg = this.props.releases.find(p => p.name === `@blueprintjs/${props.section.route}`); </s> remove export const TypescriptExample: React.SFC<ITag> = ({ value }, { getDocsData }: IDocumentationContext) => { </s> add export const TypescriptExample: React.SFC<ITag & IProps> = ( { className, value }, { getDocsData }: IDocumentationContext, ) => { </s> remove <div className="pt-text-muted" key="_versions"> v{versions[0].version} </s> add <div className={classNames("docs-nav-package", props.className)} data-route={props.section.route}> <a className="pt-menu-item" href={props.href} onClick={props.onClick}> <NavIcon route={props.section.route} /> <span>{props.section.title}</span> </a> {pkg && ( <a className={Classes.TEXT_MUTED} href={pkg.url} target="_blank"> <small>{pkg.version}</small> </a> )} </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}>
// apply running text styles to blocks in pages (but not on blocks in examples) const pageContents = renderBlock(page, tagRenderers, Classes.RUNNING_TEXT);
tagRenderers: ITagRendererMap; } export const Page: React.SFC<IPageProps> = ({ tagRenderers, page }) => { // apply running text styles to blocks in pages (but not on blocks in examples) const pageContents = renderBlock(page, tagRenderers, Classes.RUNNING_TEXT); return ( <div className="docs-page" data-page-id={page.reference}> {pageContents} </div> );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/page.tsx
* * Licensed under the terms of the LICENSE file distributed with this project. */ import classNames from "classnames"; import { ITsEnum, ITsEnumMember } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ModifierTable } from "../modifierTable"; import { ApiHeader } from "./apiHeader";
</s> remove import { Classes, Intent, Tag } from "@blueprintjs/core"; </s> add import { Classes, Intent, IProps, Tag } from "@blueprintjs/core"; </s> remove import { Classes, Hotkey, Hotkeys, HotkeysTarget, InputGroup, Keys, Popover, Position, Utils } from "@blueprintjs/core"; import { IconContents } from "@blueprintjs/icons"; </s> add import { Classes, Icon, MenuItem } from "@blueprintjs/core"; import { ItemListPredicate, ItemRenderer, Omnibar } from "@blueprintjs/select"; </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core"; </s> remove import { Icon, Menu, MenuItem, Popover, Position, setHotkeysDialogProps } from "@blueprintjs/core"; </s> add import { Classes, setHotkeysDialogProps } from "@blueprintjs/core";
import { IProps } from "@blueprintjs/core";
* * Licensed under the terms of the LICENSE file distributed with this project. */ import { IProps } from "@blueprintjs/core"; import classNames from "classnames"; import { ITsEnum, ITsEnumMember } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ModifierTable } from "../modifierTable"; import { ApiHeader } from "./apiHeader";
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/enumTable.tsx
import { DeprecatedTag } from "./deprecatedTag"; export type Renderer<T> = (props: T) => React.ReactNode; export interface IEnumTableProps { data: ITsEnum; } export class EnumTable extends React.PureComponent<IEnumTableProps> { public static contextTypes = DocumentationContextTypes;
</s> remove export interface IInterfaceTableProps { </s> add export interface IInterfaceTableProps extends IProps { </s> remove export interface ITypeAliasTableProps { </s> add export interface ITypeAliasTableProps extends IProps { </s> remove public static defaultProps = { navbarLeft: "Documentation", }; </s> add </s> remove export const TypescriptExample: React.SFC<ITag> = ({ value }, { getDocsData }: IDocumentationContext) => { </s> add export const TypescriptExample: React.SFC<ITag & IProps> = ( { className, value }, { getDocsData }: IDocumentationContext, ) => {
export interface IEnumTableProps extends IProps {
import { DeprecatedTag } from "./deprecatedTag"; export type Renderer<T> = (props: T) => React.ReactNode; export interface IEnumTableProps extends IProps { data: ITsEnum; } export class EnumTable extends React.PureComponent<IEnumTableProps> { public static contextTypes = DocumentationContextTypes;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/enumTable.tsx
public render() { const { data } = this.props; const { renderBlock } = this.context; return ( <div className="docs-modifiers pt-running-text-small"> <ApiHeader {...data} /> {renderBlock(data.documentation)} <ModifierTable emptyMessage="This enum is empty." title="Members"> {data.members.map(this.renderPropRow)} </ModifierTable>
</s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </s> remove const examplesOnly = location.search === "?examples"; </s> add const rootClasses = classNames( "docs-root", { "docs-examples-only": location.search === "?examples" }, this.props.className, ); const apiClasses = classNames("docs-api-overlay", this.props.className);
<div className={classNames("docs-modifiers", this.props.className)}>
public render() { const { data } = this.props; const { renderBlock } = this.context; return ( <div className={classNames("docs-modifiers", this.props.className)}> <ApiHeader {...data} /> {renderBlock(data.documentation)} <ModifierTable emptyMessage="This enum is empty." title="Members"> {data.members.map(this.renderPropRow)} </ModifierTable>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/enumTable.tsx
* * Licensed under the terms of the LICENSE file distributed with this project. */ import { Classes, Intent, Tag } from "@blueprintjs/core"; import classNames from "classnames"; import { isTsProperty, ITsClass, ITsInterface, ITsMethod, ITsProperty, ITsSignature } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ModifierTable } from "../modifierTable";
</s> remove import { Classes, Hotkey, Hotkeys, HotkeysTarget, InputGroup, Keys, Popover, Position, Utils } from "@blueprintjs/core"; import { IconContents } from "@blueprintjs/icons"; </s> add import { Classes, Icon, MenuItem } from "@blueprintjs/core"; import { ItemListPredicate, ItemRenderer, Omnibar } from "@blueprintjs/select"; </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core"; </s> remove import { Icon, Menu, MenuItem, Popover, Position, setHotkeysDialogProps } from "@blueprintjs/core"; </s> add import { Classes, setHotkeysDialogProps } from "@blueprintjs/core";
import { Classes, Intent, IProps, Tag } from "@blueprintjs/core";
* * Licensed under the terms of the LICENSE file distributed with this project. */ import { Classes, Intent, IProps, Tag } from "@blueprintjs/core"; import classNames from "classnames"; import { isTsProperty, ITsClass, ITsInterface, ITsMethod, ITsProperty, ITsSignature } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ModifierTable } from "../modifierTable";
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/interfaceTable.tsx
import { DeprecatedTag } from "./deprecatedTag"; export type Renderer<T> = (props: T) => React.ReactNode; export interface IInterfaceTableProps { data: ITsClass | ITsInterface; title: string; } export class InterfaceTable extends React.PureComponent<IInterfaceTableProps> {
</s> remove export interface IEnumTableProps { </s> add export interface IEnumTableProps extends IProps { </s> remove export interface ITypeAliasTableProps { </s> add export interface ITypeAliasTableProps extends IProps { </s> remove onNavigate: (id: string) => void; } export interface INavigatorState { matches: INavigationSection[]; query: string; selectedIndex: number; </s> add onClose: () => void; </s> remove const MENU_PADDING = 5; // $pt-grid-size / 2; </s> add const NavOmnibar = Omnibar.ofType<INavigationSection>();
export interface IInterfaceTableProps extends IProps {
import { DeprecatedTag } from "./deprecatedTag"; export type Renderer<T> = (props: T) => React.ReactNode; export interface IInterfaceTableProps extends IProps { data: ITsClass | ITsInterface; title: string; } export class InterfaceTable extends React.PureComponent<IInterfaceTableProps> {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/interfaceTable.tsx
const propRows = [...data.properties, ...data.methods] .sort((a, b) => a.name.localeCompare(b.name)) .map(this.renderPropRow); return ( <div className="docs-modifiers pt-running-text-small"> <ApiHeader {...data} /> {renderBlock(data.documentation)} <ModifierTable emptyMessage="This interface is empty." title={title}> {propRows} {this.renderIndexSignature(data.indexSignature)}
</s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className={classNames("docs-root", { "docs-examples-only": examplesOnly }, this.props.className)}> </s> add <div className={rootClasses}> {this.props.banner}
<div className={classNames("docs-modifiers", this.props.className)}>
const propRows = [...data.properties, ...data.methods] .sort((a, b) => a.name.localeCompare(b.name)) .map(this.renderPropRow); return ( <div className={classNames("docs-modifiers", this.props.className)}> <ApiHeader {...data} /> {renderBlock(data.documentation)} <ModifierTable emptyMessage="This interface is empty." title={title}> {propRows} {this.renderIndexSignature(data.indexSignature)}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/interfaceTable.tsx
*/ import { ITsTypeAlias } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ApiHeader } from "./apiHeader"; export interface ITypeAliasTableProps extends IProps {
</s> remove export interface ITypeAliasTableProps { </s> add export interface ITypeAliasTableProps extends IProps { </s> remove import { Classes, Intent, Tag } from "@blueprintjs/core"; </s> add import { Classes, Intent, IProps, Tag } from "@blueprintjs/core";
import { IProps } from "@blueprintjs/core"; import classNames from "classnames";
*/ import { IProps } from "@blueprintjs/core"; import classNames from "classnames"; import { ITsTypeAlias } from "documentalist/dist/client"; import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ApiHeader } from "./apiHeader"; export interface ITypeAliasTableProps extends IProps {
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/typeAliasTable.tsx
import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ApiHeader } from "./apiHeader"; export interface ITypeAliasTableProps { data: ITsTypeAlias; } export class TypeAliasTable extends React.PureComponent<ITypeAliasTableProps> { public static contextTypes = DocumentationContextTypes;
</s> remove export interface IEnumTableProps { </s> add export interface IEnumTableProps extends IProps { </s> remove import { Classes, Intent, Tag } from "@blueprintjs/core"; </s> add import { Classes, Intent, IProps, Tag } from "@blueprintjs/core";
export interface ITypeAliasTableProps extends IProps {
import * as React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; import { ApiHeader } from "./apiHeader"; export interface ITypeAliasTableProps extends IProps { data: ITsTypeAlias; } export class TypeAliasTable extends React.PureComponent<ITypeAliasTableProps> { public static contextTypes = DocumentationContextTypes;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/typeAliasTable.tsx
public render() { const { data } = this.props; const { renderBlock, renderType } = this.context; return ( <div className={classNames("docs-modifiers", this.props.className)}> <ApiHeader {...data} /> {renderBlock(data.documentation)}
</s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove const examplesOnly = location.search === "?examples"; </s> add const rootClasses = classNames( "docs-root", { "docs-examples-only": location.search === "?examples" }, this.props.className, ); const apiClasses = classNames("docs-api-overlay", this.props.className);
const aliases = data.type.split(" | ").map((type, i) => ( <div> {i === 0 ? "=" : "|"} {renderType(type)} </div> ));
public render() { const { data } = this.props; const { renderBlock, renderType } = this.context; const aliases = data.type.split(" | ").map((type, i) => ( <div> {i === 0 ? "=" : "|"} {renderType(type)} </div> )); return ( <div className={classNames("docs-modifiers", this.props.className)}> <ApiHeader {...data} /> {renderBlock(data.documentation)}
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/typeAliasTable.tsx
public render() { const { data } = this.props; const { renderBlock, renderType } = this.context; return ( <div className="docs-modifiers pt-running-text-small"> <ApiHeader {...data} /> <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div>
</s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="pt-text-muted" key="_versions"> v{versions[0].version} </s> add <div className={classNames("docs-nav-package", props.className)} data-route={props.section.route}> <a className="pt-menu-item" href={props.href} onClick={props.onClick}> <NavIcon route={props.section.route} /> <span>{props.section.title}</span> </a> {pkg && ( <a className={Classes.TEXT_MUTED} href={pkg.url} target="_blank"> <small>{pkg.version}</small> </a> )}
<div className={classNames("docs-modifiers", this.props.className)}>
public render() { const { data } = this.props; const { renderBlock, renderType } = this.context; return ( <div className={classNames("docs-modifiers", this.props.className)}> <ApiHeader {...data} /> <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/typeAliasTable.tsx
const { renderBlock, renderType } = this.context; return ( <div className="docs-modifiers pt-running-text-small"> <ApiHeader {...data} /> <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </div> ); } }
</s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="docs-modifiers pt-running-text-small"> </s> add <div className={classNames("docs-modifiers", this.props.className)}> </s> remove <div className="pt-text-muted" key="_versions"> v{versions[0].version} </s> add <div className={classNames("docs-nav-package", props.className)} data-route={props.section.route}> <a className="pt-menu-item" href={props.href} onClick={props.onClick}> <NavIcon route={props.section.route} /> <span>{props.section.title}</span> </a> {pkg && ( <a className={Classes.TEXT_MUTED} href={pkg.url} target="_blank"> <small>{pkg.version}</small> </a> )}
{renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div>
const { renderBlock, renderType } = this.context; return ( <div className="docs-modifiers pt-running-text-small"> <ApiHeader {...data} /> {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div> </div> ); } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/components/typescript/typeAliasTable.tsx
export * from "./components/baseExample"; export * from "./components/documentation"; export * from "./common"; export * from "./tags";
</s> remove export interface ITypeAliasTableProps { </s> add export interface ITypeAliasTableProps extends IProps { </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core"; </s> remove import { findDOMNode } from "react-dom"; </s> add
export * from "./components/navMenuItem"; export * from "./components/navButton";
export * from "./components/baseExample"; export * from "./components/documentation"; export * from "./components/navMenuItem"; export * from "./components/navButton"; export * from "./common"; export * from "./tags";
[ "keep", "add", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/index.ts
// Copyright 2017 Palantir Technologies, Inc. All rights reserved. // Licensed under the terms of the LICENSE file distributed with this project. @import "variables"; .docs-api-overlay { .docs-modifiers { @include react-transition-phase(
</s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40; </s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core";
@import "~@blueprintjs/core/src/common/react-transition";
// Copyright 2017 Palantir Technologies, Inc. All rights reserved. // Licensed under the terms of the LICENSE file distributed with this project. @import "~@blueprintjs/core/src/common/react-transition"; @import "variables"; .docs-api-overlay { .docs-modifiers { @include react-transition-phase(
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
// Licensed under the terms of the LICENSE file distributed with this project. @import "variables"; .docs-api-dialog { width: auto; height: 80vh; padding: 0; .docs-modifiers { display: flex; flex-direction: column; margin: 0; width: $content-width;
</s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40; </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core";
.docs-api-overlay {
// Licensed under the terms of the LICENSE file distributed with this project. @import "variables"; .docs-api-overlay { .docs-api-overlay { .docs-api-overlay { .docs-api-overlay { .docs-api-overlay { .docs-modifiers { display: flex; flex-direction: column; margin: 0; width: $content-width;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
.docs-api-overlay { .docs-modifiers { display: flex; flex-direction: column; top: 0; right: 0; bottom: 0;
</s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove display: flex; flex-direction: row; </s> add @include pt-flex-container(row); </s> remove display: flex; flex-direction: column; </s> add @include pt-flex-container(column);
@include react-transition-phase( "pt-overlay", "enter", (transform: (translateX(100%), translateX(0))), $pt-transition-duration * 2, $pt-transition-ease, $before: "&" ); @include react-transition-phase( "pt-overlay", "exit", (transform: (translateX(100%), translateX(0))), $pt-transition-duration, $before: "&" );
.docs-api-overlay { .docs-modifiers { @include react-transition-phase( "pt-overlay", "enter", (transform: (translateX(100%), translateX(0))), $pt-transition-duration * 2, $pt-transition-ease, $before: "&" ); @include react-transition-phase( "pt-overlay", "exit", (transform: (translateX(100%), translateX(0))), $pt-transition-duration, $before: "&" ); display: flex; flex-direction: column; top: 0; right: 0; bottom: 0;
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
); display: flex; flex-direction: column; margin: 0; box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw;
</s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove width: 100% / $icons-per-row - 1%; </s> add width: 100% / $icons-per-row; </s> remove display: flex; flex-direction: row; </s> add @include pt-flex-container(row);
top: 0; right: 0; bottom: 0;
); display: flex; flex-direction: column; top: 0; right: 0; bottom: 0; margin: 0; box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw;
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
.docs-modifiers { display: flex; flex-direction: column; margin: 0; width: $content-width; } .docs-interface-header { flex: 0 0 auto; margin: 0;
</s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove margin: 0; </s> add </s> remove flex: 0 0 auto; </s> add flex-grow: 0; flex-shrink: 0;
box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0;
.docs-modifiers { display: flex; flex-direction: column; margin: 0; box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; } .docs-interface-header { flex: 0 0 auto; margin: 0;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
} .docs-interface-header { flex: 0 0 auto; margin: 0; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { overflow: auto;
</s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove flex: 0 0 auto; </s> add flex-grow: 0; flex-shrink: 0;
} .docs-interface-header { flex: 0 0 auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { overflow: auto;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
.docs-interface-header { flex: 0 0 auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { overflow: auto; padding-bottom: $pt-grid-size * 2;
</s> remove margin: 0; </s> add </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; </s> add .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2;
+ .docs-section { flex-shrink: 0; padding-right: $pt-grid-size * 2; padding-left: $pt-grid-size * 2; }
.docs-interface-header { flex: 0 0 auto; padding: $pt-grid-size ($pt-grid-size * 2); + .docs-section { flex-shrink: 0; padding-right: $pt-grid-size * 2; padding-left: $pt-grid-size * 2; } } .docs-modifiers-table { overflow: auto; padding-bottom: $pt-grid-size * 2;
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
} .docs-modifiers-table { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); } } .docs-code { font-family: $pt-font-family-monospace;
</s> remove margin: 0; </s> add </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove align-items: flex-end; </s> add align-items: center; </s> remove width: 100% / $icons-per-row - 1%; </s> add width: 100% / $icons-per-row;
padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; }
} .docs-modifiers-table { overflow: auto; padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } } } .docs-code { font-family: $pt-font-family-monospace;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_api.scss
// banner along top of screen linking to v2 docs .docs-banner { flex: 0 0 auto; align-items: center; justify-content: center; position: fixed; top: 0;
</s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove width: $container-width; padding-top: $pt-navbar-height; </s> add max-width: $container-width; min-height: 100vh; </s> remove align-items: flex-end; </s> add align-items: center;
@include pt-flex-container(row); @include overflow-ellipsis();
// banner along top of screen linking to v2 docs .docs-banner { @include pt-flex-container(row); @include overflow-ellipsis(); flex: 0 0 auto; align-items: center; justify-content: center; position: fixed; top: 0;
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
@include overflow-ellipsis(); flex: 0 0 auto; position: fixed; top: 0; right: 0;
</s> remove .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; </s> add .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; </s> remove flex: 0 0 auto; </s> add flex-grow: 0; flex-shrink: 0; </s> remove margin: 0; </s> add </s> remove flex: 1 1 auto; </s> add flex-grow: 1; flex-shrink: 1;
align-items: center; justify-content: center;
@include overflow-ellipsis(); flex: 0 0 auto; align-items: center; justify-content: center; position: fixed; top: 0; right: 0;
[ "keep", "add", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
left: 0; z-index: $pt-z-index-overlay - 1; box-shadow: inset 0 -1px 0 $pt-divider-black; height: $banner-height; text-align: center; line-height: $banner-height; // stylelint-disable declaration-no-important color: $white !important;
</s> remove line-height: $banner-height; </s> add </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove } </s> add </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); }
min-height: $banner-height; padding: $pt-grid-size $pt-grid-size * 2;
left: 0; z-index: $pt-z-index-overlay - 1; box-shadow: inset 0 -1px 0 $pt-divider-black; min-height: $banner-height; padding: $pt-grid-size $pt-grid-size * 2; text-align: center; line-height: $banner-height; // stylelint-disable declaration-no-important color: $white !important;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
z-index: $pt-z-index-overlay - 1; box-shadow: inset 0 -1px 0 $pt-divider-black; height: $banner-height; text-align: center; line-height: $banner-height; // stylelint-disable declaration-no-important color: $white !important; @each $intent, $colors in $button-intents { &.pt-intent-#{$intent} {
</s> remove height: $banner-height; </s> add min-height: $banner-height; padding: $pt-grid-size $pt-grid-size * 2; </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove } </s> add </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); } </s> remove .docs-nav { top: $pt-navbar-height + $banner-height; </s> add .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; }
z-index: $pt-z-index-overlay - 1; box-shadow: inset 0 -1px 0 $pt-divider-black; height: $banner-height; text-align: center; // stylelint-disable declaration-no-important color: $white !important; @each $intent, $colors in $button-intents { &.pt-intent-#{$intent} {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
.pt-dark & { box-shadow: 0 1px 0 $pt-divider-black; } } // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height;
</s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove .docs-nav { top: $pt-navbar-height + $banner-height; </s> add .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; } </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); } </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0;
.pt-dark & { box-shadow: 0 1px 0 $pt-divider-black; } // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
box-shadow: 0 1px 0 $pt-divider-black; } } // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } .docs-app { padding-top: $pt-navbar-height + $banner-height; }
</s> remove } </s> add </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); } </s> remove .docs-nav { top: $pt-navbar-height + $banner-height; </s> add .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; } </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0;
+ .docs-app { padding-top: $banner-height;
box-shadow: 0 1px 0 $pt-divider-black; } } + .docs-app { padding-top: $banner-height; + .docs-app { padding-top: $banner-height; + .docs-app { padding-top: $banner-height; + .docs-app { padding-top: $banner-height; + .docs-app { padding-top: $banner-height; .docs-app { padding-top: $pt-navbar-height + $banner-height; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
.docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } .docs-nav { top: $pt-navbar-height + $banner-height; } }
</s> remove .docs-nav { top: $pt-navbar-height + $banner-height; </s> add .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; } </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove } </s> add </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove line-height: $banner-height; </s> add
.docs-nav { height: calc(100vh - #{$banner-height}); }
.docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { height: calc(100vh - #{$banner-height}); } .docs-nav { top: $pt-navbar-height + $banner-height; } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
.docs-navbar { top: $banner-height; } .docs-nav { top: $pt-navbar-height + $banner-height; } }
</s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); } </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove } </s> add
.docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; }
.docs-navbar { top: $banner-height; } .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; } .docs-anchor { // shift anchors down by $banner-height pixels margin-top: -$content-padding * 2 - $banner-height; } } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_banner.scss
// but it doesn't change the bounds of the element or interfere with interactions. (thanks React docs site!) // so the heading will appear _below_ the navbar (since the navbar covers the top 50px of window). .docs-anchor { position: absolute; margin-top: -$pt-navbar-height - $content-padding; } .docs-anchor-link { @include pt-icon-colors(); position: absolute;
</s> remove // usually this element is _way_ longer than the viewport, but sometimes it isn't. // this ensures that it'll always at least fill the viewport so white page doesn't show through. min-height: 100vh; </s> add </s> remove * Scroll the scrollParent such that the reference heading appears at the top of the viewport. </s> add * Scroll the scroll container such that the reference heading appears at the top of the viewport. </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove width: $container-width; padding-top: $pt-navbar-height; </s> add max-width: $container-width; min-height: 100vh; </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; }
margin-top: -$content-padding * 2;
// but it doesn't change the bounds of the element or interfere with interactions. (thanks React docs site!) // so the heading will appear _below_ the navbar (since the navbar covers the top 50px of window). .docs-anchor { position: absolute; margin-top: -$content-padding * 2; } .docs-anchor-link { @include pt-icon-colors(); position: absolute;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_content.scss
.view-example-source { display: inline-block; margin-bottom: $pt-grid-size * 2; } // modifiers table .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; th:first-child, td:first-child { padding-left: 0; } tr:first-child th { padding-top: 0; }
</s> remove tr:last-child td { padding-bottom: 0; </s> add .pt-icon { margin-right: $pt-grid-size / 2; </s> remove tr:first-child th { padding-top: 0; </s> add &:hover { text-decoration: none; </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; }
.view-example-source { display: inline-block; margin-bottom: $pt-grid-size * 2; tr:first-child th { padding-top: 0; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_content.scss
td:first-child { padding-left: 0; } tr:first-child th { padding-top: 0; } tr:last-child td { padding-bottom: 0; }
</s> remove tr:last-child td { padding-bottom: 0; </s> add .pt-icon { margin-right: $pt-grid-size / 2; </s> remove } // modifiers table .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; th:first-child, td:first-child { padding-left: 0; } </s> add </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0;
&:hover { text-decoration: none;
td:first-child { padding-left: 0; } &:hover { text-decoration: none; &:hover { text-decoration: none; } tr:last-child td { padding-bottom: 0; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_content.scss
tr:first-child th { padding-top: 0; } tr:last-child td { padding-bottom: 0; } } // full-bleed wrapper for example .docs-example-wrapper {
</s> remove tr:first-child th { padding-top: 0; </s> add &:hover { text-decoration: none; </s> remove } // modifiers table .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; th:first-child, td:first-child { padding-left: 0; } </s> add </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px;
.pt-icon { margin-right: $pt-grid-size / 2;
tr:first-child th { padding-top: 0; } .pt-icon { margin-right: $pt-grid-size / 2; .pt-icon { margin-right: $pt-grid-size / 2; } } // full-bleed wrapper for example .docs-example-wrapper {
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_content.scss
@import "variables"; @import "../../../core/src/components/forms/common"; $nav-item-height: $pt-grid-size * 3; $nav-item-line-height: 16px; $nav-item-padding: $pt-grid-size; $nav-item-indent: $pt-grid-size * 2; $nav-item-color-hover: $minimal-button-background-color-hover; $nav-item-color-active: $minimal-button-background-color-active; $dark-nav-item-color-hover: $dark-minimal-button-background-color-hover;
</s> remove $sidebar-width: $pt-grid-size * 22; $sidebar-padding: $pt-grid-size; </s> add $sidebar-width: $pt-grid-size * 27; $sidebar-padding: $pt-grid-size * 1.5; $sidebar-background-color: $white; $dark-sidebar-background-color: $dark-gray4; </s> remove $navbar-box-shadow: 0 1px 0 $pt-divider-black; $dark-navbar-box-shadow: 0 1px 0 $pt-dark-divider-black; $logo-width: $pt-grid-size * 2.8; </s> add body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; } </s> remove $content-padding: $pt-grid-size * 3; </s> add $content-padding: $pt-grid-size * 2; </s> remove /* All the components that live *inside* the navbar. */ </s> add $nav-divider-offset: $pt-grid-size * 5;
@import "variables"; @import "../../../core/src/components/forms/common"; $nav-item-indent: $pt-grid-size * 2; $nav-item-color-hover: $minimal-button-background-color-hover; $nav-item-color-active: $minimal-button-background-color-active; $dark-nav-item-color-hover: $dark-minimal-button-background-color-hover;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
$nav-item-color-active: $minimal-button-background-color-active; $dark-nav-item-color-hover: $dark-minimal-button-background-color-hover; $dark-nav-item-color-active: $dark-minimal-button-background-color-active; $navbar-box-shadow: 0 1px 0 $pt-divider-black; $dark-navbar-box-shadow: 0 1px 0 $pt-dark-divider-black; $logo-width: $pt-grid-size * 2.8; /* Flex utils */
</s> remove margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; </s> add position: relative; box-shadow: 0 1px 0 $pt-divider-black; </s> remove $nav-item-height: $pt-grid-size * 3; $nav-item-line-height: 16px; $nav-item-padding: $pt-grid-size; </s> add </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; }
body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; }
$nav-item-color-active: $minimal-button-background-color-active; $dark-nav-item-color-hover: $dark-minimal-button-background-color-hover; $dark-nav-item-color-active: $dark-minimal-button-background-color-active; body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; } body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; } body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; } body { // vertical scrollbar is always visible for the `.pt-overlay-open` padding (from `scrollbar.ts`) overflow-y: scroll; } /* Flex utils */
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
Flex utils */ .docs-flex-row { display: flex; flex-direction: row; } .docs-flex-column { display: flex; flex-direction: column;
</s> remove display: flex; flex-direction: column; </s> add @include pt-flex-container(column); </s> remove .pt-menu { max-height: $navigator-height; overflow: auto; </s> add .pt-menu-item small { // center-align text and SVG icons display: flex; </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0;
@include pt-flex-container(row);
Flex utils */ .docs-flex-row { @include pt-flex-container(row); @include pt-flex-container(row); } .docs-flex-column { display: flex; flex-direction: column;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
flex-direction: row; } .docs-flex-column { display: flex; flex-direction: column; } /* Page layout elements */
</s> remove display: flex; flex-direction: row; </s> add @include pt-flex-container(row); </s> remove .pt-menu { max-height: $navigator-height; overflow: auto; </s> add .pt-menu-item small { // center-align text and SVG icons display: flex; </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0;
@include pt-flex-container(column);
flex-direction: row; } .docs-flex-column { @include pt-flex-container(column); @include pt-flex-container(column); } /* Page layout elements */
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
.docs-root { background-color: $content-background-color; // usually this element is _way_ longer than the viewport, but sometimes it isn't. // this ensures that it'll always at least fill the viewport so white page doesn't show through. min-height: 100vh; &.pt-dark { background-color: $dark-content-background-color; } }
</s> remove margin-top: -$pt-navbar-height - $content-padding; </s> add margin-top: -$content-padding * 2; </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } </s> add @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); </s> remove * Scroll the scrollParent such that the reference heading appears at the top of the viewport. </s> add * Scroll the scroll container such that the reference heading appears at the top of the viewport. </s> remove /* All the components that live *inside* the navbar. */ </s> add $nav-divider-offset: $pt-grid-size * 5;
.docs-root { background-color: $content-background-color; &.pt-dark { background-color: $dark-content-background-color; } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
} } .docs-app { // center container in window margin: auto; width: $container-width; padding-top: $pt-navbar-height; }
</s> remove width: $container-width; padding-top: $pt-navbar-height; </s> add max-width: $container-width; min-height: 100vh; </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height; </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); } </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0;
@include pt-flex-container(row);
} } .docs-app { @include pt-flex-container(row); margin: auto; width: $container-width; padding-top: $pt-navbar-height; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
.docs-app { // center container in window margin: auto; width: $container-width; padding-top: $pt-navbar-height; } // navbar fixed to top of screen with same width as rest of app .docs-navbar { position: fixed;
</s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove // center container in window </s> add @include pt-flex-container(row); </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove margin-top: -$pt-navbar-height - $content-padding; </s> add margin-top: -$content-padding * 2;
max-width: $container-width; min-height: 100vh;
.docs-app { // center container in window margin: auto; max-width: $container-width; min-height: 100vh; max-width: $container-width; min-height: 100vh; } // navbar fixed to top of screen with same width as rest of app .docs-navbar { position: fixed;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
width: $container-width; padding-top: $pt-navbar-height; } // navbar fixed to top of screen with same width as rest of app .docs-navbar { position: fixed; top: 0; width: inherit; }
</s> remove width: $container-width; padding-top: $pt-navbar-height; </s> add max-width: $container-width; min-height: 100vh; </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove // center container in window </s> add @include pt-flex-container(row);
.docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px;
width: $container-width; padding-top: $pt-navbar-height; } .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; position: fixed; top: 0; width: inherit; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
// navbar fixed to top of screen with same width as rest of app .docs-navbar { position: fixed; top: 0; width: inherit; } .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width;
</s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove width: $container-width; padding-top: $pt-navbar-height; </s> add max-width: $container-width; min-height: 100vh; </s> remove .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; </s> add .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2;
box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; }
// navbar fixed to top of screen with same width as rest of app .docs-navbar { position: fixed; box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } } .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
top: 0; width: inherit; } .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; } .docs-nav { position: fixed; top: $pt-navbar-height;
</s> remove .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; </s> add .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); }
.docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; }
top: 0; width: inherit; } .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } } .docs-nav { position: fixed; top: $pt-navbar-height;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; } .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; } /* Lefthand navigation menu */
</s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove // navbar fixed to top of screen with same width as rest of app .docs-navbar { </s> add .docs-nav-wrapper { flex-basis: $sidebar-width; } .docs-nav { $background-shift: 999px; </s> remove margin: 0; </s> add </s> remove .docs-app { padding-top: $pt-navbar-height + $banner-height; } .docs-navbar { top: $banner-height; } </s> add .docs-nav { height: calc(100vh - #{$banner-height}); }
.docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2;
margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; } .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; } /* Lefthand navigation menu */
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
/* Lefthand navigation menu */ // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; } .docs-nav-expanded > .docs-nav-menu { display: block; }
</s> remove .docs-nav-expanded > .docs-nav-menu { display: block; </s> add .docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center; </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove .docs-nav { position: fixed; top: $pt-navbar-height; bottom: 0; width: $sidebar-width; overflow: auto; padding: $content-padding $sidebar-padding; </s> add .docs-page { max-width: $content-width; padding: 0 0 $content-padding * 2 $content-padding * 2; </s> remove display: flex; flex-direction: column; </s> add @include pt-flex-container(column); </s> remove .docs-menu-item { .pt-menu-item { padding-right: $nav-item-padding; padding-left: $nav-item-padding; white-space: initial; } @each $depth in (2, 3, 4, 5, 6) { &.depth-#{$depth} > .pt-menu-item { padding-left: $nav-item-padding + $nav-item-indent * ($depth - 1); } } } </s> add
.docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; }
/* Lefthand navigation menu */ .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } } .docs-nav-expanded > .docs-nav-menu { display: block; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
.docs-nav-menu .docs-nav-menu { display: none; } .docs-nav-expanded > .docs-nav-menu { display: block; } .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important
</s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; </s> add .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } </s> remove .docs-menu-item { .pt-menu-item { padding-right: $nav-item-padding; padding-left: $nav-item-padding; white-space: initial; } @each $depth in (2, 3, 4, 5, 6) { &.depth-#{$depth} > .pt-menu-item { padding-left: $nav-item-padding + $nav-item-indent * ($depth - 1); } } } </s> add </s> remove display: flex; flex-direction: row; </s> add @include pt-flex-container(row);
.docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center;
.docs-nav-menu .docs-nav-menu { display: none; } .docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center; .docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center; } .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
.docs-nav-expanded > .docs-nav-menu { display: block; } .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important } // empty state item is hidden by default... .docs-empty-state { display: none;
</s> remove .docs-nav-expanded > .docs-nav-menu { display: block; </s> add .docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center; </s> remove // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; </s> add .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } </s> remove .docs-menu-item { .pt-menu-item { padding-right: $nav-item-padding; padding-left: $nav-item-padding; white-space: initial; } @each $depth in (2, 3, 4, 5, 6) { &.depth-#{$depth} > .pt-menu-item { padding-left: $nav-item-padding + $nav-item-indent * ($depth - 1); } } } </s> add </s> remove // usually this element is _way_ longer than the viewport, but sometimes it isn't. // this ensures that it'll always at least fill the viewport so white page doesn't show through. min-height: 100vh; </s> add
.docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; }
.docs-nav-expanded > .docs-nav-menu { display: block; } .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } } // empty state item is hidden by default... .docs-empty-state { display: none;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
.docs-nav-menu:empty + .docs-empty-state { display: block; } .docs-menu-item { .pt-menu-item { padding-right: $nav-item-padding; padding-left: $nav-item-padding; white-space: initial; } @each $depth in (2, 3, 4, 5, 6) { &.depth-#{$depth} > .pt-menu-item { padding-left: $nav-item-padding + $nav-item-indent * ($depth - 1); } } } // hides all documentation content, to focus on live examples // trigger this behavior by adding ?examples to URL immediately after the path (before #route): // http://blueprintjs.com/docs/?examples .docs-examples-only { .docs-markup,
</s> remove // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; </s> add .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; } </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove .docs-nav-expanded > .docs-nav-menu { display: block; </s> add .docs-nav-title { @include pt-flex-container(row); flex-wrap: wrap; align-items: center; </s> remove .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } </s> add @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; }
.docs-nav-menu:empty + .docs-empty-state { display: block; } // hides all documentation content, to focus on live examples // trigger this behavior by adding ?examples to URL immediately after the path (before #route): // http://blueprintjs.com/docs/?examples .docs-examples-only { .docs-markup,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_layout.scss
@import "variables"; @import "../../../core/src/components/button/common"; /* All the components that live *inside* the navbar. */ .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding;
</s> remove .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } </s> add @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); </s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove $nav-item-height: $pt-grid-size * 3; $nav-item-line-height: 16px; $nav-item-padding: $pt-grid-size; </s> add </s> remove // usually this element is _way_ longer than the viewport, but sometimes it isn't. // this ensures that it'll always at least fill the viewport so white page doesn't show through. min-height: 100vh; </s> add
$nav-divider-offset: $pt-grid-size * 5;
@import "variables"; @import "../../../core/src/components/button/common"; $nav-divider-offset: $pt-grid-size * 5; $nav-divider-offset: $pt-grid-size * 5; $nav-divider-offset: $pt-grid-size * 5; .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
/* All the components that live *inside* the navbar. */ .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } .pt-dark & { box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; }
</s> remove /* All the components that live *inside* the navbar. */ </s> add $nav-divider-offset: $pt-grid-size * 5; </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; } </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; </s> add background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%);
@mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%);
/* All the components that live *inside* the navbar. */ @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); .pt-dark & { box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
} } .pt-dark & { box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; } } .docs-logo { margin: $pt-grid-size;
</s> remove .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } </s> add @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%); </s> remove .docs-logo { margin: $pt-grid-size; background-repeat: no-repeat; background-size: 100% auto; width: $logo-width; // SVG is width:height radio is 1:1.2 height: ceil($logo-width * 1.2); } .docs-heading { margin-right: $pt-grid-size; // vertically centers heading with version selector margin-bottom: 2px; font-weight: 600; } .docs-version-selector { border: none; box-shadow: none; background: none; </s> add .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; }
background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%);
} } .pt-dark & { background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%); background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%); } } .docs-logo { margin: $pt-grid-size;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
background-color: $dark-content-background-color; } } .docs-logo { margin: $pt-grid-size; background-repeat: no-repeat; background-size: 100% auto; width: $logo-width; // SVG is width:height radio is 1:1.2 height: ceil($logo-width * 1.2); } .docs-heading { margin-right: $pt-grid-size; // vertically centers heading with version selector margin-bottom: 2px; font-weight: 600; } .docs-version-selector { border: none; box-shadow: none; background: none; cursor: pointer; padding: 0; &:hover { color: $pt-text-color;
</s> remove padding: 0; </s> add padding: $pt-grid-size $sidebar-padding; padding-left: $nav-divider-offset + 4px; </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; </s> add background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%); </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; </s> add .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; }
.docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset;
background-color: $dark-content-background-color; } } .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; cursor: pointer; padding: 0; &:hover { color: $pt-text-color;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
border: none; box-shadow: none; background: none; cursor: pointer; padding: 0; &:hover { color: $pt-text-color; }
</s> remove .docs-logo { margin: $pt-grid-size; background-repeat: no-repeat; background-size: 100% auto; width: $logo-width; // SVG is width:height radio is 1:1.2 height: ceil($logo-width * 1.2); } .docs-heading { margin-right: $pt-grid-size; // vertically centers heading with version selector margin-bottom: 2px; font-weight: 600; } .docs-version-selector { border: none; box-shadow: none; background: none; </s> add .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove tr:first-child th { padding-top: 0; </s> add &:hover { text-decoration: none; </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; }
padding: $pt-grid-size $sidebar-padding; padding-left: $nav-divider-offset + 4px;
border: none; box-shadow: none; background: none; cursor: pointer; padding: $pt-grid-size $sidebar-padding; padding-left: $nav-divider-offset + 4px; &:hover { color: $pt-text-color; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
cursor: pointer; padding: 0; &:hover { color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { color: inherit; } .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5);
</s> remove .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5); color: $pt-dark-icon-color; } </s> add .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; </s> remove .docs-logo { margin: $pt-grid-size; background-repeat: no-repeat; background-size: 100% auto; width: $logo-width; // SVG is width:height radio is 1:1.2 height: ceil($logo-width * 1.2); } .docs-heading { margin-right: $pt-grid-size; // vertically centers heading with version selector margin-bottom: 2px; font-weight: 600; } .docs-version-selector { border: none; box-shadow: none; background: none; </s> add .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; </s> remove padding: 0; </s> add padding: $pt-grid-size $sidebar-padding; padding-left: $nav-divider-offset + 4px; </s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7);
@include divider-gradient($content-background-color, $dark-content-background-color);
cursor: pointer; padding: 0; &:hover { @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); @include divider-gradient($content-background-color, $dark-content-background-color); color: inherit; } .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
color: inherit; } .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset;
</s> remove .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5); color: $pt-dark-icon-color; } </s> add .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove .docs-logo { margin: $pt-grid-size; background-repeat: no-repeat; background-size: 100% auto; width: $logo-width; // SVG is width:height radio is 1:1.2 height: ceil($logo-width * 1.2); } .docs-heading { margin-right: $pt-grid-size; // vertically centers heading with version selector margin-bottom: 2px; font-weight: 600; } .docs-version-selector { border: none; box-shadow: none; background: none; </s> add .docs-nav-button { @include pt-flex-container(row, $pt-grid-size + 4px); margin-left: -$nav-divider-offset; </s> remove .pt-menu-item.pt-active .docs-result-path { color: $white; } </s> add </s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7);
}
color: inherit; } } .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset;
[ "keep", "add", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
.pt-icon { color: inherit; } .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5); color: $pt-dark-icon-color; } }
</s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7); </s> remove .pt-menu-item.pt-active .docs-result-path { color: $white; } </s> add </s> remove .docs-content { // leave space for nav menu on the left (position: fixed) margin-left: $sidebar-width; padding: 0 $sidebar-padding $content-padding $content-padding; </s> add .docs-content-wrapper { flex-basis: $content-width; align-items: flex-start; outline: none; background-color: $content-background-color; .pt-dark & { background-color: $dark-content-background-color; }
.docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0;
.pt-icon { color: inherit; } .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navbar.scss
// Copyright 2017 Palantir Technologies, Inc. All rights reserved. // Licensed under the terms of the LICENSE file distributed with this project. $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width;
</s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; </s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core";
$navigator-width: $pt-grid-size * 40;
// Copyright 2017 Palantir Technologies, Inc. All rights reserved. // Licensed under the terms of the LICENSE file distributed with this project. $navigator-width: $pt-grid-size * 40; $navigator-width: $pt-grid-size * 40; .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width;
[ "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navigator.scss
$navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } .pt-menu { max-height: $navigator-height; overflow: auto; }
</s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40; </s> remove .pt-menu { max-height: $navigator-height; overflow: auto; </s> add .pt-menu-item small { // center-align text and SVG icons display: flex; </s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7); </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color);
.docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width;
$navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; .pt-menu { max-height: $navigator-height; overflow: auto; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navigator.scss
.pt-menu { min-width: $navigator-min-width; } .pt-menu { max-height: $navigator-height; overflow: auto; } .pt-menu-item { flex-direction: column; align-items: flex-start;
</s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7); </s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; </s> remove .docs-logo { background-image: url("./assets/blueprint-logo.svg"); } </s> add </s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40;
.pt-menu-item small { // center-align text and SVG icons display: flex;
.pt-menu { min-width: $navigator-min-width; } .pt-menu-item small { // center-align text and SVG icons display: flex; .pt-menu-item small { // center-align text and SVG icons display: flex; .pt-menu-item small { // center-align text and SVG icons display: flex; } .pt-menu-item { flex-direction: column; align-items: flex-start;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navigator.scss
max-height: $navigator-height; overflow: auto; } .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } } } .pt-menu-item.pt-active .docs-result-path { color: $white;
</s> remove .pt-menu { max-height: $navigator-height; overflow: auto; </s> add .pt-menu-item small { // center-align text and SVG icons display: flex; </s> remove .pt-menu-item.pt-active .docs-result-path { color: $white; } </s> add </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width;
.pt-menu-item.pt-active small { color: rgba($white, 0.7);
max-height: $navigator-height; overflow: auto; } .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); .pt-menu-item.pt-active small { color: rgba($white, 0.7); } } .pt-menu-item.pt-active .docs-result-path { color: $white;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navigator.scss
background: inherit; } } } .pt-menu-item.pt-active .docs-result-path { color: $white; }
</s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7); </s> remove .pt-dark & { @include pt-button-minimal-intent($gold4, $gold4, $gold5); color: $pt-dark-icon-color; } </s> add .docs-nav-divider { @include divider-gradient($pt-divider-black, $pt-dark-divider-black); margin-left: -$nav-divider-offset; background-image: linear-gradient(to right, rgba($black, 0) 0%, $pt-divider-black 40%); height: 1px; padding: 0; </s> remove color: $pt-text-color; } .pt-dark &:hover { color: $pt-dark-text-color; } .pt-popover-open & { // make button look hovered when popover is open // stylelint-disable-next-line scss/at-extend-no-missing-placeholder @extend :hover; } } .docs-version-list { min-width: $pt-grid-size * 12; max-height: $pt-grid-size * 20; overflow: auto; } // long selector necessary to override blueprint styles .pt-button-group.pt-minimal .pt-button.docs-dark-switch { @include pt-button-minimal-intent($indigo3, $indigo3, $indigo4); color: $pt-icon-color; .pt-icon { </s> add @include divider-gradient($content-background-color, $dark-content-background-color); </s> remove padding: 0; </s> add padding: $pt-grid-size $sidebar-padding; padding-left: $nav-divider-offset + 4px;
background: inherit; } } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_navigator.scss
} .docs-interface-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; padding: $pt-grid-size 0; font-family: $pt-font-family-monospace;
</s> remove margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; </s> add position: relative; box-shadow: 0 1px 0 $pt-divider-black; </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0; </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove } // modifiers table .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; th:first-child, td:first-child { padding-left: 0; } </s> add
align-items: center;
} .docs-interface-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; padding: $pt-grid-size 0; font-family: $pt-font-family-monospace;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_props.scss
.docs-interface-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; padding: $pt-grid-size 0; font-family: $pt-font-family-monospace; font-size: $pt-font-size-large; font-weight: 600;
</s> remove align-items: flex-end; </s> add align-items: center; </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove width: $content-width; </s> add box-shadow: $pt-elevation-shadow-4; background: $sidebar-background-color; width: 50vw; min-width: $pt-grid-size * 50; max-width: $pt-grid-size * 80; padding: 0;
position: relative; box-shadow: 0 1px 0 $pt-divider-black;
.docs-interface-header { display: flex; align-items: flex-end; justify-content: space-between; position: relative; box-shadow: 0 1px 0 $pt-divider-black; position: relative; box-shadow: 0 1px 0 $pt-divider-black; padding: $pt-grid-size 0; font-family: $pt-font-family-monospace; font-size: $pt-font-size-large; font-weight: 600;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_props.scss
font-family: $pt-font-family-monospace; font-size: $pt-font-size-large; font-weight: 600; .pt-dark & { box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; }
</s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; </s> add position: relative; box-shadow: 0 1px 0 $pt-divider-black; </s> remove } </s> add </s> remove top: 0; width: inherit; </s> add box-shadow: 1px 0 0 $pt-divider-black; background-color: $sidebar-background-color; width: $sidebar-width + $background-shift; height: 100vh; overflow-y: auto; padding-bottom: $sidebar-padding * 2; // these rules allow the nav background-color to cover all area to the left // stylelint-disable-next-line order/properties-order margin-left: -$background-shift; padding-left: $background-shift; .pt-dark & { box-shadow: 1px 0 0 $pt-dark-divider-black; background-color: $dark-sidebar-background-color; } > * { padding: $sidebar-padding; padding-left: 0; } </s> remove // shift entire page down by $banner-height pixels, when banner is present .docs-banner + .docs-root { .docs-anchor { margin-top: -$pt-navbar-height - $content-padding - $banner-height; } </s> add + .docs-app { padding-top: $banner-height;
// optional interface description + .docs-section { display: flex; flex-direction: column; margin-top: $pt-grid-size; box-shadow: 0 1px 0 $pt-divider-black; }
font-family: $pt-font-family-monospace; font-size: $pt-font-size-large; font-weight: 600; // optional interface description + .docs-section { display: flex; flex-direction: column; margin-top: $pt-grid-size; box-shadow: 0 1px 0 $pt-divider-black; } .pt-dark & { box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; }
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_props.scss
font-size: $pt-font-size-large; font-weight: 600; .pt-dark & { border-bottom-color: $pt-dark-divider-white; } }
</s> remove margin-bottom: $pt-grid-size; border-bottom: 1px solid $pt-divider-black; </s> add position: relative; box-shadow: 0 1px 0 $pt-divider-black; </s> remove .docs-nav-expand-all .docs-nav-menu { // sometimes you need to show all the sections display: block !important; // stylelint-disable-line declaration-no-important </s> add .docs-nav-section { opacity: 0.5; margin-top: $pt-grid-size * 2; margin-bottom: $pt-grid-size; text-transform: uppercase; font-size: small; font-weight: 600; // dedent menu under a section title + .docs-nav-menu { margin-left: 0; } </s> remove box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; </s> add background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%); </s> remove // nested menus are hidden by default .docs-nav-menu .docs-nav-menu { display: none; </s> add .docs-nav-menu { .pt-menu-item { padding-right: $pt-grid-size; padding-left: 0; white-space: initial; &:hover, &.pt-active, &.docs-nav-expanded { // bold text instead of background color background-color: transparent !important; // stylelint-disable-line declaration-no-important font-weight: 600; } @each $depth in (1, 2, 3, 4, 5) { &.depth-#{$depth} { padding-left: $nav-item-indent * $depth; } } } .docs-nav-menu { // nested menus are hidden by default display: none; // nested menus indent automatically margin-left: $nav-item-indent; } .docs-nav-expanded + & { display: block; }
box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0;
font-size: $pt-font-size-large; font-weight: 600; .pt-dark & { box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; } }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_props.scss
td:first-child { padding-left: 0; } }
</s> remove tr:first-child th { padding-top: 0; </s> add &:hover { text-decoration: none; </s> remove } // modifiers table .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; th:first-child, td:first-child { padding-left: 0; } </s> add </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove .pt-navbar.docs-navbar { box-shadow: $navbar-box-shadow; background-color: $content-background-color; padding-right: $sidebar-padding; padding-left: 0; .pt-navbar-group { padding-left: $pt-grid-size; &-left { // allow extra space for long version strings width: $sidebar-width + ($pt-grid-size * 2); padding-left: 0; } // last child fills remaining space and right-aligns children &-right { flex: 1 1 auto; justify-content: flex-end; } } </s> add @mixin divider-gradient($color, $dark-color) { background-image: linear-gradient(to right, rgba($color, 0) 0%, $color 40%);
tr:last-child td { padding-bottom: 0; } } // modifiers table parent .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2;
td:first-child { padding-left: 0; } tr:last-child td { padding-bottom: 0; } } // modifiers table parent .docs-modifiers { margin-top: $heading-margin; margin-bottom: $heading-margin / 2; }
[ "keep", "keep", "add", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_props.scss
@import "~@blueprintjs/core/src/common/mixins"; $container-width: $pt-grid-size * 100; $sidebar-width: $pt-grid-size * 22; $sidebar-padding: $pt-grid-size; $content-width: $container-width - $sidebar-width; $content-padding: $pt-grid-size * 3; $content-background-color: $light-gray5; $dark-content-background-color: $dark-gray3;
</s> remove $content-padding: $pt-grid-size * 3; </s> add $content-padding: $pt-grid-size * 2; </s> remove $nav-item-height: $pt-grid-size * 3; $nav-item-line-height: 16px; $nav-item-padding: $pt-grid-size; </s> add </s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; </s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40; </s> remove /* All the components that live *inside* the navbar. */ </s> add $nav-divider-offset: $pt-grid-size * 5;
$sidebar-width: $pt-grid-size * 27; $sidebar-padding: $pt-grid-size * 1.5; $sidebar-background-color: $white; $dark-sidebar-background-color: $dark-gray4;
@import "~@blueprintjs/core/src/common/mixins"; $container-width: $pt-grid-size * 100; $sidebar-width: $pt-grid-size * 27; $sidebar-padding: $pt-grid-size * 1.5; $sidebar-background-color: $white; $dark-sidebar-background-color: $dark-gray4; $sidebar-width: $pt-grid-size * 27; $sidebar-padding: $pt-grid-size * 1.5; $sidebar-background-color: $white; $dark-sidebar-background-color: $dark-gray4; $content-width: $container-width - $sidebar-width; $content-padding: $pt-grid-size * 3; $content-background-color: $light-gray5; $dark-content-background-color: $dark-gray3;
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_variables.scss
$sidebar-width: $pt-grid-size * 22; $sidebar-padding: $pt-grid-size; $content-width: $container-width - $sidebar-width; $content-padding: $pt-grid-size * 3; $content-background-color: $light-gray5; $dark-content-background-color: $dark-gray3; $options-width: $pt-grid-size * 18; $options-margin: $pt-grid-size * 3;
</s> remove $sidebar-width: $pt-grid-size * 22; $sidebar-padding: $pt-grid-size; </s> add $sidebar-width: $pt-grid-size * 27; $sidebar-padding: $pt-grid-size * 1.5; $sidebar-background-color: $white; $dark-sidebar-background-color: $dark-gray4; </s> remove $nav-item-height: $pt-grid-size * 3; $nav-item-line-height: 16px; $nav-item-padding: $pt-grid-size; </s> add </s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; </s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40;
$content-padding: $pt-grid-size * 2;
$sidebar-width: $pt-grid-size * 22; $sidebar-padding: $pt-grid-size; $content-width: $container-width - $sidebar-width; $content-padding: $pt-grid-size * 2; $content-background-color: $light-gray5; $dark-content-background-color: $dark-gray3; $options-width: $pt-grid-size * 18; $options-margin: $pt-grid-size * 3;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/styles/_variables.scss
* * Licensed under the terms of the LICENSE file distributed with this project. */ import { Icon } from "@blueprintjs/core"; import { ITag } from "documentalist/dist/client"; import * as React from "react"; export interface IExample { sourceUrl: string;
</s> remove import { Icon, Menu, MenuItem, Popover, Position, setHotkeysDialogProps } from "@blueprintjs/core"; </s> add import { Classes, setHotkeysDialogProps } from "@blueprintjs/core"; </s> remove import { Classes, Intent, Tag } from "@blueprintjs/core"; </s> add import { Classes, Intent, IProps, Tag } from "@blueprintjs/core"; </s> remove import { Classes, Hotkey, Hotkeys, HotkeysTarget, InputGroup, Keys, Popover, Position, Utils } from "@blueprintjs/core"; import { IconContents } from "@blueprintjs/icons"; </s> add import { Classes, Icon, MenuItem } from "@blueprintjs/core"; import { ItemListPredicate, ItemRenderer, Omnibar } from "@blueprintjs/select";
import { AnchorButton, Classes, Intent } from "@blueprintjs/core";
* * Licensed under the terms of the LICENSE file distributed with this project. */ import { AnchorButton, Classes, Intent } from "@blueprintjs/core"; import { ITag } from "documentalist/dist/client"; import * as React from "react"; export interface IExample { sourceUrl: string;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/reactExample.tsx
export const ReactExample: React.SFC<IExampleProps> = props => ( <div className="docs-example-wrapper"> {props.example.render({ id: props.name })} <a className="view-example-source" href={props.example.sourceUrl} target="_blank"> <Icon icon="code" /> View source on GitHub </a> </div> ); ReactExample.displayName = "Docs2.ReactExample"; export class ReactExampleTagRenderer {
</s> remove <div className="pt-text-muted" key="_versions"> v{versions[0].version} </s> add <div className={classNames("docs-nav-package", props.className)} data-route={props.section.route}> <a className="pt-menu-item" href={props.href} onClick={props.onClick}> <NavIcon route={props.section.route} /> <span>{props.section.title}</span> </a> {pkg && ( <a className={Classes.TEXT_MUTED} href={pkg.url} target="_blank"> <small>{pkg.version}</small> </a> )} </s> remove export interface INavMenuItemProps extends IProps { item: IPageNode | IHeadingNode; isActive: boolean; onClick: (reference: string) => void; } // tslint:disable-next-line:max-line-length export const NavMenuItem: React.SFC<INavMenuItemProps & { children?: React.ReactNode }> = props => { const { item } = props; const classes = classNames( "docs-menu-item", `docs-menu-item-${isPageNode(item) ? "page" : "heading"}`, `depth-${item.level}`, props.className, ); const itemClasses = classNames(Classes.MENU_ITEM, { [Classes.ACTIVE]: props.isActive, [Classes.INTENT_PRIMARY]: props.isActive, }); const handleClick = () => props.onClick(item.route); return ( <li className={classes} key={item.route}> <a className={itemClasses} href={"#" + item.route} onClick={handleClick}> {item.title} </a> {props.children} </li> ); }; NavMenuItem.displayName = "Docs2.NavMenuItem"; </s> add </s> remove const navbarLeft = [ <a className="docs-logo" href="/" key="_logo" />, <div className="pt-navbar-heading docs-heading" key="_title"> Blueprint </div>, this.renderVersionsMenu(), ]; const navbarRight = ( <NavbarActions </s> add const banner = ( <Banner href="http://blueprintjs.com/docs/v1/"> This documentation is for Blueprint v2, which is currently under development. Click here to go to the v1 docs. </Banner> ); const header = ( <NavHeader </s> remove const pageContents = renderBlock(page, tagRenderers); </s> add // apply running text styles to blocks in pages (but not on blocks in examples) const pageContents = renderBlock(page, tagRenderers, Classes.RUNNING_TEXT); </s> remove <div className="docs-interface-table"> {renderBlock(data.documentation)} <p className="docs-code">= {renderType(data.type)}</p> </div> </s> add {renderBlock(data.documentation)} <div className="docs-type-alias docs-code">{aliases}</div>
<AnchorButton className={Classes.MINIMAL} href={props.example.sourceUrl} icon="code" intent={Intent.PRIMARY} target="_blank" text="View source on GitHub" />
export const ReactExample: React.SFC<IExampleProps> = props => ( <div className="docs-example-wrapper"> {props.example.render({ id: props.name })} <AnchorButton className={Classes.MINIMAL} href={props.example.sourceUrl} icon="code" intent={Intent.PRIMARY} target="_blank" text="View source on GitHub" /> <AnchorButton className={Classes.MINIMAL} href={props.example.sourceUrl} icon="code" intent={Intent.PRIMARY} target="_blank" text="View source on GitHub" /> <AnchorButton className={Classes.MINIMAL} href={props.example.sourceUrl} icon="code" intent={Intent.PRIMARY} target="_blank" text="View source on GitHub" /> </div> ); ReactExample.displayName = "Docs2.ReactExample"; export class ReactExampleTagRenderer {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/reactExample.tsx
* Licensed under the terms of the LICENSE file distributed with this project. */ import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias,
</s> remove import { Icon } from "@blueprintjs/core"; </s> add import { AnchorButton, Classes, Intent } from "@blueprintjs/core"; </s> remove .docs-api-dialog { width: auto; height: 80vh; padding: 0; </s> add .docs-api-overlay { </s> remove $navigator-height: $pt-grid-size * 24.5; $navigator-min-width: $pt-grid-size * 22; </s> add $navigator-width: $pt-grid-size * 40;
import { IProps } from "@blueprintjs/core";
* Licensed under the terms of the LICENSE file distributed with this project. */ import { IProps } from "@blueprintjs/core"; import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/typescript.tsx
import { EnumTable } from "../components/typescript/enumTable"; import { InterfaceTable } from "../components/typescript/interfaceTable"; import { TypeAliasTable } from "../components/typescript/typeAliasTable"; export const TypescriptExample: React.SFC<ITag> = ({ value }, { getDocsData }: IDocumentationContext) => { const { typescript } = getDocsData() as ITypescriptPluginData; if (typescript == null || typescript[value] == null) { return null; } const member = typescript[value];
</s> remove import { NavbarActions } from "./navbarActions"; </s> add import { NavHeader } from "./navHeader"; import { NavIcon } from "./navIcons"; </s> remove import { Banner, Documentation, IDocumentationProps } from "@blueprintjs/docs-theme"; import { ITsDocBase } from "documentalist/dist/client"; </s> add import { Banner, Documentation, IDocumentationProps, INavMenuItemProps, NavMenuItem } from "@blueprintjs/docs-theme"; import classNames from "classnames"; import { isPageNode, ITsDocBase } from "documentalist/dist/client"; </s> remove export interface ITypeAliasTableProps { </s> add export interface ITypeAliasTableProps extends IProps { </s> remove import { findDOMNode } from "react-dom"; </s> add </s> remove import { createKeyEventHandler, eachLayoutNode } from "../common/utils"; import { handleStringChange } from "./baseExample"; </s> add import { eachLayoutNode } from "../common/utils";
export const TypescriptExample: React.SFC<ITag & IProps> = ( { className, value }, { getDocsData }: IDocumentationContext, ) => {
import { EnumTable } from "../components/typescript/enumTable"; import { InterfaceTable } from "../components/typescript/interfaceTable"; import { TypeAliasTable } from "../components/typescript/typeAliasTable"; export const TypescriptExample: React.SFC<ITag & IProps> = ( { className, value }, { getDocsData }: IDocumentationContext, ) => { const { typescript } = getDocsData() as ITypescriptPluginData; if (typescript == null || typescript[value] == null) { return null; } const member = typescript[value];
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/typescript.tsx
const member = typescript[value]; if (member === undefined) { throw new Error(`Unknown @interface ${name}`); } else if (isTsClass(member) || isTsInterface(member)) { return <InterfaceTable data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable data={member} />; } else {
</s> remove return <EnumTable data={member} />; </s> add return <EnumTable className={className} data={member} />; </s> remove return <TypeAliasTable data={member} />; </s> add return <TypeAliasTable className={className} data={member} />; </s> remove return <div className="docs-section pt-running-text" dangerouslySetInnerHTML={{ __html: node }} key={i} />; </s> add return <div className={textClassName} key={i} dangerouslySetInnerHTML={{ __html: node }} />; </s> remove return []; </s> add return null; </s> remove return block.contents.map((node, i) => { </s> add const contents = block.contents.map((node, i) => {
return <InterfaceTable className={className} data={member} title="Props" />;
const member = typescript[value]; if (member === undefined) { throw new Error(`Unknown @interface ${name}`); } else if (isTsClass(member) || isTsInterface(member)) { return <InterfaceTable className={className} data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable data={member} />; } else {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/typescript.tsx
throw new Error(`Unknown @interface ${name}`); } else if (isTsClass(member) || isTsInterface(member)) { return <InterfaceTable data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable data={member} />; } else { throw new Error(`"@interface ${name}": unknown member kind "${(member as any).kind}"`); }
</s> remove return <TypeAliasTable data={member} />; </s> add return <TypeAliasTable className={className} data={member} />; </s> remove return <InterfaceTable data={member} title="Props" />; </s> add return <InterfaceTable className={className} data={member} title="Props" />; </s> remove return <div className="docs-section pt-running-text" dangerouslySetInnerHTML={{ __html: node }} key={i} />; </s> add return <div className={textClassName} key={i} dangerouslySetInnerHTML={{ __html: node }} />; </s> remove return []; </s> add return null; </s> remove return block.contents.map((node, i) => { </s> add const contents = block.contents.map((node, i) => {
return <EnumTable className={className} data={member} />;
throw new Error(`Unknown @interface ${name}`); } else if (isTsClass(member) || isTsInterface(member)) { return <InterfaceTable data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable className={className} data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable data={member} />; } else { throw new Error(`"@interface ${name}": unknown member kind "${(member as any).kind}"`); }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/typescript.tsx
return <InterfaceTable data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable data={member} />; } else { throw new Error(`"@interface ${name}": unknown member kind "${(member as any).kind}"`); } }; TypescriptExample.contextTypes = DocumentationContextTypes;
</s> remove return <EnumTable data={member} />; </s> add return <EnumTable className={className} data={member} />; </s> remove return <InterfaceTable data={member} title="Props" />; </s> add return <InterfaceTable className={className} data={member} title="Props" />; </s> remove return <div className="docs-section pt-running-text" dangerouslySetInnerHTML={{ __html: node }} key={i} />; </s> add return <div className={textClassName} key={i} dangerouslySetInnerHTML={{ __html: node }} />; </s> remove return []; </s> add return null; </s> remove return block.contents.map((node, i) => { </s> add const contents = block.contents.map((node, i) => {
return <TypeAliasTable className={className} data={member} />;
return <InterfaceTable data={member} title="Props" />; } else if (isTsEnum(member)) { return <EnumTable data={member} />; } else if (isTsTypeAlias(member)) { return <TypeAliasTable className={className} data={member} />; } else { throw new Error(`"@interface ${name}": unknown member kind "${(member as any).kind}"`); } }; TypescriptExample.contextTypes = DocumentationContextTypes;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/docs-theme/src/tags/typescript.tsx
max-height: calc(#{$omnibar-height} - #{$omnibar-input-height}); overflow: auto; } .pt-dark &, &.pt-dark { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-gray4;
</s> remove padding: $pt-grid-size ($pt-grid-size * 2) ($pt-grid-size * 2); </s> add padding-bottom: $pt-grid-size * 2; th:first-child, td:first-child { padding-left: $pt-grid-size * 2; } td:last-child { padding-right: $pt-grid-size * 2; } } &.pt-dark { .docs-modifiers { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-sidebar-background-color; } </s> remove border-bottom-color: $pt-dark-divider-white; </s> add box-shadow: 0 1px 0 $pt-dark-divider-white; + .docs-section { box-shadow: 0 1px 0 $pt-dark-divider-white; } } } .docs-package-name { // adjusts text baseline with interface name margin-top: $pt-font-size-large - $pt-font-size; } .docs-type-alias { overflow: auto; padding: $pt-grid-size ($pt-grid-size * 2); } .docs-modifiers-table { th:first-child, td:first-child { padding-left: 0; </s> remove .docs-navigator { .pt-input, .pt-menu { min-width: $navigator-min-width; } </s> add .docs-navigator-menu { left: calc(50% - #{$navigator-width / 2}); width: $navigator-width; </s> remove .pt-menu-item { flex-direction: column; align-items: flex-start; &:not(.pt-active) { background: inherit; } </s> add .pt-menu-item.pt-active small { color: rgba($white, 0.7); </s> remove box-shadow: $dark-navbar-box-shadow; background-color: $dark-content-background-color; </s> add background-image: linear-gradient(to right, rgba($dark-color, 0) 0%, $dark-color 40%);
&:empty { display: none; }
max-height: calc(#{$omnibar-height} - #{$omnibar-input-height}); overflow: auto; &:empty { display: none; } } .pt-dark &, &.pt-dark { box-shadow: $pt-dark-elevation-shadow-4; background-color: $dark-gray4;
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[2.0] docs site redesign! (#2243) * new docs design * add icons for icons and select * move Banner into docs-theme * fix logo/title alignment * NavbarActions uses ButtonGroup * replace navbarLeft/Right props with one title prop * nav styles * refactor Navigator to use Omnibar, separate NavigatorTrigger SFC * add select dependency * add renderNavMenuItem prop to Documentation refactor NavMenu & NavMenuItem accordingly * refactor NavMenu styles and pull NavMenuItem to separate file * custom nav menu items in BlueprintDocs * rename JS table page * update timezone icon, mute pkg version link * big refactors to docs-theme flex layout with contrasting background on sidebar, cool nav buttons, lots of padding cleanup * NavbarActions => NavHeader, new style * tweak spacing variables * improve pkg icon colors * navigator styles * prevent body scrolling * prevent nav wrapper from scrolling horizontally * delete unnecessary SVG assets * update timezone icon * fill-rule -> fillRule * more squared off padding for the content * API dialog is now a an overlay * fix alignment of interface description and first th/td * tweak dark props overlay shadow * Documentation banner prop, simplify banner styles * start fixing TypeAliasTable * dark theme on API overlay * fix type alias style * navigator changes hash * fix package name alignment in modifiers table * remove outline on content wrapper (because of tabIndex) * fix running-text issues with optional className in renderBlock * versions menu in navHeader * delete unused navbar styles, move some to docs-app * KeyCombo minimal modifiers renders short hotkey, use it in NavButton * fix padding on docs-section in interface table * fix padding of interface docs * renderBlock wraps all contents in a single element * fix Color aliases table, remove huge unused comment * use interactive tags for View Source links * move documentation scroll handler to fix scrollspy * small fixes: examples alignment, renderBlock key, banner height * fix the running-text problems once and for all! apply the class to direct parent of rendered markdown (ie, "running text") * docs-flex layout uses pt-flex-container, fix banner height * switch View Source link to minimal button (clickable) * fix icons list width * :star2: Components becomes non-interactive header that expands its menu! * switch back to body scroll container layout * prevent page shift when Overlay open: inject some styles to add padding equal to scrollbar width when Overlay open * restore scroll spy * new Logo component rendering logo SVG inline * refactor logo styles, delete old SVG files * small navigator style fixes close navigator when an item is selected, in case it's the current section * fix docs-nav height with banner * fix sidebar width, remove left padding * fix api overlay desc size make sure the interface description doesn't shrink in api overlay * make copy to clipboard tick consistent everywhere
https://github.com/palantir/blueprint/commit/aa7c73670a867f3244f4001d83436244f4a0afc1
packages/select/src/components/omnibar/_omnibar.scss
"stylelint-config-palantir", "stylelint-config-palantir/sass.js" ], "rules": { "indentation": [2, { "ignore": ["value"] }], "max-line-length": [ 100, { "ignore": ["comments"] }
</s> remove ignore: ["value"] </s> add "ignore": ["value"] </s> remove "selector-no-attribute": null </s> add "selector-max-universal": 1 </s> remove import { Utils } from "../index"; </s> add import { Utils } from "../common/utils"; </s> remove "resources/favicon.png": { to: ["assets/"], base: "resources/" }, </s> add "resources/favicon.png": { to: ["resources/"], base: "resources/" }, </s> remove const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; </s> add
"declaration-empty-line-before": null,
"stylelint-config-palantir", "stylelint-config-palantir/sass.js" ], "rules": { "declaration-empty-line-before": null, "indentation": [2, { "ignore": ["value"] }], "max-line-length": [ 100, { "ignore": ["comments"] }
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
.stylelintrc
"stylelint-config-palantir/sass.js" ], "rules": { "indentation": [2, { ignore: ["value"] }], "max-line-length": [ 100, { "ignore": ["comments"] } ],
</s> remove "selector-no-attribute": null </s> add "selector-max-universal": 1 </s> remove "resources/favicon.png": { to: ["assets/"], base: "resources/" }, </s> add "resources/favicon.png": { to: ["resources/"], base: "resources/" }, </s> remove import { Utils } from "../index"; </s> add import { Utils } from "../common/utils"; </s> remove const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; </s> add
"ignore": ["value"]
"stylelint-config-palantir/sass.js" ], "rules": { "indentation": [2, { "ignore": ["value"] }], "max-line-length": [ 100, { "ignore": ["comments"] } ],
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
.stylelintrc
"max-line-length": [ 100, { "ignore": ["comments"] } ], "selector-no-attribute": null } }
</s> remove ignore: ["value"] </s> add "ignore": ["value"] </s> remove import { Utils } from "../index"; </s> add import { Utils } from "../common/utils"; </s> remove "lerna": "2.0.0-beta.30", </s> add "lerna": "2.0.0", </s> remove assert.equal(selectedDayElements.at(0).text(), minDate.getDate()); </s> add assert.equal(selectedDayElements.at(0).text(), minDate.getDate().toString());
"selector-max-universal": 1
"max-line-length": [ 100, { "ignore": ["comments"] } ], "selector-max-universal": 1 } }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
.stylelintrc
"react-dom", ], }, copy: { "resources/favicon.png": { to: ["assets/"], base: "resources/" }, "src/index.html": { to: [""], base: "src/" }, }, }, { id: "site-landing", cwd: "packages/site-landing/",
</s> remove "autoprefixer": "6.5.1", </s> add "autoprefixer": "7.1.2", </s> remove const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; </s> add </s> remove "sass-loader": "4.0.0", "style-loader": "0.13.1", "svgo": "0.7.1", "ts-loader": "0.8.2", </s> add "sass-loader": "4.1.1", "style-loader": "0.18.2", "svgo": "0.7.2", "ts-loader": "1.3.3", </s> remove ignore: ["value"] </s> add "ignore": ["value"] </s> remove // rebase all urls due to inlining postcssUrl({ url: "rebase" }), // copy assets to dist folder, respecting rebase postcssCopyAssets({ pathTransform: (newPath, origPath) => { return path.resolve( blueprint.destPath(project), "assets", path.basename(origPath) ); }, </s> add // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy",
"resources/favicon.png": { to: ["resources/"], base: "resources/" },
"react-dom", ], }, copy: { "resources/favicon.png": { to: ["resources/"], base: "resources/" }, "src/index.html": { to: [""], base: "src/" }, }, }, { id: "site-landing", cwd: "packages/site-landing/",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
Gulpfile.js
module.exports = (blueprint, gulp, plugins) => { const autoprefixer = require("autoprefixer"); const path = require("path"); const packageImporter = require("node-sass-package-importer"); const postcssCopyAssets = require("postcss-copy-assets"); const postcssImport = require("postcss-import"); const postcssUrl = require("postcss-url"); const COPYRIGHT_HEADER = require("./util/text").COPYRIGHT_HEADER; const blueprintCwd = blueprint.findProject("core").cwd;
</s> remove assert.equal(selectedDays.at(0).text(), today.getDate()); </s> add assert.equal(selectedDays.at(0).text(), today.getDate().toString()); </s> remove assert.equal(monthSelects[0].getAttribute("value"), Months.FEBRUARY); assert.equal(monthSelects[monthSelects.length - 1].getAttribute("value"), Months.DECEMBER); </s> add const assertValueAt = (index: number, month: Months) => assert.equal(monthSelects[index].getAttribute("value"), month.toString()); assertValueAt(0, Months.FEBRUARY); assertValueAt(monthSelects.length - 1, Months.DECEMBER); </s> remove assert.equal(monthSelects[0].getAttribute("value"), Months.JANUARY); assert.equal(monthSelects[monthSelects.length - 1].getAttribute("value"), Months.NOVEMBER); </s> add const assertValueAt = (index: number, month: Months) => assert.equal(monthSelects[index].getAttribute("value"), month.toString()); assertValueAt(0, Months.JANUARY); assertValueAt(monthSelects.length - 1, Months.NOVEMBER); </s> remove assert.equal(selectedDays[0].textContent, today.getDate()); </s> add assert.equal(selectedDays[0].textContent, today.getDate().toString()); </s> remove assert.equal(getSelectedDays().at(0).text(), value.getDate()); </s> add assert.equal(getSelectedDays().at(0).text(), value.getDate().toString());
module.exports = (blueprint, gulp, plugins) => { const autoprefixer = require("autoprefixer"); const path = require("path"); const packageImporter = require("node-sass-package-importer"); const postcssImport = require("postcss-import"); const postcssUrl = require("postcss-url"); const COPYRIGHT_HEADER = require("./util/text").COPYRIGHT_HEADER; const blueprintCwd = blueprint.findProject("core").cwd;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
gulp/sass.js
if (isDevMode) { sassCompiler.on("error", plugins.sass.logError); } const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; const postcssPlugins = project.sass === "bundle" ? [ // inline all imports postcssImport(), // rebase all urls due to inlining postcssUrl({ url: "rebase" }),
</s> remove // rebase all urls due to inlining postcssUrl({ url: "rebase" }), // copy assets to dist folder, respecting rebase postcssCopyAssets({ pathTransform: (newPath, origPath) => { return path.resolve( blueprint.destPath(project), "assets", path.basename(origPath) ); }, </s> add // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", </s> remove .pipe(plugins.postcss(postcssPlugins, postcssOptions)) </s> add .pipe(plugins.postcss(postcssPlugins, { to : blueprint.destPath(project, "dist.css"), })) </s> remove assert.equal(selectedDays.at(0).text(), today.getDate()); </s> add assert.equal(selectedDays.at(0).text(), today.getDate().toString()); </s> remove const postcssCopyAssets = require("postcss-copy-assets"); </s> add </s> remove assert.equal(getSelectedDays().at(0).text(), value.getDate()); </s> add assert.equal(getSelectedDays().at(0).text(), value.getDate().toString());
if (isDevMode) { sassCompiler.on("error", plugins.sass.logError); } const postcssPlugins = project.sass === "bundle" ? [ // inline all imports postcssImport(), // rebase all urls due to inlining postcssUrl({ url: "rebase" }),
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
gulp/sass.js
}; const postcssPlugins = project.sass === "bundle" ? [ // inline all imports postcssImport(), // rebase all urls due to inlining postcssUrl({ url: "rebase" }), // copy assets to dist folder, respecting rebase postcssCopyAssets({ pathTransform: (newPath, origPath) => { return path.resolve( blueprint.destPath(project), "assets", path.basename(origPath) ); }, }), ] : []; // always run autoprefixer postcssPlugins.push(autoprefixer(config.autoprefixer));
</s> remove const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; </s> add </s> remove .pipe(plugins.postcss(postcssPlugins, postcssOptions)) </s> add .pipe(plugins.postcss(postcssPlugins, { to : blueprint.destPath(project, "dist.css"), })) </s> remove @import "~@blueprintjs/core/src/components/button/common"; </s> add </s> remove const postcssCopyAssets = require("postcss-copy-assets"); </s> add </s> remove assert.equal(getSelectedDays().at(0).text(), value.getDate()); </s> add assert.equal(getSelectedDays().at(0).text(), value.getDate().toString());
// copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy",
}; const postcssPlugins = project.sass === "bundle" ? [ // inline all imports postcssImport(), // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", }), ] : []; // always run autoprefixer postcssPlugins.push(autoprefixer(config.autoprefixer));
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
gulp/sass.js
return gulp.src(config.srcGlob(project, true)) .pipe(plugins.sourcemaps.init()) .pipe(sassCompiler) .pipe(plugins.postcss(postcssPlugins, postcssOptions)) .pipe(plugins.stripCssComments({ preserve: /^\*/ })) .pipe(plugins.replace(/\n{3,}/g, "\n\n")) // see https://github.com/floridoo/vinyl-sourcemaps-apply/issues/11#issuecomment-231220574 .pipe(plugins.sourcemaps.write(".", { sourceRoot: null })) .pipe(gulp.dest(blueprint.destPath(project)))
</s> remove // rebase all urls due to inlining postcssUrl({ url: "rebase" }), // copy assets to dist folder, respecting rebase postcssCopyAssets({ pathTransform: (newPath, origPath) => { return path.resolve( blueprint.destPath(project), "assets", path.basename(origPath) ); }, </s> add // copy all url() assets into dist/resources/... postcssUrl({ assetsPath: "./assets", basePath: [ // search current package and core resources "../resources", "../../core/resources", // if new resources are added to packages, they'll need to be listed here ], url: "copy", </s> remove "selector-no-attribute": null </s> add "selector-max-universal": 1 </s> remove const postcssOptions = { map: { inline: false }, to : blueprint.destPath(project, "dist.css"), }; </s> add </s> remove @import "~@blueprintjs/core/src/components/button/common"; </s> add </s> remove import { Utils } from "../index"; </s> add import { Utils } from "../common/utils";
.pipe(plugins.postcss(postcssPlugins, { to : blueprint.destPath(project, "dist.css"), }))
return gulp.src(config.srcGlob(project, true)) .pipe(plugins.sourcemaps.init()) .pipe(sassCompiler) .pipe(plugins.postcss(postcssPlugins, { to : blueprint.destPath(project, "dist.css"), })) .pipe(plugins.stripCssComments({ preserve: /^\*/ })) .pipe(plugins.replace(/\n{3,}/g, "\n\n")) // see https://github.com/floridoo/vinyl-sourcemaps-apply/issues/11#issuecomment-231220574 .pipe(plugins.sourcemaps.write(".", { sourceRoot: null })) .pipe(gulp.dest(blueprint.destPath(project)))
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
gulp/sass.js
{ "lerna": "2.0.0-beta.30", "version": "independent" }
</s> remove "lerna": "2.0.0-beta.30", "lodash": "4.16.4", </s> add "lerna": "2.0.0", "lodash": "4.17.4", </s> remove "karma-webpack": "1.8.0", </s> add "karma-webpack": "2.0.4", </s> remove "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1", "phantomjs-prebuilt": "2.1.13", "postcss-copy-assets": "0.3.0", "postcss-import": "8.2.0", "postcss-url": "5.1.2", </s> add "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", </s> remove import { Utils } from "../index"; </s> add import { Utils } from "../common/utils"; </s> remove "selector-no-attribute": null </s> add "selector-max-universal": 1
"lerna": "2.0.0",
{ "lerna": "2.0.0", "version": "independent" }
[ "keep", "replace", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
lerna.json
"@types/react-addons-css-transition-group": "0.14.17", "@types/react-addons-transition-group": "0.14.17", "@types/react-dom": "15.5.0", "@types/tether": "1.1.27", "autoprefixer": "6.5.2", "better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.0.0", "del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2",
</s> remove "chai": "4.0.0", "del": "2.2.2", </s> add "chai": "4.1.0", "del": "3.0.0", </s> remove "enzyme": "2.8.2", </s> add "enzyme": "2.9.1", </s> remove "gulp-concat": "2.6.0", </s> add "gulp-concat": "2.6.1", </s> remove "autoprefixer": "6.5.1", </s> add "autoprefixer": "7.1.2", </s> remove "css-loader": "0.23.1", </s> add "css-loader": "0.28.4",
"autoprefixer": "7.1.2",
"@types/react-addons-css-transition-group": "0.14.17", "@types/react-addons-transition-group": "0.14.17", "@types/react-dom": "15.5.0", "@types/tether": "1.1.27", "autoprefixer": "7.1.2", "better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.0.0", "del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"@types/react-dom": "15.5.0", "@types/tether": "1.1.27", "autoprefixer": "6.5.2", "better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.0.0", "del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2", "gulp": "3.9.1", "gulp-concat": "2.6.0", "gulp-connect": "5.0.0",
</s> remove "autoprefixer": "6.5.2", </s> add "autoprefixer": "7.1.2", </s> remove "enzyme": "2.8.2", </s> add "enzyme": "2.9.1", </s> remove "gulp-concat": "2.6.0", </s> add "gulp-concat": "2.6.1", </s> remove "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", </s> add "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", </s> remove "autoprefixer": "6.5.1", </s> add "autoprefixer": "7.1.2",
"chai": "4.1.0", "del": "3.0.0",
"@types/react-dom": "15.5.0", "@types/tether": "1.1.27", "autoprefixer": "6.5.2", "better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.1.0", "del": "3.0.0", "chai": "4.1.0", "del": "3.0.0", "documentalist": "0.0.6", "enzyme": "2.8.2", "gulp": "3.9.1", "gulp-concat": "2.6.0", "gulp-connect": "5.0.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.0.0", "del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2", "gulp": "3.9.1", "gulp-concat": "2.6.0", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0",
</s> remove "gulp-concat": "2.6.0", </s> add "gulp-concat": "2.6.1", </s> remove "chai": "4.0.0", "del": "2.2.2", </s> add "chai": "4.1.0", "del": "3.0.0", </s> remove "autoprefixer": "6.5.2", </s> add "autoprefixer": "7.1.2", </s> remove "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", </s> add "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", </s> remove "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", </s> add "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0",
"enzyme": "2.9.1",
"better-handlebars": "github:wmeldon/better-handlebars", "chai": "4.0.0", "del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.9.1", "gulp": "3.9.1", "gulp-concat": "2.6.0", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2", "gulp": "3.9.1", "gulp-concat": "2.6.0", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0", "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0",
</s> remove "enzyme": "2.8.2", </s> add "enzyme": "2.9.1", </s> remove "chai": "4.0.0", "del": "2.2.2", </s> add "chai": "4.1.0", "del": "3.0.0", </s> remove "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", </s> add "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", </s> remove "autoprefixer": "6.5.2", </s> add "autoprefixer": "7.1.2", </s> remove "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", </s> add "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0",
"gulp-concat": "2.6.1",
"del": "2.2.2", "documentalist": "0.0.6", "enzyme": "2.8.2", "gulp": "3.9.1", "gulp-concat": "2.6.1", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0", "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"gulp-concat": "2.6.0", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0", "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", "gulp-rename": "1.2.2", "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", "gulp-strip-css-comments": "1.2.0",
</s> remove "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", </s> add "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", </s> remove "gulp-concat": "2.6.0", </s> add "gulp-concat": "2.6.1", </s> remove "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", </s> add "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", </s> remove "enzyme": "2.8.2", </s> add "enzyme": "2.9.1", </s> remove "chai": "4.0.0", "del": "2.2.2", </s> add "chai": "4.1.0", "del": "3.0.0",
"gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0",
"gulp-concat": "2.6.0", "gulp-connect": "5.0.0", "gulp-count": "0.3.0", "gulp-insert": "0.5.0", "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", "gulp-rename": "1.2.2", "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", "gulp-strip-css-comments": "1.2.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", "gulp-rename": "1.2.2", "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", "gulp-strip-css-comments": "1.2.0", "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7",
</s> remove "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", </s> add "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", </s> remove "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", </s> add "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", </s> remove "http-server": "0.9.0", </s> add "http-server": "0.10.0", </s> remove "karma": "1.3.0", </s> add "karma": "1.7.0", </s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0",
"gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0",
"gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", "gulp-rename": "1.2.2", "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", "gulp-strip-css-comments": "1.2.0", "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", "gulp-strip-css-comments": "1.2.0", "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", "highlights": "3.0.1", "http-server": "0.9.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0",
</s> remove "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", </s> add "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", </s> remove "http-server": "0.9.0", </s> add "http-server": "0.10.0", </s> remove "karma": "1.3.0", </s> add "karma": "1.7.0", </s> remove "gulp-less": "3.1.0", "gulp-load-plugins": "1.3.0", "gulp-mocha": "3.0.1", "gulp-postcss": "6.2.0", </s> add "gulp-less": "3.3.2", "gulp-load-plugins": "1.5.0", "gulp-mocha": "4.3.1", "gulp-postcss": "7.0.0", </s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0",
"gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8",
"gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", "gulp-strip-css-comments": "1.2.0", "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", "highlights": "3.0.1", "http-server": "0.9.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", "highlights": "3.0.1", "http-server": "0.9.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0",
</s> remove "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", </s> add "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", </s> remove "karma": "1.3.0", </s> add "karma": "1.7.0", </s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0", </s> remove "gulp-replace": "0.5.4", "gulp-sass": "2.3.2", "gulp-sourcemaps": "1.6.0", </s> add "gulp-replace": "0.6.1", "gulp-sass": "3.1.0", "gulp-sourcemaps": "2.6.0", </s> remove "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", </s> add "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4",
"http-server": "0.10.0",
"gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", "highlights": "3.0.1", "http-server": "0.10.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"highlights": "3.0.1", "http-server": "0.9.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0",
</s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0", </s> remove "http-server": "0.9.0", </s> add "http-server": "0.10.0", </s> remove "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", </s> add "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", </s> remove "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", </s> add "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", </s> remove "css-loader": "0.23.1", </s> add "css-loader": "0.28.4",
"karma": "1.7.0",
"highlights": "3.0.1", "http-server": "0.9.0", "istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.7.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2",
</s> remove "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", </s> add "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", </s> remove "karma": "1.3.0", </s> add "karma": "1.7.0", </s> remove "http-server": "0.9.0", </s> add "http-server": "0.10.0", </s> remove "gulp-stylelint": "3.9.0", "gulp-tslint": "7.0.1", "gulp-typescript": "3.1.4", "gulp-util": "3.0.7", </s> add "gulp-stylelint": "4.0.0", "gulp-tslint": "8.1.1", "gulp-typescript": "3.2.1", "gulp-util": "3.0.8", </s> remove "karma-webpack": "1.8.0", </s> add "karma-webpack": "2.0.4",
"karma-chrome-launcher": "2.2.0",
"istanbul-instrumenter-loader": "0.2.0", "json-loader": "0.5.4", "karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.2.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", "karma-phantomjs-shim": "1.4.0", "karma-sinon": "1.0.5", "karma-sourcemap-loader": "0.3.7", "karma-webpack": "1.8.0", "language-less": "github:atom/language-less",
</s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0", </s> remove "karma-webpack": "1.8.0", </s> add "karma-webpack": "2.0.4", </s> remove "karma": "1.3.0", </s> add "karma": "1.7.0", </s> remove "lerna": "2.0.0-beta.30", "lodash": "4.16.4", </s> add "lerna": "2.0.0", "lodash": "4.17.4", </s> remove "http-server": "0.9.0", </s> add "http-server": "0.10.0",
"karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4",
"karma": "1.3.0", "karma-chai": "0.1.0", "karma-chrome-launcher": "2.0.0", "karma-coverage": "1.1.1", "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", "karma-phantomjs-shim": "1.4.0", "karma-sinon": "1.0.5", "karma-sourcemap-loader": "0.3.7", "karma-webpack": "1.8.0", "language-less": "github:atom/language-less",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"karma-phantomjs-launcher": "1.0.2", "karma-phantomjs-shim": "1.4.0", "karma-sinon": "1.0.5", "karma-sourcemap-loader": "0.3.7", "karma-webpack": "1.8.0", "language-less": "github:atom/language-less", "language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0-beta.30", "lodash": "4.16.4", "marked": "0.3.6",
</s> remove "lerna": "2.0.0-beta.30", "lodash": "4.16.4", </s> add "lerna": "2.0.0", "lodash": "4.17.4", </s> remove "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", </s> add "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", </s> remove "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1", "phantomjs-prebuilt": "2.1.13", "postcss-copy-assets": "0.3.0", "postcss-import": "8.2.0", "postcss-url": "5.1.2", </s> add "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", </s> remove "lerna": "2.0.0-beta.30", </s> add "lerna": "2.0.0", </s> remove "karma-chrome-launcher": "2.0.0", </s> add "karma-chrome-launcher": "2.2.0",
"karma-webpack": "2.0.4",
"karma-phantomjs-launcher": "1.0.2", "karma-phantomjs-shim": "1.4.0", "karma-sinon": "1.0.5", "karma-sourcemap-loader": "0.3.7", "karma-webpack": "2.0.4", "language-less": "github:atom/language-less", "language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0-beta.30", "lodash": "4.16.4", "marked": "0.3.6",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"karma-sourcemap-loader": "0.3.7", "karma-webpack": "1.8.0", "language-less": "github:atom/language-less", "language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0-beta.30", "lodash": "4.16.4", "marked": "0.3.6", "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1",
</s> remove "karma-webpack": "1.8.0", </s> add "karma-webpack": "2.0.4", </s> remove "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1", "phantomjs-prebuilt": "2.1.13", "postcss-copy-assets": "0.3.0", "postcss-import": "8.2.0", "postcss-url": "5.1.2", </s> add "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", </s> remove "karma-firefox-launcher": "1.0.0", "karma-mocha": "1.2.0", "karma-mocha-reporter": "2.2.0", "karma-phantomjs-launcher": "1.0.2", </s> add "karma-firefox-launcher": "1.0.1", "karma-mocha": "1.3.0", "karma-mocha-reporter": "2.2.3", "karma-phantomjs-launcher": "1.0.4", </s> remove "lerna": "2.0.0-beta.30", </s> add "lerna": "2.0.0", </s> remove "file-loader": "0.9.0", "http-server": "0.9.0", "imports-loader": "0.6.5", "json-loader": "0.5.4", "node-sass": "3.8.0", "npm-run-all": "2.3.0", "onchange": "3.0.2", </s> add "file-loader": "0.11.2", "http-server": "0.10.0", "imports-loader": "0.7.1", "json-loader": "0.5.7", "node-sass": "4.5.3", "npm-run-all": "4.0.2", "onchange": "3.2.1",
"lerna": "2.0.0", "lodash": "4.17.4",
"karma-sourcemap-loader": "0.3.7", "karma-webpack": "1.8.0", "language-less": "github:atom/language-less", "language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0", "lodash": "4.17.4", "lerna": "2.0.0", "lodash": "4.17.4", "marked": "0.3.6", "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json
"language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0-beta.30", "lodash": "4.16.4", "marked": "0.3.6", "merge-stream": "1.0.0", "mocha": "3.1.2", "node-sass-package-importer": "3.0.0", "npm-run-all": "3.1.1", "phantomjs-prebuilt": "2.1.13", "postcss-copy-assets": "0.3.0", "postcss-import": "8.2.0", "postcss-url": "5.1.2", "react": "15.5.1", "react-dom": "15.5.1", "react-test-renderer": "15.5.4", "run-sequence": "1.2.2", "sinon": "1.17.6",
</s> remove "lerna": "2.0.0-beta.30", "lodash": "4.16.4", </s> add "lerna": "2.0.0", "lodash": "4.17.4", </s> remove "run-sequence": "1.2.2", </s> add "run-sequence": "2.0.0", </s> remove "karma-webpack": "1.8.0", </s> add "karma-webpack": "2.0.4", </s> remove "file-loader": "0.9.0", "http-server": "0.9.0", "imports-loader": "0.6.5", "json-loader": "0.5.4", "node-sass": "3.8.0", "npm-run-all": "2.3.0", "onchange": "3.0.2", </s> add "file-loader": "0.11.2", "http-server": "0.10.0", "imports-loader": "0.7.1", "json-loader": "0.5.7", "node-sass": "4.5.3", "npm-run-all": "4.0.2", "onchange": "3.2.1", </s> remove "source-map-loader": "0.1.5", "string-replace-loader": "1.0.5", "stylelint": "7.9.0", "stylelint-config-palantir": "2.0.2", "stylelint-scss": "1.4.3", "ts-loader": "0.9.5", </s> add "source-map-loader": "0.2.1", "string-replace-loader": "1.3.0", "stylelint": "8.0.0", "stylelint-config-palantir": "2.1.0", "stylelint-config-standard": "17.0.0", "stylelint-scss": "1.5.1", "ts-loader": "1.3.3",
"merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1",
"language-typescript": "github:giladgray/language-typescript#10.1.15", "lerna": "2.0.0-beta.30", "lodash": "4.16.4", "marked": "0.3.6", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "merge-stream": "1.0.1", "mocha": "3.4.2", "node-sass-package-importer": "3.0.4", "npm-run-all": "4.0.2", "phantomjs-prebuilt": "2.1.14", "postcss-import": "10.0.0", "postcss-url": "7.1.1", "react": "15.5.1", "react-dom": "15.5.1", "react-test-renderer": "15.5.4", "run-sequence": "1.2.2", "sinon": "1.17.6",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
update development dependencies throughout (#1376) * update gulp dependencies * Update webpack loaders and misc tools * Update stylelint dependencies stylelint@8! postcss-url@7 supports copying assets so we can remove postcss-copy-assets entirely. (Note: resource paths are now dist/resources, not dist/assets) * Update karma dependencies, fix tests * upgrade site-landing dev deps
https://github.com/palantir/blueprint/commit/aac0f58792da928fe7fdff0bf543339f97a81ef3
package.json