* Blockbase: Fix padding for the Group block with a background. Closes#4617
* Blockbase: Make sure Group spacing uses correct variables
* Add a general rule for has-background padding
* Remove the margin from the last child in a block with background color
Co-authored-by: Ben Dwyer <ben@scruffian.com>
This change adresses multiple issues.
It:
1. prevents the possibility of an "empty" call to fonts.googleapis.com by returning empty instead of `https://fonts.googleapis.com/css2?&display=swap`, see issue #4458
2. prevents a child theme custom Google font to ALWAYS be loaded even if it's is not selected in the user settings
3. prevents duplicate URL parameters when both user body and header fonts are set to the same value with `array_unique`
* used render_callback to insert social menu from customizer
* return block content early
* change the condition under which we hijack the menu
* Remove extra navigation
* output block markup for the whole menu
* Render the menu at the social location, rather than the one called social
* map the right alignment from the nav block to the social icons block
* move the social nav to skatepark
* Replace any trailing numbers on menu items to better match them to service names
Co-authored-by: Ben Dwyer <ben@scruffian.com>
* Blockbase: Set the fonts directly in settings not in custom
* fix the reset button
* update child themes
* remove unused variable
* add google font to theme.json default
* inherit font family from body
* Set pullquote to use the heading font in all themes
* Blockbase: Disable the Site Editor on WPCOM
* extract to a function
* Also hide the admin bar link to the Site Editor
* fix notice
* remove confusing references to disabling site editor
* move the condition to show the site editor links to the toggle file for simplicity and clarity
* Also hide the site editor from the API menu
* check has_blog_sticker exists before calling it
* Refactored font/color customization to optimize storing setting logic
* Prevent persisting of color palette if it is the same as default
* Prevent persisting of font data if it is the same as default
* Add 'reset' option to font customization
* moved customizer tools to folder in /inc
Co-authored-by: Ben Dwyer <ben@scruffian.com>
* Blockbase: Add font customization
* Add a preview for font customizations
* namespace the preview function
* Replace wp_localize_script with wp_add_inline_script
* Universal themes: Add a setting to disable the Site Editor
* Check for index.html template before attempting to disable the FSE plugin (in the same way Gutenberg does)
* Only add a widgets menu item when there isn't one already
* Add an index template
Co-authored-by: Jason Crist <jcrist@pbking.com>
* first pass at color palette controls without functionality
* made palettes look like color annotations plugin
* make color selection functional
* get palettes from theme.json
* rename file
* rename colors preview file
* rename files
* more file renaming for clarity
* simplify settings
* rebuilt mayland and seedlet with alternative palettes
* renamed default template, dynamic theme name
* remove space
* Added default Varia/Seedlet palettes to blockbase
* check if the custom palette array is empty
* Only render color palette picker controls if there are alternatives to default.
* Only render color palette picker controls if there are alternatives to default. (fix)
* Removed commented code
* change palettes to an array
* chagne props comment
* removed unnecesary credit
* undo last commit, brought back the credits
* readd the settings file
* rebuild children
Co-authored-by: Ben Dwyer <ben@scruffian.com>
Co-authored-by: Jason Crist <jcrist@pbking.com>
* Add __unstableLocation to all BB&Co Themes
As BB & Co. themes ALL become "Universal Capable" this addition allows
the menues to be modifed (should these themes be used in "Classic Mode")
* Registered menu locations for all BB themes
* Refactored blockbase color configuration from 'descriptive' to 'semantic'
* Refactored Quadrat to support Semantic Colors
* WIP experiment to allow Customizer editing of semantic colors in Quadrat
* Update the settings in theme.json not styles
* remove class variable for simplicity
* allow users to set multiple colors
* move merged colors to a class property
* Refactored to simplify and integrate changes to save everything at once
* Refactored and implemented save-all-at-once
* Refactored color customization logic from Quadrat to Blockbase
* Refactored Mayland blocks to support semantic color customizations
* Refactored Seedlet for configurable semantic colors. Refactored meaning of 'primary' in blockbase.
* Minor color cleanups
* Fixed quadrat background color override
* Change variables to camelCase
* remove slug class property
* rename a few variables and add some comments
* remove the noop.css
* don't assume properties exist
Co-authored-by: Ben Dwyer <ben@scruffian.com>