Plugin Directory

Changeset 1912235


Ignore:
Timestamp:
07/20/2018 01:38:22 PM (8 years ago)
Author:
Deftly
Message:

changed object passed to css-on-the-fly.js to an array to allow foreach, added new css rules to fix display overlaps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • beans-visual-hook-guide/trunk/assets/js/css-on-the-fly.js

    r1858944 r1912235  
    1616        }
    1717
    18         classAttributes.forEach( this.cssHandler, this );
     18        var classAttributesArray = Object.values( classAttributes )
     19       
     20        classAttributesArray.forEach( this.cssHandler, this );
    1921    }
    2022
     
    117119
    118120        if ( 'beans_search_form_input_icon' === classAttribute ) {
    119             return 'border: solid 1px orange; margin: 5px !important; position: inherit; width: auto;';
     121            return 'border: solid 1px orange; margin: 5px !important; position: inherit; width: auto; ';
    120122        }
    121123
    122         return 'border: solid 1px orange; margin: 5px !important;';
     124        if ( 'beans_head' === classAttribute || 'beans_favicon' === classAttribute ) {
     125            return 'border: solid 1px orange; margin: 5px !important; height: 7px; display: block';
     126        }
     127
     128        if ( 'beans_post_meta_items' === classAttribute ) {
     129            return 'border: solid 1px orange; margin: 5px !important; display: grid;';
     130        }
     131
     132        if ( 'beans_widget_area_offcanvas_wrap[_offcanvas_menu]' === classAttribute ) {
     133            return 'border: solid 1px orange; margin: 5px !important; display:block; position: unset';
     134        }
     135
     136        return 'border: solid 1px orange; margin: 5px !important; display: block;';
    123137    }
    124138
Note: See TracChangeset for help on using the changeset viewer.