Skip to content

Commit

Permalink
rebuild ponyfill after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Nov 7, 2022
1 parent 511e29d commit 87a0be4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 155 deletions.
110 changes: 0 additions & 110 deletions blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions blockbase/sass/blocks/_button-mixins.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// NOTE: These remain for the styling of buttons that are NOT blocks and is used elsewhere. This can be removed when those no longer exist.
// See https://github.com/WordPress/gutenberg/issues/29167
//We are keeping the mixin in case it's used by any child themes, but this isn't used by Blockbase any more
// We are keeping the mixin in case it's used by any child themes, but this isn't used by Blockbase any more
@mixin button-main-styles {

@include button-padding-styles;
Expand All @@ -14,7 +14,6 @@
color: var(--wp--custom--button--color--text);
background-color: var(--wp--custom--button--color--background);
border-color: currentcolor;
border-color: currentcolor;

svg {
fill: var(--wp--custom--button--color--text);
Expand Down
45 changes: 2 additions & 43 deletions blockbase/sass/blocks/_button.scss
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
@import "button-mixins";

/**
* Button
*/

/**
* Block Options
*/
.wp-block-button,
.wp-block-button__link {

&.wp-block-button__link,
.wp-block-button__link {

@include button-hover-styles;
border-width: 0;
text-decoration: none;
font-weight: var(--wp--custom--button--typography--font-weight);
}

&.is-style-outline {

&.wp-block-button__link,
.wp-block-button__link {
--wp--custom--button--color--text: var(--wp--custom--button--border--color);
--wp--custom--button--color--background: transparent;

@include button-border-styles;
@include button-hover-styles;
@include button-color-styles;
}
}
}

// TODO: I'm not sure what the end goal should be here, but since we are unable to use
// a button block OUTSIDE of the context of the button collection block (grrrrrrrrr)
// then there are undesired margins to be dealt with somehow.
.wp-block-buttons {

.wp-block-button:last-child {
margin-bottom: 0;
}
.wp-block-button:not(.is-style-outline) > a.has-background {
border-style: none;
}

0 comments on commit 87a0be4

Please sign in to comment.