1
mirror of https://github.com/pure-css/pure synced 2024-11-18 02:36:30 +01:00
pure/README.md

114 lines
3.7 KiB
Markdown
Raw Normal View History

2021-07-06 18:40:33 +02:00
# Pure
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
[![Pure](https://cloud.githubusercontent.com/assets/449779/5291099/1b554cca-7b03-11e4-9157-53a12d91b34a.png)][pure]
2013-05-20 19:23:59 +02:00
A set of small, responsive CSS modules that you can use in every web project.
2021-11-16 04:37:50 +01:00
[https://purecss.io/][pure]
2013-05-20 19:23:59 +02:00
2021-07-04 18:45:41 +02:00
![Build Status](https://github.com/pure-css/pure/actions/workflows/test.yml/badge.svg)
2019-02-18 19:43:23 +01:00
2021-07-06 18:40:33 +02:00
## Features
2013-05-20 19:23:59 +02:00
2022-10-26 20:43:36 +02:00
Pure is a starting point for every website or web app. We take care
of all the CSS work that every site needs without making it look cookie-cutter:
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
- A responsive grid that can be customized to your needs.
2021-07-06 18:40:33 +02:00
- A solid base built on [Normalize.css][] to fix cross-browser compatibility
2013-05-22 14:06:01 +02:00
issues.
2021-07-06 18:40:33 +02:00
- Consistently styled buttons that work with `<a>` and `<button>` elements.
2021-07-06 18:40:33 +02:00
- Styles for vertical and horizontal menus, including support for dropdown
2013-05-22 14:06:01 +02:00
menus.
2021-07-06 18:40:33 +02:00
- Useful form alignments that look great on all screen sizes.
2013-05-22 14:06:01 +02:00
2021-07-06 18:40:33 +02:00
- Various common table styles.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
- An extremely minimalist look that is super-easy to customize.
2021-07-06 18:40:33 +02:00
- Responsive by default, with a non-responsive option.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
- Extremely small file size: **3.7KB minified + gzip**.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
## Get Started
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
Check out the [Get Started][started] page for more information.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
## Build From Source
2013-05-22 14:06:01 +02:00
Optionally, you can build Pure from its source on Github. To do this, you'll
need to have Node.js and npm installed. We use [Grunt][] to build Pure.
2013-05-20 19:23:59 +02:00
```shell
2022-10-26 20:43:36 +02:00
git clone git@github.com:pure-css/pure.git
cd pure
npm install
grunt
2013-05-20 19:23:59 +02:00
```
### Build Files
2013-05-22 14:06:01 +02:00
Now, all Pure CSS files should be built into the `pure/build/` directory. All
files that are in this build directory are also available on the CDN. The naming
conventions of the files in the `build/` directory follow these rules:
2021-07-06 18:40:33 +02:00
- `[module]-core.css`: The minimal set of styles, usually structural, that
provide the base on which the rest of the module's styles build.
2021-07-06 18:40:33 +02:00
- `[module]-nr.css`: Rollup of `[module]-core.css` + `[module].css` +
2013-05-22 14:06:01 +02:00
`[module]-[feature].css` from the `src/[module]/` dir. This is the
non-responsive version of a module.
2021-07-06 18:40:33 +02:00
- `[module].css`: Rollup of `[module]-nr.css` + `[module]-r.css` from the
2013-05-22 14:06:01 +02:00
`build/` dir. This is the responsive version of a module.
2021-07-06 18:40:33 +02:00
- `*-min.css`: A minified file version of the files of the same name.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
- `pure.css`: A rollup of all `[module].css` files in the `build/` dir. This is
a responsive roll-up of everything, non-minified. Note: does not contain responsive grids with @media queries.
2021-07-06 18:40:33 +02:00
- `pure-min.css`: Minified version of `pure.css` that should be used in
production.
2021-07-06 18:40:33 +02:00
- `pure-nr.css`: A Rollup of all modules without @media queries. This is a
non-responsive roll-up of everything, non-minified.
2021-07-06 18:40:33 +02:00
- `pure-nr-min.css`: Minified version of `pure-nr.css` that should be used in
production.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
- `grids-responsive.css`: Unminified version of Pure's grid stylesheet which
includes @media queries.
2021-07-06 18:40:33 +02:00
- `grids-responsive-min.css`: Minified version of `grids-responsive.css` that
should be used in production.
2021-07-06 18:40:33 +02:00
## Browser Support and Testing
Pure is tested and works in:
2021-07-06 18:40:33 +02:00
- Latest Stable: Firefox, Chrome, Safari
2021-07-06 18:40:33 +02:00
## Docs and Website
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
[Pure's website][pure] is located in the [`site`][pure-site] directory. Please feel free
2020-04-30 18:59:22 +02:00
to open issues or questions in the Issue tab.
2013-05-20 19:23:59 +02:00
2021-07-06 18:40:33 +02:00
## Contributing
See the [CONTRIBUTING file][] for information on how to contribute to Pure.
2021-07-06 18:40:33 +02:00
## License
This software is free to use under the Yahoo! Inc. BSD-3-Clause license.
2013-05-22 14:06:01 +02:00
See the [LICENSE file][] for license text and copyright information.
2021-07-06 18:40:33 +02:00
[grunt]: http://gruntjs.com/
2024-10-07 19:52:34 +02:00
[contributing file]: https://github.com/pure-css/pure/blob/main/CONTRIBUTING.md
[license file]: https://github.com/pure-css/pure/blob/main/LICENSE
2021-07-06 18:40:33 +02:00
[normalize.css]: http://necolas.github.io/normalize.css/
[pure]: http://purecss.io/
2024-10-07 19:52:34 +02:00
[pure-site]: https://github.com/pure-css/pure/tree/main/site
2021-07-06 18:40:33 +02:00
[started]: https://purecss.io/start/