├── .github ├── FUNDING.yml └── workflows │ ├── publish.yml │ └── ci.yml ├── renovate.json ├── .gitignore ├── reset.min.css ├── package.json ├── reset.less ├── README.md ├── LICENSE └── reset.css /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | ko_fi: jaywcjlove 2 | buy_me_a_coffee: jaywcjlove 3 | custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"] 4 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "packageRules": [ 6 | { 7 | "matchPackagePatterns": ["*"], 8 | "rangeStrategy": "replace" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | npm-debug.log* 3 | yarn-debug.log* 4 | yarn-error.log* 5 | package-lock.json 6 | 7 | .DS_Store 8 | .cache 9 | .vscode 10 | 11 | *.bak 12 | *.tem 13 | *.temp 14 | #.swp 15 | *.swo 16 | *.*~ 17 | ~*.* 18 | -------------------------------------------------------------------------------- /reset.min.css: -------------------------------------------------------------------------------- 1 | /*! @uiw/reset.css v1.0.4 | MIT (c) 2021 | */ 2 | article,aside,blockquote,body,dd,details,dl,dt,fieldset,figcaption,figure,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,html,iframe,legend,li,menu,nav,ol,p,pre,section,textarea,ul{padding:0;margin:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}embed,iframe,object,video{height:auto;max-width:100%}audio{max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left} 3 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@uiw/reset.css", 3 | "version": "1.0.6", 4 | "description": "A tiny modern CSS reset.", 5 | "main": "reset.css", 6 | "files": [ 7 | "reset.css", 8 | "reset.less", 9 | "reset.min.css" 10 | ], 11 | "keywords": [ 12 | "css", 13 | "less", 14 | "reset", 15 | "mini" 16 | ], 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/uiwjs/reset-css.git" 20 | }, 21 | "scripts": { 22 | "start": "npm run compile && npm run compile:min", 23 | "prepare": "npm run start", 24 | "compile": "lessc reset.less | bannerjs -m > reset.css", 25 | "compile:min": "lessc reset.less | bannerjs -o | csso > reset.min.css" 26 | }, 27 | "devDependencies": { 28 | "bannerjs": "~2.1.0", 29 | "csso-cli": "3.0.0", 30 | "less": "~4.1.2" 31 | }, 32 | "license": "MIT" 33 | } 34 | -------------------------------------------------------------------------------- /reset.less: -------------------------------------------------------------------------------- 1 | html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6, 2 | article, aside, details, figcaption, footer, header, hgroup, menu, nav, section { 3 | margin: 0; 4 | padding: 0; 5 | } 6 | 7 | /* Headings */ 8 | h1, h2, h3, h4, h5, h6 { 9 | font-size: 100%; 10 | font-weight: normal; 11 | } 12 | 13 | /* List */ 14 | ul { 15 | list-style: none; 16 | } 17 | 18 | /* Form */ 19 | button, 20 | input, 21 | select, 22 | textarea { 23 | margin: 0 24 | } 25 | 26 | /* Box sizing */ 27 | html { 28 | box-sizing: border-box; 29 | } 30 | 31 | *, *:before, *:after { 32 | box-sizing: inherit; 33 | } 34 | 35 | /* Media */ 36 | embed, 37 | iframe, 38 | object, 39 | video { 40 | height: auto; 41 | max-width: 100%; 42 | } 43 | 44 | audio { 45 | max-width: 100%; 46 | } 47 | 48 | /* Iframe */ 49 | iframe { 50 | border: 0; 51 | } 52 | 53 | /* Table */ 54 | table { 55 | border-collapse: collapse; 56 | border-spacing: 0; 57 | } 58 | 59 | td, th { 60 | padding: 0; 61 | text-align: left; 62 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | reset.css 2 | --- 3 | 4 | [](https://www.npmjs.com/@uiw/reset.css) 5 | [](https://github.com/uiwjs/reset-css/actions/workflows/ci.yml) 6 | [](https://www.npmjs.com/package/@uiw/reset.css) 7 | 8 | A tiny modern CSS reset. 9 | 10 | ### npm 11 | 12 | ```bash 13 | npm install @uiw/reset.css --save 14 | ``` 15 | 16 | ### Usage 17 | 18 | ```js 19 | import '@uiw/reset.css'; 20 | // or 21 | import '@uiw/reset.css/reset.less'; 22 | ``` 23 | 24 | ### CDN 25 | 26 | - See https://unpkg.com/@uiw/reset.css/reset.css 27 | - See https://unpkg.com/@uiw/reset.css/reset.min.css 28 | - See https://unpkg.com/@uiw/reset.css/reset.less 29 | - See https://uiwjs.github.io/reset-css/reset.css 30 | - See https://uiwjs.github.io/reset-css/reset.min.css 31 | - See https://uiwjs.github.io/reset-css/reset.less 32 | 33 | ### License 34 | 35 | Licensed under the MIT License. 36 | 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 uiw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /reset.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * @uiw/reset.css v1.0.4 3 | * A tiny modern CSS reset. 4 | * 5 | * Copyright (c) 2021 6 | * 7 | * 8 | * Licensed under the MIT license. 9 | */ 10 | 11 | html, 12 | body, 13 | p, 14 | ol, 15 | ul, 16 | li, 17 | dl, 18 | dt, 19 | dd, 20 | blockquote, 21 | figure, 22 | fieldset, 23 | legend, 24 | textarea, 25 | pre, 26 | iframe, 27 | hr, 28 | h1, 29 | h2, 30 | h3, 31 | h4, 32 | h5, 33 | h6, 34 | article, 35 | aside, 36 | details, 37 | figcaption, 38 | footer, 39 | header, 40 | hgroup, 41 | menu, 42 | nav, 43 | section { 44 | margin: 0; 45 | padding: 0; 46 | } 47 | /* Headings */ 48 | h1, 49 | h2, 50 | h3, 51 | h4, 52 | h5, 53 | h6 { 54 | font-size: 100%; 55 | font-weight: normal; 56 | } 57 | /* List */ 58 | ul { 59 | list-style: none; 60 | } 61 | /* Form */ 62 | button, 63 | input, 64 | select, 65 | textarea { 66 | margin: 0; 67 | } 68 | /* Box sizing */ 69 | html { 70 | box-sizing: border-box; 71 | } 72 | *, 73 | *:before, 74 | *:after { 75 | box-sizing: inherit; 76 | } 77 | /* Media */ 78 | embed, 79 | iframe, 80 | object, 81 | video { 82 | height: auto; 83 | max-width: 100%; 84 | } 85 | audio { 86 | max-width: 100%; 87 | } 88 | /* Iframe */ 89 | iframe { 90 | border: 0; 91 | } 92 | /* Table */ 93 | table { 94 | border-collapse: collapse; 95 | border-spacing: 0; 96 | } 97 | td, 98 | th { 99 | padding: 0; 100 | text-align: left; 101 | } 102 | 103 | -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- 1 | name: Publish Package to npmjs 2 | on: 3 | release: 4 | types: [created] 5 | 6 | jobs: 7 | github-publish: 8 | runs-on: ubuntu-latest 9 | permissions: 10 | contents: read 11 | packages: write 12 | steps: 13 | - uses: actions/checkout@v3 14 | - uses: actions/setup-node@v3 15 | with: 16 | node-version: 16 17 | registry-url: 'https://npm.pkg.github.com' 18 | scope: '@uiwjs' 19 | 20 | - run: | 21 | node -e 'var pkg = require("./package.json"); pkg.name="@uiwjs/reset-css"; pkg.publishConfig = { "registry": "https://npm.pkg.github.com/" }; require("fs").writeFileSync("./package.json", JSON.stringify(pkg, null, 2))' 22 | 23 | - run: npm install 24 | - run: ls -al 25 | - run: cat ./package.json 26 | - run: npm run compile 27 | - run: npm run compile:min 28 | - run: npm publish 29 | env: 30 | NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | 32 | npm-publish: 33 | runs-on: ubuntu-latest 34 | steps: 35 | - uses: actions/checkout@v3 36 | - uses: actions/setup-node@v3 37 | with: 38 | node-version: 16 39 | registry-url: 'https://registry.npmjs.org' 40 | 41 | - run: npm install 42 | - run: npm run compile 43 | - run: npm run compile:min 44 | 45 | - run: npm publish 46 | name: 📦 @uiw/reset.css publish to NPM 47 | continue-on-error: true 48 | env: 49 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 50 | 51 | # - name: 📦 @uiw/reset.css publish to NPM 52 | # uses: JS-DevTools/npm-publish@v1 53 | # with: 54 | # token: ${{ secrets.NPM_TOKEN }} 55 | # package: ./package.json 56 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Build & Deploy 2 | on: 3 | push: 4 | branches: 5 | - master 6 | 7 | jobs: 8 | build-deploy: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@v4 12 | - uses: actions/setup-node@v4 13 | with: 14 | node-version: 20 15 | registry-url: 'https://registry.npmjs.org' 16 | 17 | 18 | - run: npm install 19 | - run: npm run compile 20 | - run: npm run compile:min 21 | - run: mkdir -p build 22 | - run: cp -r reset.* ./build 23 | 24 | - run: npm i markdown-to-html-cli -g 25 | - run: markdown-to-html --output build/doc.html --favicon 'data:image/svg+xml,' 26 | 27 | - name: Create Index.html 28 | working-directory: build 29 | run: | 30 | cat > index.html << EOF 31 | 32 |
33 |A tiny modern CSS reset.
47 |