fix #798: use latest version

This commit is contained in:
redonkulus 2020-05-14 10:26:34 -07:00
parent 3e55ea567b
commit cc57db4f59
2 changed files with 710 additions and 702 deletions

View File

@ -1,4 +1,5 @@
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import classnames from 'classnames';
import React from 'react';
import Layout from '../../theme/Layout';
@ -12,6 +13,13 @@ const title = 'Grids';
const description = 'Fully customizable and responsive CSS grids.';
function Grids() {
const context = useDocusaurusContext();
const {siteConfig = {}} = context;
const {
customFields: {
pureVersion
}
} = siteConfig;
return (
<Layout description={description} title={title}>
<Header description={description} title={title} />
@ -470,8 +478,8 @@ function Grids() {
Since media queries cannot be over-written, we <u>do not</u> include the grid system as part of <code>pure.css</code>. You'll have to pull it in as a separate CSS file. You can do this by adding the following <code>&lt;link&gt;</code> tag to your page.
</p>
<CodeBlock wrap={true}>
{`<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/grids-responsive-min.css" />`}
<CodeBlock>
{`<link rel="stylesheet" href="https://unpkg.com/purecss@${pureVersion}/build/grids-responsive-min.css" />`}
</CodeBlock>
<h3>Pure's Regular Grid vs. Responsive Grid</h3>
@ -796,10 +804,10 @@ html, button, input, select, textarea,
Grids is part of the Pure CSS file. However, if you just want Grids and not the other modules, you can pull it down separately. Just include this <code>&lt;link&gt;</code> element in your <code>&lt;head&gt;</code>.
</p>
<CodeBlock wrap={true}>
{`<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/base-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/grids-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/grids-responsive-min.css">`}
<CodeBlock>
{`<link rel="stylesheet" href="https://unpkg.com/purecss@${pureVersion}/build/base-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@${pureVersion}/build/grids-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@${pureVersion}/build/grids-responsive-min.css">`}
</CodeBlock>
{/*

View File

@ -100,7 +100,7 @@ function Start() {
</p>
<CodeBlock wrap={true}>
{`<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.1/build/grids-responsive-min.css">`}
{`<link rel="stylesheet" href="https://unpkg.com/purecss@${pureVersion}/build/grids-responsive-min.css">`}
</CodeBlock>
<p>