Skip to content
项目

关于

🚿 一套现代 CSS 重置样式

网站与应用开发

这些数字如何统计

可以做什么

  • Apply box-sizing: border-box; in all elements.
  • Reset padding and margin in all elements.
  • Specify background-repeat: no-repeat in all elements and pseudo elements.
  • Inherit text-decoration and vertical-align to ::before and ::after.

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
+2

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

A brunch and the ress name

Modern CSS reset

Build Status Size npm

Installation

npm install --save ress

or

yarn add ress

Features

  1. Apply box-sizing: border-box; in all elements.
  2. Reset padding and margin in all elements.
  3. Specify background-repeat: no-repeat in all elements and pseudo elements.
  4. Inherit text-decoration and vertical-align to ::before and ::after.
  5. Remove the outline when hovering in all browsers.
  6. Specify font-family: monospace in code elements.
  7. Reset border-radius in input elements.
  8. Specify font inheritance of form elements.
  9. Remove the default button styling in all browsers.
  10. Specify textarea resizability to vertical.
  11. Apply cursor: pointer to button elements.
  12. Apply tab-size: 4 in html.
  13. Style select like a standard input.
  14. Style cursor by aria attributes.

Crossbrowser

ress uses Normalize.css under the hood with some customizations to apply a solid base to start your stylesheet.

Browser support

  • Chrome
  • Edge
  • Firefox ESR+
  • Internet Explorer 10+
  • Opera
  • Safari 8+

CDN

unpkg

https://unpkg.com/ress/dist/ress.min.css

jsDevlivr

# Production
https://cdn.jsdelivr.net/npm/[email protected]/dist/ress.min.css

# Development
https://cdn.jsdelivr.net/gh/filipelinhares/ress@latest/dist/ress.min.css

License

MIT © Filipe Linhares

探索相关项目

加载中…