Changeset 2808283
- Timestamp:
- 10/31/2022 11:03:48 PM (3 years ago)
- Location:
- block-styling/trunk
- Files:
-
- 4 added
- 2 edited
-
README.txt (modified) (3 diffs)
-
block-styling-backend.php (modified) (3 diffs)
-
css (added)
-
css/admin-better.css (added)
-
css/blocks-styling.css (added)
-
css/index.php (added)
Legend:
- Unmodified
- Added
- Removed
-
block-styling/trunk/README.txt
r2808227 r2808283 2 2 Contributors: why not, dennys dionigi, the_dionigi, dennys palumbo, Roberto bottalico 3 3 Donate link: https://www.whynot.media 4 Tags: comments4 Tags: ui,ux,css,gutenberg 5 5 Requires at least: 5.0.1 6 Tested up to: 6. 27 Stable tag: 6. 16 Tested up to: 6.1 7 Stable tag: 6.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 Nope. Just, on backend, few bytes of compressed code. 41 41 42 43 = What's the killer feature ? = 44 45 Now you can easily spot the markup you're doing and also headings' placement, to improve your on-page SEO and writing better content. 46 47 42 48 == Screenshots == 43 49 … … 48 54 49 55 == Changelog == 56 57 = 3 = 58 59 Improved code and overall stability 50 60 51 61 = 2.1 = -
block-styling/trunk/block-styling-backend.php
r2808227 r2808283 10 10 * Plugin URI: https://www.whynot.media/ 11 11 * Description: Making Blocks Ui more accessible and friendly, someway easier to handle and visually manage. 12 * Version: 2.112 * Version: 3 13 13 * Author: Dennys Dionigi 14 14 * Author URI: https://codepen.io/DedaloD … … 27 27 * Currently plugin version. 28 28 */ 29 define( 'BLOCK_STYLING_BACKEND_VERSION', ' 2.1' );29 define( 'BLOCK_STYLING_BACKEND_VERSION', '3' ); 30 30 31 31 … … 151 151 152 152 153 //** Grazie a Dennys Dionigi e Roberto B. 153 //** Grazie a Dennys Dionigi. 154 154 155 155 156 /*css admin*/ 156 add_action('enqueue_block_editor_assets','my_custom_css_admin'); 157 function my_custom_css_admin(){echo '<style>.wp-block-group[role=group]>*{border:1px solid #000!important}.editor-styles-wrapper .wp-block-columns>.wp-block-column>.wp-block{border:.6px dashed rgb(0 0 0/70%)!important}@media (min-width:769px){.editor-styles-wrapper .wp-block-columns>.wp-block-column>.wp-block{width:-webkit-fill-available!important}}:is(.editor-styles-wrapper .wp-block-columns >.wp-block-column >.wp-block-html,iframe.components-sandbox){width:fit-content;max-height:35vh;overflow-y:scroll;border:1px solid #000!important;color:#000}:is(.block-library-html__edit .block-editor-plain-text,iframe.components-sandbox)::-webkit-scrollbar{width:5px}:is(.block-library-html__edit .block-editor-plain-text,iframe.components-sandbox)::-webkit-scrollbar-track{background:rgb(0 0 0/5%)}:is(.block-library-html__edit .block-editor-plain-text,iframe.components-sandbox)::-webkit-scrollbar-thumb{background:rgb(9 207 136/60%)}:is(.block-library-html__edit,iframe.components-sandbox):is(:hover,:focus) .block-editor-plain-text::-webkit-scrollbar-thumb{background:#000}.edit-post-layout__metaboxes:not(:empty) .edit-post-meta-boxes-area{padding:0 0 2.5rem!important}.block-editor-rich-text__editable:is(:hover,:active,:focus,:focus-within){z-index:5}.whynot-block-slider{height:min-content}div img{backdrop-filter:contrast(.8)}.block-editor-block-list__layout .block-editor-block-list__block:after{box-shadow:0 0 0 .5px rgb(0 0 0/50%)!important}.wp-block[data-align=full]{display:flex;flex-direction:column}.wp-block-columns.are-vertically-aligned-center{align-items:center;display:flex;justify-content:center}:is(.wp-admin) [data-title]:not([data-title=""]):before{--white-hwb:hwb(0deg 100% 0%);--black-hwb:hwb(0deg 0% 100%);--invert-hwb:invert(1);--limegreen-hwb:hwb(120deg 20% 20%);--royalblue-hwb:hwb(225deg 25% 12%);--orangered-hwb:hwb(33deg 0% 0%);;content:attr(data-title);position:relative;display:flex;place-content:center;place-items:center;top:-1.5ch;left:-1ch;width:fit-content;height:fit-content;padding:3px;font:600 .99ex sans-serif;letter-spacing:.7px;background:var(--black-hwb);color:hwb(0deg 100% 0%);border:2.5px var(--white-hwb) solid;text-rendering:geometricprecision;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:subpixel-antialiased;white-space:nowrap;z-index:2;filter:drop-shadow(0 0 1px var(--black-hwb)) drop-shadow(2px 4px 10px var(--white-hwb));transition:all .6s ease-in-out;-webbkit-transition:all .6s ease-in-out;will-change:filter,text-shadow,background;speak:never}@supports (font-smooth){[data-title]:not([data-title=""]):before{font-smooth:always}}[data-title]:not([data-title=""]):hover:before{filter:invert(1);text-shadow:.5px .5px 3ch var(--white-hwb);transition:all .5s ease}.is-selected[data-title]:not([data-title=""]):before{background:var(--royalblue-hwb);filter:unset}[data-title]:not([data-title=""]) :has([data-title]):before{border-bottom:1px var(--limegreen-hwb) dashed}.is-selected[data-title][data-type="core/spacer"]:before{position:absolute;background:var(--orangered-hwb)}:is(.is-selected,.rich-text.is-selected:focus){-webkit-box-shadow:0 0 0 1px hwb(0deg 0% 100%);box-shadow:0 0 0 1px hwb(0deg 0% 100%)}:is(.wp-admin) .block-editor-block-patterns-list__item {height:auto;}</style>';} 158 function admin_style(){echo '<style>.CodeMirror-code{font-family:sans-serif;font-size:12px;word-spacing:3px;letter-spacing:.5px}.cm-qualifier,.cm-tag{-webkit-text-fill-color:#000;font-weight:700}.cm-variable-3,[role=presentation] .cm-builtin:nth-child(1){font-weight:700}</style>';} 159 add_action('admin_enqueue_scripts','admin_style'); 157 add_action('enqueue_block_editor_assets','my_custom_css_for_blocks'); 158 function my_custom_css_for_blocks() { 159 $plugin_url = plugin_dir_url( __FILE__ ); 160 wp_enqueue_style( 'style', $plugin_url . "/css/blocks-styling.css"); 161 } 162 163 164 /*better coding inside wp*/ 165 function admin_css() { 166 $plugin_url = plugin_dir_url( __FILE__ ); 167 wp_enqueue_style( 'style', $plugin_url . "/css/admin-better.css"); 168 } 169 170 add_action( 'admin_print_styles', 'admin_css' ); 171 160 172 161 173 //Spero vi sia utile ♥
Note: See TracChangeset
for help on using the changeset viewer.