Plugin Directory

Changeset 2808283


Ignore:
Timestamp:
10/31/2022 11:03:48 PM (3 years ago)
Author:
dennysdionigi
Message:

v3 finally out. Clean and nice

Location:
block-styling/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • block-styling/trunk/README.txt

    r2808227 r2808283  
    22Contributors: why not, dennys dionigi, the_dionigi, dennys palumbo, Roberto bottalico
    33Donate link: https://www.whynot.media
    4 Tags: comments
     4Tags: ui,ux,css,gutenberg
    55Requires at least: 5.0.1
    6 Tested up to: 6.2
    7 Stable tag: 6.1
     6Tested up to: 6.1
     7Stable tag: 6.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040Nope. Just, on backend, few bytes of compressed code.
    4141
     42
     43= What's the killer feature ? =
     44
     45Now 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
    4248== Screenshots ==
    4349
     
    4854
    4955== Changelog ==
     56
     57= 3 =
     58
     59Improved code and overall stability
    5060
    5161= 2.1 =
  • block-styling/trunk/block-styling-backend.php

    r2808227 r2808283  
    1010 * Plugin URI:        https://www.whynot.media/
    1111 * Description:       Making Blocks Ui more accessible and friendly, someway easier to handle and visually manage.
    12  * Version:           2.1
     12 * Version:           3
    1313 * Author:            Dennys Dionigi
    1414 * Author URI:        https://codepen.io/DedaloD
     
    2727 * Currently plugin version.
    2828 */
    29 define( 'BLOCK_STYLING_BACKEND_VERSION', '2.1' );
     29define( 'BLOCK_STYLING_BACKEND_VERSION', '3' );
    3030
    3131
     
    151151 
    152152
    153 //** Grazie a Dennys Dionigi e Roberto B.
     153//** Grazie a Dennys Dionigi.
     154
    154155
    155156/*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');
     157add_action('enqueue_block_editor_assets','my_custom_css_for_blocks');
     158function 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*/
     165function 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
    160172
    161173//Spero vi sia utile ♥
Note: See TracChangeset for help on using the changeset viewer.