mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-06 14:20:42 +02:00
modified
This commit is contained in:
-22
@@ -1,22 +0,0 @@
|
||||
Copyright (c) Ben Briggs <beneb.info@gmail.com> (http://beneb.info)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
-98
@@ -1,98 +0,0 @@
|
||||
# [postcss][postcss]-convert-values
|
||||
|
||||
> Convert values with PostCSS (e.g. ms -> s)
|
||||
|
||||
## Install
|
||||
|
||||
With [npm](https://npmjs.org/package/postcss-convert-values) do:
|
||||
|
||||
```
|
||||
npm install postcss-convert-values --save
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
This plugin reduces CSS size by converting values to use different units
|
||||
where possible; for example, `500ms` can be represented as `.5s`. You can
|
||||
read more about these units in [this article][csstricks].
|
||||
|
||||
### Input
|
||||
|
||||
```css
|
||||
h1 {
|
||||
font-size: 16px;
|
||||
width: 0em
|
||||
}
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```css
|
||||
h1 {
|
||||
font-size: 1pc;
|
||||
width: 0
|
||||
}
|
||||
```
|
||||
|
||||
Note that this plugin only covers conversions for duration and absolute length
|
||||
values. For color conversions, use [postcss-colormin][colormin].
|
||||
|
||||
## API
|
||||
|
||||
### convertValues([options])
|
||||
|
||||
#### options
|
||||
|
||||
##### length
|
||||
|
||||
Type: `boolean`
|
||||
Default: `true`
|
||||
|
||||
Pass `false` to disable conversion from `px` to other absolute length units,
|
||||
such as `pc` & `pt` & vice versa.
|
||||
|
||||
##### time
|
||||
|
||||
Type: `boolean`
|
||||
Default: `true`
|
||||
|
||||
Pass `false` to disable conversion from `ms` to `s` & vice versa.
|
||||
|
||||
##### angle
|
||||
|
||||
Type: `boolean`
|
||||
Default: `true`
|
||||
|
||||
Pass `false` to disable conversion from `deg` to `turn` & vice versa.
|
||||
|
||||
##### precision
|
||||
|
||||
Type: `boolean|number`
|
||||
Default: `false`
|
||||
|
||||
Specify any numeric value here to round `px` values to that many decimal places;
|
||||
for example, using `{precision: 2}` will round `6.66667px` to `6.67px`, and
|
||||
`{precision: 0}` will round it to `7px`. Passing `false` (the default) will
|
||||
leave these values as is.
|
||||
|
||||
It is recommended for most use cases to set this option to `2`.
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
|
||||
examples for your environment.
|
||||
|
||||
|
||||
## Contributors
|
||||
|
||||
See [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Briggs](http://beneb.info)
|
||||
|
||||
|
||||
[postcss]: https://github.com/postcss/postcss
|
||||
[csstricks]: https://css-tricks.com/the-lengths-of-css/
|
||||
-42
@@ -1,42 +0,0 @@
|
||||
{
|
||||
"name": "postcss-convert-values",
|
||||
"version": "5.1.3",
|
||||
"description": "Convert values with PostCSS (e.g. ms -> s)",
|
||||
"main": "src/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
"files": [
|
||||
"LICENSE-MIT",
|
||||
"src",
|
||||
"types"
|
||||
],
|
||||
"keywords": [
|
||||
"css",
|
||||
"optimisation",
|
||||
"postcss",
|
||||
"postcss-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/cssnano/cssnano",
|
||||
"author": {
|
||||
"name": "Ben Briggs",
|
||||
"email": "beneb.info@gmail.com",
|
||||
"url": "http://beneb.info"
|
||||
},
|
||||
"repository": "cssnano/cssnano",
|
||||
"dependencies": {
|
||||
"browserslist": "^4.21.4",
|
||||
"postcss-value-parser": "^4.2.0"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user