WordPress/wp-content/themes/twentytwentyone/assets/sass/05-blocks
Sergey Biryukov b3bb99b3d7 Twenty Twenty-One: Clean up Button styles.
This change restructures the Button element styles for better a11y and expected color behaviors. Here what has changed:

- The `button-style()` mixin is now the ''single source or truth'' for how Button should look site-wide.
  - Button Block, File Block, and Search form Blocks all rely on this one mixin.
  - The same styles is also applied to the `<button>` element which appears in widgets, the 404 search form and comments form.
- Improves expected button styles for various conditions and contexts as follows: 
  - User color palette selections for Buttons are retained regardless of a parent block’s color settings or dark-mode.
  - Supports both Default/Filled styles and Outline styles.
  - More consistent `:hover` and `:active` styles.
  - `:focus` styles are now always visible and legible.
- Adds a `--local-color` color variable to scope color relationships to nested blocks.
- Reduces selectors in `style.css` output.
- 1:1 experience between editor and front end button styles.
- Properly supports Dark-mode.

Props allancole, poena, scruffian, megphillips91.
Fixes #51927.
Built from https://develop.svn.wordpress.org/trunk@49987


git-svn-id: http://core.svn.wordpress.org/trunk@49688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-20 05:51:02 +00:00
..
audio
button Twenty Twenty-One: Clean up Button styles. 2021-01-20 05:51:02 +00:00
code Twenty Twenty-One: Make text within code blocks readable in Dark Mode. 2020-12-17 14:22:05 +00:00
columns Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
cover Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
file Twenty Twenty-One: Clean up Button styles. 2021-01-20 05:51:02 +00:00
gallery
group Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
heading
html
image
latest-comments
latest-posts
legacy
list
media-text Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
navigation
paragraph
preformatted
pullquote Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
quote Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
rss
search Twenty Twenty-One: Clean up Button styles. 2021-01-20 05:51:02 +00:00
separator Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
social-icons Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
spacer
table Twenty Twenty-One: Improve striped table styling in Dark Mode. 2020-12-22 15:02:05 +00:00
tag-clould
utilities Twenty Twenty-One: Sync the latest changes for 5.6 RC2. 2020-12-01 19:09:05 +00:00
verse
video
_config.scss
blocks-editor.scss
blocks.scss