mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
fix #798: use latest version
This commit is contained in:
parent
3e55ea567b
commit
cc57db4f59
@ -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><link></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><link></code> element in your <code><head></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>
|
||||
|
||||
{/*
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user