Skip to content

Commit

Permalink
Merge pull request #317 from FameThemes/development
Browse files Browse the repository at this point in the history
Update to version 2.1.0
  • Loading branch information
shrimp2t authored Sep 10, 2018
2 parents 03b3e02 + 4be1b34 commit 13ef6f8
Show file tree
Hide file tree
Showing 56 changed files with 10,269 additions and 5,271 deletions.
1 change: 0 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ module.exports = function( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
grunt.loadNpmTasks('grunt-contrib-uglify');


grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
Expand Down
11 changes: 11 additions & 0 deletions assets/css/customizer.css
Original file line number Diff line number Diff line change
Expand Up @@ -565,3 +565,14 @@ body .wp-full-overlay{
text-indent: 0;
text-align: center;
}

.onepress-c-heading {
padding: 5px 12px;
background: #BBBBBB;
margin: 10px -12px 2px;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 500;
font-size: 12px;
color: #FFFFFF;
}
16 changes: 13 additions & 3 deletions assets/js/customizer-liveview.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,20 @@
} );
} );

$( window ).resize( function(){
var css_code = $( '#onepress-style-inline-css' ).html();
function update_css( ){
var css_code = $( '#onepress-style-inline-css' ).html();
// Fix Chrome Lost CSS When resize ??
$( '#onepress-style-inline-css' ).html( css_code );
$( '#onepress-style-inline-css' ).replaceWith( '<style class="replaced-style" id="onepress-style-inline-css">'+css_code+'</style>' );

}

// When preview ready
wp.customize.bind( 'preview-ready', function() {
update_css();
});

$( window ).resize( function(){
update_css();
});


Expand Down
Loading

0 comments on commit 13ef6f8

Please sign in to comment.