chore(v2): upgrade Infima to 0.2.0-alpha.11 (#2773)

This commit is contained in:
Alexey Pyltsyn 2020-05-19 12:40:20 +03:00 committed by GitHub
parent da0f865831
commit 4f38d78118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 9 deletions

View File

@ -12,7 +12,7 @@
"@mdx-js/react": "^1.5.8",
"classnames": "^2.2.6",
"clipboard": "^2.0.6",
"infima": "0.2.0-alpha.10",
"infima": "0.2.0-alpha.11",
"parse-numeric-range": "^0.0.2",
"prism-react-renderer": "^1.1.0",
"prismjs": "^1.20.0",

View File

@ -17,8 +17,8 @@ import useTOCHighlight from '@theme/hooks/useTOCHighlight';
import classnames from 'classnames';
import styles from './styles.module.css';
const LINK_CLASS_NAME = 'contents__link';
const ACTIVE_LINK_CLASS_NAME = 'contents__link--active';
const LINK_CLASS_NAME = 'table-of-contents__link';
const ACTIVE_LINK_CLASS_NAME = 'table-of-contents__link--active';
const TOP_OFFSET = 100;
function DocTOC({headings}) {
@ -38,7 +38,10 @@ function Headings({headings, isChild}) {
return null;
}
return (
<ul className={isChild ? '' : 'contents contents__left-border'}>
<ul
className={
isChild ? '' : 'table-of-contents table-of-contents__left-border'
}>
{headings.map((heading) => (
<li key={heading.id}>
<a

View File

@ -10,7 +10,7 @@
}
.docSidebarContainer {
border-right: 1px solid var(--ifm-contents-border-color);
border-right: 1px solid var(--ifm-toc-border-color);
box-sizing: border-box;
width: 300px;
position: relative;

View File

@ -9054,10 +9054,10 @@ infer-owner@^1.0.3, infer-owner@^1.0.4:
resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467"
integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==
infima@0.2.0-alpha.10:
version "0.2.0-alpha.10"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.10.tgz#935aab3e7991fe746a942849f0e62f70c5be09e9"
integrity sha512-6Q+KXPhV8mve76segJpmdspV7pmRdKfK5mHllew+mjtRuQxDUivd3oaZjdIe6Y8SSCammnJqJox3orpSnc7QDQ==
infima@0.2.0-alpha.11:
version "0.2.0-alpha.11"
resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.11.tgz#62a7ce699684fb9106506370037b48a58608eb0a"
integrity sha512-k2roW8kzF9e7wQo8KTALY7lJRgU6bARSej5/ujA8fvJKyiDPTnzW/MgnDAelFWp6ZvCaEsBLkcv+n3FbjZnsZQ==
inflight@^1.0.4:
version "1.0.6"