mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-05 22:01:45 +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.
|
||||
-92
@@ -1,92 +0,0 @@
|
||||
# [postcss][postcss]-reduce-initial
|
||||
|
||||
> Reduce `initial` definitions to the _actual_ initial value, where possible.
|
||||
|
||||
## Install
|
||||
|
||||
With [npm](https://npmjs.org/package/postcss-reduce-initial) do:
|
||||
|
||||
```
|
||||
npm install postcss-reduce-initial --save
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
See the [data](data) for more conversions. This data is courtesy
|
||||
of Mozilla.
|
||||
|
||||
### Convert `initial` values
|
||||
|
||||
When the `initial` keyword is longer than the property value, it will
|
||||
be converted:
|
||||
|
||||
#### Input
|
||||
|
||||
```css
|
||||
h1 {
|
||||
min-width: initial;
|
||||
}
|
||||
```
|
||||
|
||||
#### Output
|
||||
|
||||
```css
|
||||
h1 {
|
||||
min-width: auto;
|
||||
}
|
||||
```
|
||||
|
||||
### Convert values back to `initial`
|
||||
|
||||
When the `initial` value is smaller than the property value, it will
|
||||
be converted:
|
||||
|
||||
#### Input
|
||||
|
||||
```css
|
||||
h1 {
|
||||
transform-box: border-box;
|
||||
}
|
||||
```
|
||||
|
||||
#### Output
|
||||
|
||||
```css
|
||||
h1 {
|
||||
transform-box: initial;
|
||||
}
|
||||
```
|
||||
|
||||
This conversion is only applied when you supply a browsers list that all support
|
||||
the `initial` keyword; it's worth noting that Internet Explorer has no support.
|
||||
|
||||
## API
|
||||
|
||||
### reduceInitial([options])
|
||||
|
||||
#### options
|
||||
|
||||
##### ignore
|
||||
|
||||
Type: `Array<String>`
|
||||
Default: `undefined`
|
||||
|
||||
It contains the Array of properties that will be ignored while reducing its value to initial.
|
||||
Example : `{ ignore : ["min-height"] }`
|
||||
|
||||
## 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
|
||||
|
||||
This program uses a list of CSS properties derived from data maintained my the MDN team at Mozilla and licensed under the [CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/).
|
||||
|
||||
MIT © [Ben Briggs](http://beneb.info)
|
||||
|
||||
[postcss]: https://github.com/postcss/postcss
|
||||
-46
@@ -1,46 +0,0 @@
|
||||
{
|
||||
"name": "postcss-reduce-initial",
|
||||
"version": "5.1.2",
|
||||
"description": "Reduce initial definitions to the actual initial value, where possible.",
|
||||
"main": "src/index.js",
|
||||
"types": "types/index.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
"LICENSE-MIT",
|
||||
"types"
|
||||
],
|
||||
"keywords": [
|
||||
"css",
|
||||
"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",
|
||||
"caniuse-api": "^3.0.0"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssnano/cssnano/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/caniuse-api": "^3.0.2",
|
||||
"html-to-text": "^8.2.0",
|
||||
"postcss": "^8.2.15"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"postcss": "^8.2.15"
|
||||
},
|
||||
"scripts": {
|
||||
"acquire": "node ./src/script/acquire.mjs"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user