=== Scintilla Blocks ===
Contributors:      shabbir
Tags:              blocks, gutenberg, responsive, spacing, block editor
Requires at least: 6.3
Tested up to:      6.9
Stable tag:        0.0.4
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

Gutenberg block controls — responsive spacing, global settings, and a dashboard to activate or deactivate block features.

== Description ==

**Scintilla Blocks** extends the WordPress block editor with powerful per-block responsive controls and a clean admin dashboard — no page builders, no bloat.

= Features =

* **Responsive Spacing** — add per-breakpoint padding and margin to any block directly from the Inspector panel (Desktop / Tablet / Mobile tabs).
* **Admin Dashboard** — enable or disable controls for each registered block type with a single toggle.
* **Global Settings** — configure tablet and mobile breakpoints from one central place.
* **Live Preview** — spacing values update instantly in the editor as you switch between device preview modes.
* **WordPress.org Ready** — clean code, no external dependencies, GPL-2.0-or-later licensed.
* **Lightweight** — inline CSS is only emitted for blocks that have spacing values set; zero extra HTTP requests on the front end.

= How it works =

1. Activate the plugin.
2. Open any post or page in the block editor.
3. Select a block and find the **Responsive Spacing** panel inside the **Dimensions** section of the Inspector.
4. Switch between Desktop / Tablet / Mobile tabs and set padding or margin values.
5. Visit **Scintilla Blocks** in the WordPress admin to enable or disable controls per block, and to adjust breakpoint values.

== Installation ==

1. Upload the `scintilla-blocks` folder to the `/wp-content/plugins/` directory, or install it directly through the **Plugins → Add New** screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Visit **Scintilla Blocks** in the admin sidebar to configure your settings.

== Frequently Asked Questions ==

= Does this plugin slow down my site? =

No. Inline `<style>` tags are injected only for blocks that have spacing values set, and only the properties you define are emitted. There are no external CSS files loaded on the front end.

= Can I disable controls for specific block types? =

Yes. Open **Scintilla Blocks → Block Controls** in the admin and toggle off any block. Disabled blocks will not show the Responsive Spacing panel in the editor and will have no inline styles applied on the front end.

= How do I change the tablet or mobile breakpoints? =

Go to **Scintilla Blocks → Global Settings** and enter your desired breakpoint values (supports px, em, rem). Save, and all future block renders will use the new breakpoints.

= Will existing spacing values break if I disable a block? =

The saved attribute values remain in the post data but will not be rendered on the front end while the block is disabled. Re-enabling the block will restore output immediately.

= Is this compatible with Full Site Editing (FSE) / Site Editor? =

Yes. The plugin hooks into `enqueue_block_editor_assets` and `render_block`, which work in both the post editor and the site editor.

== Screenshots ==

1. Responsive Spacing panel in the block editor — Desktop, Tablet, and Mobile tabs.
2. Admin dashboard — Block Controls tab with search and per-block toggles.
3. Admin dashboard — Global Settings tab for configuring breakpoints.

== Changelog ==

= 0.0.4 =
* Fixed Editor Settings icons.
* Fixed Typography.
* Fixed Admin Warngings.

= 0.0.3 =
* Initial release.
* 13 blocks: Container, Heading, Paragraph, Button, Image, Icon, Image Box, Icon Box, Icon List, Counter, Testimonial Carousel, Accordion, Accordion Item.
* Responsive Desktop / Tablet / Mobile controls on every block.
* Admin dashboard with per-block enable / disable toggles and global breakpoint settings.
* Live preview synced to the editor device preview mode.
* Font Awesome icon picker and SVG upload support.
* Swiper-powered testimonial carousel with conditional asset loading.

= 0.0.2 =
* Bug Fixes


== Upgrade Notice ==

= 0.0.1 =
Initial release â€” no upgrade steps required.