Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resizing Icons in jQuery-UI

Tags:

jquery-ui

I find the icons in jquery UI to be a bit small for my application. Adjusting the sizes on .ui-icon doesn't help of course, because the images are loaded from a single image file and so it will just show portions of other icons.

Is there any way to adjust the icon sizes without having to resize the icon image files for each size I'd like to use?

like image 392
adamnickerson Avatar asked Mar 10 '11 14:03

adamnickerson


People also ask

How to use jquery ui resizable?

This option is used to add a CSS class to style the element which you want to resize. When the element is resized a new <div> element is created, which is the one that is scaled (UI-resizable-helper class). Once the resize is complete, the original element is sized and the <div> element disappears.


1 Answers

It is an old problem, but here is my solution (hack if you prefer):

.ui-icon-circle-close {   -ms-transform: scale(2); /* IE 9 */   -webkit-transform: scale(2); /* Chrome, Safari, Opera */   transform: scale(2); } 

For an icon-only button it works great.

like image 97
SiliconValley Avatar answered Oct 02 '22 12:10

SiliconValley