2020-10-01 13:47:52 -04:00
# Water.css
2020-07-03 23:03:32 -07:00
## 2.0.0
### Major Changes
- Published to npm
2020-10-01 13:47:52 -04:00
If you're using an old version of Water.css, you **must** see the README or you won't get new changes
2020-07-03 23:09:12 -07:00
2020-07-03 23:03:32 -07:00
- Added sourcemaps, autoprefixing, and minification
2020-10-01 13:47:52 -04:00
- Cleaned up the structure of sourcemap files
- Compatible with all major browsers including IE
2020-07-03 23:09:12 -07:00
2020-07-03 23:03:32 -07:00
- Added support for `prefers-color-scheme` to automatically set light and dark theme
2020-10-01 13:47:52 -04:00
- The default theme color is light mode
- Internet Explorer does not support this so the automatic version will always show up as light mode in IE
- If you want to force a color scheme, use `light.css` , or `dark.css`
- Added CSS variables to allow for changing theme colors at runtime instead of build time
IE does not support this either, but nothing should break because we provide fixed fallback colors. It is possible to compile your own theme if you must have custom colors in IE.
2020-07-03 23:03:32 -07:00
- Added [Code of Conduct ](.github/CODE_OF_CONDUCT.md ) and [Contribution Guide ](.github/CONTRIBUTING.md )
- Restructured `.scss` file locations and variable names
- Added `height: auto` to `img` elements to keep aspect ratio
### Minor Changes
- Added radio and checkbox styles
- Added styles for prepending emojis to `href='mailto'` , `href='tel'` , and `href='sms'`
- `table` no longer has outer borders and `tr` elements use color striping for alternating backgorund colors
- Added `min-height` and respect `cols` /`rows` attributes on `textarea`
- Use `system-ui` font when available
- Added styles for `samp` , `time` , `var` , and `kbd` elements
- Added styling for `blockquote` , `q` , and `mark` elements
- Added print styles
- Custom scrollbar styles
- Added `cursor: not-allowed` to `select:disabled` , `button:disabled` , `textarea:disabled`
- Added styles for `::selection`
### Patch Changes
- Fixed padding, alignment, and colors on several elements
- Modified some colors to fix accessibility issues
- `table` elements no longer overflow
- Added linter and linted entire codebase
- Fixed `max-width` of `video` element to prevent overflowing