Flexible Spacer Block

外掛說明

Flexible Spacer Block switches the height of the spacer according to the device screen width (breakpoints).
This block has two variable breakpoints, and you can adjust the height of the spacer for smartphones, tablets, and desktops respectively.
The height of the spacers can be changed individually or in batches.
Also available to set “negative space (negative margin)” instead of the normal space.
And this block supports transform from and to core spacer block.

About negative space

Negative space” narrows the margins both blocks above and below the spacer, and it is also possible to overlap the blocks.
If unintended overlap occurs, add a CSS class named “fsb-style-show-front” to the block you want to show in the front.
To apply the CSS class to the block, click on the block on WordPress editor, and check the block settings on the right for the Advanced setting ,then enter the CSS class.

Resources

Image for screenshot

License: CC0 Public Domain
Source: https://pxhere.com/ja/photo/245

螢幕擷圖

  • On Block Editor
  • Setting page
  • Negative space example
  • Negative space example

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Flexible Spacer Add white space between blocks and customize its height for each device.

安裝方式

  1. Upload the flexible-spacer-block folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the \’Plugins\’ menu in WordPress.

常見問題集

What filters can I use?

You can find a list of the available filters in the Github readme.

使用者評論

2022 年 10 月 19 日
I wish more people would release single, useful blocks like this instead of all those copy cat collections. Who really needs 5 accordion blocks? Only other thing I'd like to see in this is a way to set default initial heights like 75px desktop | 50px tablet | 25px phone etc. I was actually looking for a way to set a default height for the core spacer block when I stumbled on this.
2022 年 7 月 29 日
マイナススペースは、スペーサーの上下にあるブロックの余白を狭くし、ブロックを重ねることも可能
2022 年 4 月 23 日
Thank you very much for creating this awesome plugin. Love the plugin's simplicity and ease of use!
2021 年 7 月 20 日
I had a problem with the standard Spacer Block, wherein it breaks the format in mobile in our website. With Flexible Spacer, I can designate the size of the space per mobile device! Awesome, thank you for developing this plugin.
2021 年 1 月 28 日
スペーサーだけに絞ったブロック、とてもありがたいです。 UIもわかりやすく、使いやすいと思います。 素晴らしい!!!
閱讀全部 7 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Flexible Spacer Block〉的開發相關工作。

參與者

〈Flexible Spacer Block〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Flexible Spacer Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

2.3.0

  • Tested to WordPress 6.5
  • Enhancement: Polish block style
  • Enhancement: Polish settings page style
  • Fix: Remove unnecessary CSS class
  • Drop support for WordPress 6.2

2.2.0

  • Tested to WordPress 6.4
  • Drop support for WordPress 6.0, 6.1

2.1.0

  • Tested to WordPress 6.3
  • Add: unit support
  • Drop support for WordPress5.9
  • Drop support for PHP7.3

2.0.0

  • Tested to WordPress 6.2
  • Feature: Add default values setting
  • Enhancement: Remove focus style for unit elements on the setting page
  • Enhancement: Improve error messages on the setting page
  • Fix: Responsive Setting value is empty for certain operations
  • Fix: grammer in the setting page

1.4.1

  • Clean: Remove files not needed for the release

1.4.0

  • Tested to WordPress 6.1
  • Drop support for WordPress 5.6 through 5.8
  • Fix: Not converting correctly from core spacer block
  • Enhancement: Polish style in the setting page

1.3.0

  • Tested to WordPress 6.0
  • Update: Minify inline styles
  • Add: filter hooks
  • Update: block icon
  • Update: author name
  • Fix: CSS files are not loaded in the iframe editor on WordPress 6.0

1.2.3

  • Change: Ensure minimum height of the block
  • Change: Minimum value of the spacer
  • Fix: Unable to change the height of spacer in WordPress 5.9.1

1.2.2

  • Clean: Remove unnecessary file included in the release

1.2.1

  • Fix: Wrong text domain

1.2.0

  • Tested to WordPress 5.9
  • Add: Block control to change responsive view
  • Change: Scripts handle name
  • Change: dashicons to @wordpress/icons
  • Remove: load_plugin_textdomain function

1.1.9

  • Clean: Update npm packages and run a lint check

1.1.8

  • Clean: Update npm packages
  • Remove: Bundled language files

1.1.7

  • Tested to WordPress 5.8
  • Clean: Update npm packages

1.1.6

  • Fix: build script error
  • Fix: README.md screenshot

1.1.5

  • Tested to WordPress 5.7
  • Clean: Update deploy flow (github actions)
  • Clean: Update npm packages and organize development env

1.1.4

  • Tested to PHP 8

1.1.3

  • Fix: Problem about plugin configuration values are not deleted upon uninstallation

1.1.2

  • Fix: Problem about uninstallation error in PHP 8

1.1.1

  • Add: Description about negative space

1.1.0

  • Add: Negative space setting

1.0.0

  • Initial release