PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
← All changes | postcss.config.js +0 -12 1.1.01.13.0 View file →
@@ -19,20 +19,8 @@
19 19 (css) =>
20 20 css.walkRules((rule) => {
21 21 // Removes top level TW styles like *::before {}
22 22 rule.selector.startsWith('*') && rule.remove();
23 -
24 - // This will allow users to override something like
25 - // padding within the block styles
26 - if (file.endsWith('style.css')) {
27 - // This appends the :not() exception to padding and margins
28 - if (new RegExp('[:]?[^a-z]-?p[a-z]?-.+').test(rule)) {
29 - rule.selector += ':not([style*="padding"])';
30 - }
31 - if (new RegExp('[:]?[^a-z]-?m[a-z]?-.+').test(rule)) {
32 - rule.selector += ':not([style*="margin"])';
33 - }
34 - }
35 23 }),
36 24 // See: https://github.com/WordPress/gutenberg/blob/trunk/packages/postcss-plugins-preset/lib/index.js
37 25 require('autoprefixer')({ grid: true }),
38 26 !file.endsWith('editor.css') && require('postcss-safe-important'),