Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Yours59 responsive spacings for core blocks

Описание

The wordPress standard Gutenberg Sidebar \»Dimensions\» panel, does not give good control over spacings, since it only allows us to set \’fixed\’ spacings (with units \»%\»,\»rem\»,\»vh\»,\»vw\»,\»px\»,\»em\»). Additionally I wanted to have options to change the spacings for different screen size and have negative values possible ( e.g. removing a block-gap (--wp--style--block-gap) in certain scenarios).
Therefor I made this little plugin: I wanted to map the spacing set in editor to my CSS Custom Property (CSSCP) (--size).
Hope this might be helpful for some others out there.

Скриншоты

Установка

  1. Upload the plugin files to the /wp-content/plugins/yours59-spacings-for-core-blocks directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin via the \’Plugins\’ screen in WordPress
  3. You should see a panel in gutenberg inspector named \»Custom Spacings\»

Часто задаваемые вопросы

Margins are not shown in editor?
Margins will not be shown perfectly in editor. But in frontend they are supposed to work.

I get \»This block contains unexpected or invalid content.\». What can I do ?
Be aware that installing this plugin, playing around with it and then uninstall it, will show
\»This block contains unexpected or invalid content.\» on the blocks you changed.
No worries: Pressing Attempt Block Recovery will work.
There is no manipulation of existing classes or attributes.
Plugin only injects some inline styles.

Отзывы

Нет отзывов об этом плагине.

Участники и разработчики

«Yours59 responsive spacings for core blocks» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Перевести «Yours59 responsive spacings for core blocks» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.