refactor: remove custom grid

This commit is contained in:
redonkulus 2022-03-14 14:55:49 -07:00
parent bda8faaa49
commit 2d9b809d4d
3 changed files with 16 additions and 872 deletions

View File

@ -69,14 +69,14 @@ function Home() {
</div> </div>
</div> </div>
<div className="marketing l-wrap pure-g"> <div className="marketing l-wrap pure-g">
<div className="content pure-u-1 u-sm-1-2 u-xl-1-3"> <div className="content pure-u-1 pure-u-sm-1-2 pure-u-xl-1-3">
<h3 className="marketing-header">Your CSS foundation.</h3> <h3 className="marketing-header">Your CSS foundation.</h3>
<p> <p>
Pure builds on <a href="http://necolas.github.io/normalize.css/">Normalize.css</a> and provides layout and styling for native HTML elements, plus the most common UI components. It's what you need, without the cruft. Pure builds on <a href="http://necolas.github.io/normalize.css/">Normalize.css</a> and provides layout and styling for native HTML elements, plus the most common UI components. It's what you need, without the cruft.
</p> </p>
</div> </div>
<div className="content pure-u-1 u-sm-1-2 u-xl-1-3"> <div className="content pure-u-1 pure-u-sm-1-2 pure-u-xl-1-3">
<h3 className="marketing-header">Made with mobile in mind.</h3> <h3 className="marketing-header">Made with mobile in mind.</h3>
<p> <p>
@ -84,7 +84,7 @@ function Home() {
</p> </p>
</div> </div>
<div className="content pure-u-1 u-lg-3-4 u-xl-1-3"> <div className="content pure-u-1 pure-u-lg-3-4 pure-u-xl-1-3">
<h3 className="marketing-header">Stays out of your way.</h3> <h3 className="marketing-header">Stays out of your way.</h3>
<p> <p>
@ -93,13 +93,13 @@ function Home() {
</div> </div>
</div> </div>
<div className="marketing l-wrap pure-g"> <div className="marketing l-wrap pure-g">
<div className="marketing-diagram content pure-u-1 u-sm-2-3 u-md-1-2"> <div className="marketing-diagram content pure-u-1 pure-u-sm-2-3 pure-u-md-1-2">
<Link to="/layouts"> <Link to="/layouts">
<img src={useBaseUrl('img/layout-icon.jpg')} className="pure-img-responsive" alt="Diagram of a sample layout." /> <img src={useBaseUrl('img/layout-icon.jpg')} className="pure-img-responsive" alt="Diagram of a sample layout." />
</Link> </Link>
</div> </div>
<div className="content pure-u-1 u-md-1-2"> <div className="content pure-u-1 pure-u-md-1-2">
<h3 className="marketing-header">Create responsive layouts.</h3> <h3 className="marketing-header">Create responsive layouts.</h3>
<p> <p>
By using <a href="/grids/">Grids</a>, <a href="/menus/">Menus</a>, and more, it's easy to create beautiful responsive layouts for all screen sizes. We've made it easy for you to get started. Take a look at a few different <a href="/layouts/">layouts</a> and start your next web project with a rock-solid foundation. By using <a href="/grids/">Grids</a>, <a href="/menus/">Menus</a>, and more, it's easy to create beautiful responsive layouts for all screen sizes. We've made it easy for you to get started. Take a look at a few different <a href="/layouts/">layouts</a> and start your next web project with a rock-solid foundation.
@ -110,7 +110,7 @@ function Home() {
</div> </div>
</div> </div>
<div className="marketing marketing-customize l-wrap pure-g"> <div className="marketing marketing-customize l-wrap pure-g">
<div className="content pure-u-1 u-md-1-2"> <div className="content pure-u-1 pure-u-md-1-2">
<h3 className="marketing-header">Create your own look and feel.</h3> <h3 className="marketing-header">Create your own look and feel.</h3>
<p> <p>
Unlike other frameworks, Pure's design is unopinionated, minimal and flat. We believe that it's much easier to add new CSS rules than to overwrite existing rules. By adding a few lines of CSS, you can customize Pure's appearance to work with your web project. Unlike other frameworks, Pure's design is unopinionated, minimal and flat. We believe that it's much easier to add new CSS rules than to overwrite existing rules. By adding a few lines of CSS, you can customize Pure's appearance to work with your web project.
@ -119,33 +119,33 @@ function Home() {
<Link to="/extend/" className="pure-button">Extend Pure</Link> <Link to="/extend/" className="pure-button">Extend Pure</Link>
</p> </p>
</div> </div>
<div className="sample-buttons content pure-u-1 u-md-1-2"> <div className="sample-buttons content pure-u-1 pure-u-md-1-2">
<div className="pure-g"> <div className="pure-g">
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="pure-button">Default</button> <button className="pure-button">Default</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-a pure-button">Blue</button> <button className="button-a pure-button">Blue</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-b pure-button">Yellow</button> <button className="button-b pure-button">Yellow</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-c pure-button">Black</button> <button className="button-c pure-button">Black</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-d pure-button">Green</button> <button className="button-d pure-button">Green</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-e pure-button">Red</button> <button className="button-e pure-button">Red</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-f pure-button">Purple</button> <button className="button-f pure-button">Purple</button>
</span> </span>
<span className="sample-button pure-u-1-2 u-sm-1-3"> <span className="sample-button pure-u-1-2 pure-u-sm-1-3">
<button className="button-g pure-button">Orange</button> <button className="button-g pure-button">Orange</button>
</span> </span>
<span className="sample-button pure-u-1 u-sm-1-3"> <span className="sample-button pure-u-1 pure-u-sm-1-3">
<button className="button-h pure-button">Indigo</button> <button className="button-h pure-button">Indigo</button>
</span> </span>
</div> </div>

View File

@ -10,7 +10,6 @@ import Footer from '../../components/Footer';
// load common custom css // load common custom css
import '../../../build/pure-min.css'; import '../../../build/pure-min.css';
import '../../../build/grids-responsive-min.css'; import '../../../build/grids-responsive-min.css';
import '../../static/css/main-grid.css';
import '../../static/css/main.css'; import '../../static/css/main.css';
let jsLoaded = false; let jsLoaded = false;

View File

@ -1,855 +0,0 @@
@media screen and (min-width: 35.5em) {
.u-sm-1,
.u-sm-1-1,
.u-sm-1-2,
.u-sm-1-3,
.u-sm-2-3,
.u-sm-1-4,
.u-sm-3-4,
.u-sm-1-5,
.u-sm-2-5,
.u-sm-3-5,
.u-sm-4-5,
.u-sm-5-5,
.u-sm-1-6,
.u-sm-5-6,
.u-sm-1-8,
.u-sm-3-8,
.u-sm-5-8,
.u-sm-7-8,
.u-sm-1-12,
.u-sm-5-12,
.u-sm-7-12,
.u-sm-11-12,
.u-sm-1-24,
.u-sm-2-24,
.u-sm-3-24,
.u-sm-4-24,
.u-sm-5-24,
.u-sm-6-24,
.u-sm-7-24,
.u-sm-8-24,
.u-sm-9-24,
.u-sm-10-24,
.u-sm-11-24,
.u-sm-12-24,
.u-sm-13-24,
.u-sm-14-24,
.u-sm-15-24,
.u-sm-16-24,
.u-sm-17-24,
.u-sm-18-24,
.u-sm-19-24,
.u-sm-20-24,
.u-sm-21-24,
.u-sm-22-24,
.u-sm-23-24,
.u-sm-24-24 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
.u-sm-1-24 {
width: 4.1667%;
*width: 4.1357%;
}
.u-sm-1-12,
.u-sm-2-24 {
width: 8.3333%;
*width: 8.3023%;
}
.u-sm-1-8,
.u-sm-3-24 {
width: 12.5000%;
*width: 12.4690%;
}
.u-sm-1-6,
.u-sm-4-24 {
width: 16.6667%;
*width: 16.6357%;
}
.u-sm-1-5 {
width: 20%;
*width: 19.9690%;
}
.u-sm-5-24 {
width: 20.8333%;
*width: 20.8023%;
}
.u-sm-1-4,
.u-sm-6-24 {
width: 25%;
*width: 24.9690%;
}
.u-sm-7-24 {
width: 29.1667%;
*width: 29.1357%;
}
.u-sm-1-3,
.u-sm-8-24 {
width: 33.3333%;
*width: 33.3023%;
}
.u-sm-3-8,
.u-sm-9-24 {
width: 37.5000%;
*width: 37.4690%;
}
.u-sm-2-5 {
width: 40%;
*width: 39.9690%;
}
.u-sm-5-12,
.u-sm-10-24 {
width: 41.6667%;
*width: 41.6357%;
}
.u-sm-11-24 {
width: 45.8333%;
*width: 45.8023%;
}
.u-sm-1-2,
.u-sm-12-24 {
width: 50%;
*width: 49.9690%;
}
.u-sm-13-24 {
width: 54.1667%;
*width: 54.1357%;
}
.u-sm-7-12,
.u-sm-14-24 {
width: 58.3333%;
*width: 58.3023%;
}
.u-sm-3-5 {
width: 60%;
*width: 59.9690%;
}
.u-sm-5-8,
.u-sm-15-24 {
width: 62.5000%;
*width: 62.4690%;
}
.u-sm-2-3,
.u-sm-16-24 {
width: 66.6667%;
*width: 66.6357%;
}
.u-sm-17-24 {
width: 70.8333%;
*width: 70.8023%;
}
.u-sm-3-4,
.u-sm-18-24 {
width: 75%;
*width: 74.9690%;
}
.u-sm-19-24 {
width: 79.1667%;
*width: 79.1357%;
}
.u-sm-4-5 {
width: 80%;
*width: 79.9690%;
}
.u-sm-5-6,
.u-sm-20-24 {
width: 83.3333%;
*width: 83.3023%;
}
.u-sm-7-8,
.u-sm-21-24 {
width: 87.5000%;
*width: 87.4690%;
}
.u-sm-11-12,
.u-sm-22-24 {
width: 91.6667%;
*width: 91.6357%;
}
.u-sm-23-24 {
width: 95.8333%;
*width: 95.8023%;
}
.u-sm-1,
.u-sm-1-1,
.u-sm-5-5,
.u-sm-24-24 {
width: 100%;
}
}
@media screen and (min-width: 48em) {
.u-md-1,
.u-md-1-1,
.u-md-1-2,
.u-md-1-3,
.u-md-2-3,
.u-md-1-4,
.u-md-3-4,
.u-md-1-5,
.u-md-2-5,
.u-md-3-5,
.u-md-4-5,
.u-md-5-5,
.u-md-1-6,
.u-md-5-6,
.u-md-1-8,
.u-md-3-8,
.u-md-5-8,
.u-md-7-8,
.u-md-1-12,
.u-md-5-12,
.u-md-7-12,
.u-md-11-12,
.u-md-1-24,
.u-md-2-24,
.u-md-3-24,
.u-md-4-24,
.u-md-5-24,
.u-md-6-24,
.u-md-7-24,
.u-md-8-24,
.u-md-9-24,
.u-md-10-24,
.u-md-11-24,
.u-md-12-24,
.u-md-13-24,
.u-md-14-24,
.u-md-15-24,
.u-md-16-24,
.u-md-17-24,
.u-md-18-24,
.u-md-19-24,
.u-md-20-24,
.u-md-21-24,
.u-md-22-24,
.u-md-23-24,
.u-md-24-24 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
.u-md-1-24 {
width: 4.1667%;
*width: 4.1357%;
}
.u-md-1-12,
.u-md-2-24 {
width: 8.3333%;
*width: 8.3023%;
}
.u-md-1-8,
.u-md-3-24 {
width: 12.5000%;
*width: 12.4690%;
}
.u-md-1-6,
.u-md-4-24 {
width: 16.6667%;
*width: 16.6357%;
}
.u-md-1-5 {
width: 20%;
*width: 19.9690%;
}
.u-md-5-24 {
width: 20.8333%;
*width: 20.8023%;
}
.u-md-1-4,
.u-md-6-24 {
width: 25%;
*width: 24.9690%;
}
.u-md-7-24 {
width: 29.1667%;
*width: 29.1357%;
}
.u-md-1-3,
.u-md-8-24 {
width: 33.3333%;
*width: 33.3023%;
}
.u-md-3-8,
.u-md-9-24 {
width: 37.5000%;
*width: 37.4690%;
}
.u-md-2-5 {
width: 40%;
*width: 39.9690%;
}
.u-md-5-12,
.u-md-10-24 {
width: 41.6667%;
*width: 41.6357%;
}
.u-md-11-24 {
width: 45.8333%;
*width: 45.8023%;
}
.u-md-1-2,
.u-md-12-24 {
width: 50%;
*width: 49.9690%;
}
.u-md-13-24 {
width: 54.1667%;
*width: 54.1357%;
}
.u-md-7-12,
.u-md-14-24 {
width: 58.3333%;
*width: 58.3023%;
}
.u-md-3-5 {
width: 60%;
*width: 59.9690%;
}
.u-md-5-8,
.u-md-15-24 {
width: 62.5000%;
*width: 62.4690%;
}
.u-md-2-3,
.u-md-16-24 {
width: 66.6667%;
*width: 66.6357%;
}
.u-md-17-24 {
width: 70.8333%;
*width: 70.8023%;
}
.u-md-3-4,
.u-md-18-24 {
width: 75%;
*width: 74.9690%;
}
.u-md-19-24 {
width: 79.1667%;
*width: 79.1357%;
}
.u-md-4-5 {
width: 80%;
*width: 79.9690%;
}
.u-md-5-6,
.u-md-20-24 {
width: 83.3333%;
*width: 83.3023%;
}
.u-md-7-8,
.u-md-21-24 {
width: 87.5000%;
*width: 87.4690%;
}
.u-md-11-12,
.u-md-22-24 {
width: 91.6667%;
*width: 91.6357%;
}
.u-md-23-24 {
width: 95.8333%;
*width: 95.8023%;
}
.u-md-1,
.u-md-1-1,
.u-md-5-5,
.u-md-24-24 {
width: 100%;
}
}
@media screen and (min-width: 58em) {
.u-lg-1,
.u-lg-1-1,
.u-lg-1-2,
.u-lg-1-3,
.u-lg-2-3,
.u-lg-1-4,
.u-lg-3-4,
.u-lg-1-5,
.u-lg-2-5,
.u-lg-3-5,
.u-lg-4-5,
.u-lg-5-5,
.u-lg-1-6,
.u-lg-5-6,
.u-lg-1-8,
.u-lg-3-8,
.u-lg-5-8,
.u-lg-7-8,
.u-lg-1-12,
.u-lg-5-12,
.u-lg-7-12,
.u-lg-11-12,
.u-lg-1-24,
.u-lg-2-24,
.u-lg-3-24,
.u-lg-4-24,
.u-lg-5-24,
.u-lg-6-24,
.u-lg-7-24,
.u-lg-8-24,
.u-lg-9-24,
.u-lg-10-24,
.u-lg-11-24,
.u-lg-12-24,
.u-lg-13-24,
.u-lg-14-24,
.u-lg-15-24,
.u-lg-16-24,
.u-lg-17-24,
.u-lg-18-24,
.u-lg-19-24,
.u-lg-20-24,
.u-lg-21-24,
.u-lg-22-24,
.u-lg-23-24,
.u-lg-24-24 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
.u-lg-1-24 {
width: 4.1667%;
*width: 4.1357%;
}
.u-lg-1-12,
.u-lg-2-24 {
width: 8.3333%;
*width: 8.3023%;
}
.u-lg-1-8,
.u-lg-3-24 {
width: 12.5000%;
*width: 12.4690%;
}
.u-lg-1-6,
.u-lg-4-24 {
width: 16.6667%;
*width: 16.6357%;
}
.u-lg-1-5 {
width: 20%;
*width: 19.9690%;
}
.u-lg-5-24 {
width: 20.8333%;
*width: 20.8023%;
}
.u-lg-1-4,
.u-lg-6-24 {
width: 25%;
*width: 24.9690%;
}
.u-lg-7-24 {
width: 29.1667%;
*width: 29.1357%;
}
.u-lg-1-3,
.u-lg-8-24 {
width: 33.3333%;
*width: 33.3023%;
}
.u-lg-3-8,
.u-lg-9-24 {
width: 37.5000%;
*width: 37.4690%;
}
.u-lg-2-5 {
width: 40%;
*width: 39.9690%;
}
.u-lg-5-12,
.u-lg-10-24 {
width: 41.6667%;
*width: 41.6357%;
}
.u-lg-11-24 {
width: 45.8333%;
*width: 45.8023%;
}
.u-lg-1-2,
.u-lg-12-24 {
width: 50%;
*width: 49.9690%;
}
.u-lg-13-24 {
width: 54.1667%;
*width: 54.1357%;
}
.u-lg-7-12,
.u-lg-14-24 {
width: 58.3333%;
*width: 58.3023%;
}
.u-lg-3-5 {
width: 60%;
*width: 59.9690%;
}
.u-lg-5-8,
.u-lg-15-24 {
width: 62.5000%;
*width: 62.4690%;
}
.u-lg-2-3,
.u-lg-16-24 {
width: 66.6667%;
*width: 66.6357%;
}
.u-lg-17-24 {
width: 70.8333%;
*width: 70.8023%;
}
.u-lg-3-4,
.u-lg-18-24 {
width: 75%;
*width: 74.9690%;
}
.u-lg-19-24 {
width: 79.1667%;
*width: 79.1357%;
}
.u-lg-4-5 {
width: 80%;
*width: 79.9690%;
}
.u-lg-5-6,
.u-lg-20-24 {
width: 83.3333%;
*width: 83.3023%;
}
.u-lg-7-8,
.u-lg-21-24 {
width: 87.5000%;
*width: 87.4690%;
}
.u-lg-11-12,
.u-lg-22-24 {
width: 91.6667%;
*width: 91.6357%;
}
.u-lg-23-24 {
width: 95.8333%;
*width: 95.8023%;
}
.u-lg-1,
.u-lg-1-1,
.u-lg-5-5,
.u-lg-24-24 {
width: 100%;
}
}
@media screen and (min-width: 75em) {
.u-xl-1,
.u-xl-1-1,
.u-xl-1-2,
.u-xl-1-3,
.u-xl-2-3,
.u-xl-1-4,
.u-xl-3-4,
.u-xl-1-5,
.u-xl-2-5,
.u-xl-3-5,
.u-xl-4-5,
.u-xl-5-5,
.u-xl-1-6,
.u-xl-5-6,
.u-xl-1-8,
.u-xl-3-8,
.u-xl-5-8,
.u-xl-7-8,
.u-xl-1-12,
.u-xl-5-12,
.u-xl-7-12,
.u-xl-11-12,
.u-xl-1-24,
.u-xl-2-24,
.u-xl-3-24,
.u-xl-4-24,
.u-xl-5-24,
.u-xl-6-24,
.u-xl-7-24,
.u-xl-8-24,
.u-xl-9-24,
.u-xl-10-24,
.u-xl-11-24,
.u-xl-12-24,
.u-xl-13-24,
.u-xl-14-24,
.u-xl-15-24,
.u-xl-16-24,
.u-xl-17-24,
.u-xl-18-24,
.u-xl-19-24,
.u-xl-20-24,
.u-xl-21-24,
.u-xl-22-24,
.u-xl-23-24,
.u-xl-24-24 {
display: inline-block;
*display: inline;
zoom: 1;
letter-spacing: normal;
word-spacing: normal;
vertical-align: top;
text-rendering: auto;
}
.u-xl-1-24 {
width: 4.1667%;
*width: 4.1357%;
}
.u-xl-1-12,
.u-xl-2-24 {
width: 8.3333%;
*width: 8.3023%;
}
.u-xl-1-8,
.u-xl-3-24 {
width: 12.5000%;
*width: 12.4690%;
}
.u-xl-1-6,
.u-xl-4-24 {
width: 16.6667%;
*width: 16.6357%;
}
.u-xl-1-5 {
width: 20%;
*width: 19.9690%;
}
.u-xl-5-24 {
width: 20.8333%;
*width: 20.8023%;
}
.u-xl-1-4,
.u-xl-6-24 {
width: 25%;
*width: 24.9690%;
}
.u-xl-7-24 {
width: 29.1667%;
*width: 29.1357%;
}
.u-xl-1-3,
.u-xl-8-24 {
width: 33.3333%;
*width: 33.3023%;
}
.u-xl-3-8,
.u-xl-9-24 {
width: 37.5000%;
*width: 37.4690%;
}
.u-xl-2-5 {
width: 40%;
*width: 39.9690%;
}
.u-xl-5-12,
.u-xl-10-24 {
width: 41.6667%;
*width: 41.6357%;
}
.u-xl-11-24 {
width: 45.8333%;
*width: 45.8023%;
}
.u-xl-1-2,
.u-xl-12-24 {
width: 50%;
*width: 49.9690%;
}
.u-xl-13-24 {
width: 54.1667%;
*width: 54.1357%;
}
.u-xl-7-12,
.u-xl-14-24 {
width: 58.3333%;
*width: 58.3023%;
}
.u-xl-3-5 {
width: 60%;
*width: 59.9690%;
}
.u-xl-5-8,
.u-xl-15-24 {
width: 62.5000%;
*width: 62.4690%;
}
.u-xl-2-3,
.u-xl-16-24 {
width: 66.6667%;
*width: 66.6357%;
}
.u-xl-17-24 {
width: 70.8333%;
*width: 70.8023%;
}
.u-xl-3-4,
.u-xl-18-24 {
width: 75%;
*width: 74.9690%;
}
.u-xl-19-24 {
width: 79.1667%;
*width: 79.1357%;
}
.u-xl-4-5 {
width: 80%;
*width: 79.9690%;
}
.u-xl-5-6,
.u-xl-20-24 {
width: 83.3333%;
*width: 83.3023%;
}
.u-xl-7-8,
.u-xl-21-24 {
width: 87.5000%;
*width: 87.4690%;
}
.u-xl-11-12,
.u-xl-22-24 {
width: 91.6667%;
*width: 91.6357%;
}
.u-xl-23-24 {
width: 95.8333%;
*width: 95.8023%;
}
.u-xl-1,
.u-xl-1-1,
.u-xl-5-5,
.u-xl-24-24 {
width: 100%;
}
}