From cb1568a016e4b2c354f9e63c7aa770332e907431 Mon Sep 17 00:00:00 2001 From: shramee Date: Tue, 1 Mar 2016 19:53:19 +0530 Subject: [PATCH] Icon size relative to button size and padding ratio fixed --- assets/dashicons-select.js | 7 ++++++- assets/dialog.php | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/dashicons-select.js b/assets/dashicons-select.js index a47feab..30b8686 100644 --- a/assets/dashicons-select.js +++ b/assets/dashicons-select.js @@ -16,7 +16,12 @@ $di.append( $('
') ); $.each( $.fn.dashicons, function( k, icon ) { var ico = 'dashicons dashicons-' + icon; - $i = $( '' ).addClass( ico ).css("vertical-align","middle"); + $i = $( '' ).addClass( ico ).css( { + verticalAlign : "middle", + fontSize: '1.2em', + width: '1em', + height: '1em' + } ); $i.click( function() { var $t = $( this ); $input.val( $t.prop('outerHTML') ).change(); diff --git a/assets/dialog.php b/assets/dialog.php index 623f17c..4ae066e 100644 --- a/assets/dialog.php +++ b/assets/dialog.php @@ -216,7 +216,7 @@
- +
@@ -236,7 +236,7 @@ - +