Skip to content
This repository has been archived by the owner on Dec 1, 2019. It is now read-only.

Commit

Permalink
Update CSS and RTL CSS style vendor prefixes per WPCS (#758)
Browse files Browse the repository at this point in the history
* Add `@wordpress/browserslist-config`

* Add `autoprefixer`

* Add `postcss-cli`

* Update lock file

* Add `postcss.config.js` with browserslist and autoprefixer config

* Add npm scripts for updating vendor prefixes

* Update build instruction docs

* Update CSS and RTL CSS style vendor prefixes per WPCS

* Fix stylelint lint errors
  • Loading branch information
ntwb authored and ianbelanger79 committed Oct 8, 2019
1 parent 02e7a5f commit 7ba8cf0
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 21 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ Twenty Twenty uses [RTLCSS](https://rtlcss.com/) which allows to transform the

### Usage instructions

- After making a change to a CSS, which affects RTL, run `npm run build:rtl` from within the theme directory to build `style-rtl.css` with your changes.
- After making a change to a CSS, which affects RTL or Browser vendor prefixes, run `npm run build` from within the theme directory to build the CSS and RTL CSS files with your changes.
2 changes: 0 additions & 2 deletions assets/css/editor-style-classic-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ body#tinymce.wp-editor { /* stylelint-disable-line no-duplicate-selectors */
}

body#tinymce.wp-editor * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
Expand Down
2 changes: 0 additions & 2 deletions assets/css/editor-style-classic.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ body#tinymce.wp-editor { /* stylelint-disable-line no-duplicate-selectors */
}

body#tinymce.wp-editor * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
}
Expand Down
Loading

0 comments on commit 7ba8cf0

Please sign in to comment.