adds button sizing from bootstrap

This commit is contained in:
Brian Coords 2021-08-24 12:31:50 -07:00
parent 54ac9ceebd
commit e0b55d6a0d
10 changed files with 40 additions and 8 deletions

View File

@ -1119,6 +1119,16 @@ body.understrap-no-sidebar .wp-block-cover.alignwide {
}
}
.wp-block-buttons .wp-block-button .wp-block-button__link {
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
}
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
border: 1px solid transparent;
}
.components-circular-option-picker__option {
border-radius: 50%;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12974,6 +12974,16 @@ body.understrap-no-sidebar .wp-block-cover.alignwide {
}
}
.wp-block-buttons .wp-block-button .wp-block-button__link {
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
}
.wp-block-buttons .wp-block-button:not(.is-style-outline) .wp-block-button__link {
border: 1px solid transparent;
}
/*
* Use existing Bootstrap 4 classes and
* variables to extend - override CF7 style

File diff suppressed because one or more lines are too long

2
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -25,10 +25,10 @@ const globals = {
module.exports = {
input: [path.resolve(__dirname, '../src/js/bootstrap.js'), path.resolve(__dirname, '../src/js/skip-link-focus-fix.js'), path.resolve(__dirname, '../src/js/custom-javascript.js')],
input: [path.resolve(__dirname, '../js/bootstrap.js'), path.resolve(__dirname, '../js/skip-link-focus-fix.js'), path.resolve(__dirname, '../js/custom-javascript.js')],
output: {
banner,
file: path.resolve(__dirname, `../js/${fileDest}`),
file: path.resolve(__dirname, `../../js/${fileDest}`),
format: 'umd',
globals,
name: 'understrap'

View File

@ -75,3 +75,15 @@ body.understrap-no-sidebar{
}
}
}
// Buttons
.wp-block-buttons {
.wp-block-button {
.wp-block-button__link {
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
}
&:not(.is-style-outline) .wp-block-button__link {
border: $btn-border-width solid transparent;
}
}
}