From 79c4fa1e7a09a3d28f0f8ff7a5b9f41a6d6e123d Mon Sep 17 00:00:00 2001 From: Jasper de Groot Date: Fri, 7 Nov 2014 10:43:32 +0100 Subject: Theme: Improve default theme styling Changes tooltip to use the ui-widget-shadow class, which now applies the box-shadow style. .ui-widget-shadow was created when box-shadow wasn't available. By now, there's no point in faking a custom shadow anymore. This removes the only non-structural CSS from a widget-specific file. Updates demos to use the same font-family, removes unused images. Will be available as the new default theme on ThemeRoller called "Base", while "UI Smoothness" and "UI Lightness" will still be available in the gallery. Fixes #10617 Fixes #10880 Closes gh-1436 Ref jquery/download.jqueryui.com#248 --- ui/tooltip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/tooltip.js') diff --git a/ui/tooltip.js b/ui/tooltip.js index 85c64f2a0..6a9039afe 100644 --- a/ui/tooltip.js +++ b/ui/tooltip.js @@ -406,7 +406,8 @@ return $.widget( "ui.tooltip", { _tooltip: function( element ) { var tooltip = $( "
" ) .attr( "role", "tooltip" ) - .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " + + // TODO move to classes option + .addClass( "ui-tooltip ui-widget ui-widget-shadow ui-corner-all ui-widget-content " + ( this.options.tooltipClass || "" ) ), id = tooltip.uniqueId().attr( "id" ); -- cgit v1.2.3