You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Note: the library doesn't provide utilities for Flexbox containers, for that you can use the [Flexbox utility classes](https://gist.github.com/jfmdev/e3541b3d9e94866fe429b9baf89e6303) Gist.
7
+
## Installation
8
8
9
+
You can add this library to your page using the CDN from jsDelivr, just add a `<link>` element into your page's `<head>`, before your project's stylesheets but after PureCSS stylesheets. E.g.:
@@ -61,6 +74,9 @@ The library provides `pure-m-*` and `pure-p-*` classes for controlling an elemen
61
74
62
75
To set the margin or padding to a single side, you can use classes `pure-mb-*` / `pure-ml-*` / `pure-mr-*` / `pure-mt-*` and `pure-pb-*` / `pure-pl-*` / `pure-pr-*` / `pure-pt-*`; and to set the margin or padding to the horizontal or vertical sides, you can use classes `pure-mx-*` / `pure-my-*` and `pure-px-*` / `pure-py-*`.
63
76
77
+
### Flex
78
+
79
+
The library doesn't provide utilities for Flexbox containers, for that you can use the [Flexbox utility classes](https://gist.github.com/jfmdev/e3541b3d9e94866fe429b9baf89e6303) Gist.
64
80
65
81
## Customization
66
82
@@ -72,20 +88,17 @@ You can override these variables to change the colors used, but on that case you
72
88
73
89
Additionally, for the case of buttons, you may also need to override the variables `---pureBlackContrastRgb` / `---pureBlueContrastRgb` / `---pureCyanContrastRgb` / `---pureGreenContrastRgb` / `---pureGreyContrastRgb` / `---pureMagentaContrastRgb` / `---pureRedContrastRgb` / `---pureWhiteContrastRgb` / `---pureYellowContrastRgb` that define the color of the labels inside the buttons.
74
90
75
-
76
91
### Spacing
77
92
78
93
The base spacing used is `0.25rem`, but you can change this value by overriding the value of the `--pureSpacingUnit` variable.
79
94
80
-
81
95
## Development
82
96
83
97
The library was implemented using [Sass](https://sass-lang.com/), you can use the following commands to build it:
84
98
85
99
*`npm run build`
86
100
*`npm run dev`
87
101
88
-
89
102
## License
90
103
91
104
PureCSS Utilities is free software; you can redistribute it and/or modify it under the terms of the Mozilla Public License v2.0. You should have received a copy of the MPL 2.0 along with this software, otherwise you can obtain one at http://mozilla.org/MPL/2.0/.
0 commit comments