mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Slider: Removing dir option. Implementation caused more damage then being useful - will eventually implement RTL support in all widgets.
This commit is contained in:
parent
44ca830ee8
commit
0e7bef4401
18
themes/base/jquery.ui.spinner.css
vendored
18
themes/base/jquery.ui.spinner.css
vendored
@ -1,24 +1,12 @@
|
||||
/* Spinner
|
||||
----------------------------------*/
|
||||
.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; height: 1.8em; }
|
||||
.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; }
|
||||
.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; z-index: 100; text-align: center; vertical-align: middle; position: absolute; cursor: default; display: block; overflow: hidden; }
|
||||
.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; } /* more specificity required here to overide default borders */
|
||||
.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; float: left; margin-left: .4em; margin-right: 22px; }
|
||||
.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; z-index: 100; text-align: center; vertical-align: middle; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
|
||||
.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
|
||||
.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
|
||||
.ui-spinner-up { top: 0; }
|
||||
.ui-spinner-down { bottom: 0; }
|
||||
|
||||
/* ltr (default) */
|
||||
.ui-spinner-ltr { direction: ltr; }
|
||||
.ui-spinner-ltr .ui-spinner-input { float: left; margin-left: .4em; margin-right: 22px; }
|
||||
.ui-spinner-ltr .ui-spinner-button { right: 0; }
|
||||
.ui-spinner-ltr a.ui-spinner-button { border-right: none; }
|
||||
|
||||
/* rtl */
|
||||
.ui-spinner-rtl { direction: rtl; }
|
||||
.ui-spinner-rtl .ui-spinner-input { float: right; margin-left: 22px; margin-right: .4em; }
|
||||
.ui-spinner-rtl .ui-spinner-button { left: 0; }
|
||||
.ui-spinner-rtl a.ui-spinner-button { border-left: none; }
|
||||
|
||||
/* TR overrides */
|
||||
div.ui-spinner { background: none; }
|
||||
|
9
ui/jquery.ui.spinner.js
vendored
9
ui/jquery.ui.spinner.js
vendored
@ -21,7 +21,6 @@ var hover = 'ui-state-hover',
|
||||
|
||||
$.widget('ui.spinner', {
|
||||
options: {
|
||||
dir: 'ltr',
|
||||
incremental: true,
|
||||
max: Number.MAX_VALUE,
|
||||
min: -Number.MAX_VALUE,
|
||||
@ -138,13 +137,11 @@ $.widget('ui.spinner', {
|
||||
self.uiSpinner = uiSpinner;
|
||||
},
|
||||
_uiSpinnerHtml: function() {
|
||||
return '<div role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all ui-spinner-' + this.options.dir + '"></div>';
|
||||
return '<div role="spinbutton" class="ui-spinner ui-state-default ui-widget ui-widget-content ui-corner-all"></div>';
|
||||
},
|
||||
_buttonHtml: function() {
|
||||
return '<a class="ui-spinner-button ui-spinner-up ui-corner-t' + this.options.dir.substr(-1,1) +
|
||||
'"><span class="ui-icon ui-icon-triangle-1-n">▲</span></a>' +
|
||||
'<a class="ui-spinner-button ui-spinner-down ui-corner-b' + this.options.dir.substr(-1,1) +
|
||||
'"><span class="ui-icon ui-icon-triangle-1-s">▼</span></a>';
|
||||
return '<a class="ui-spinner-button ui-spinner-up ui-corner-tr"><span class="ui-icon ui-icon-triangle-1-n">▲</span></a>' +
|
||||
'<a class="ui-spinner-button ui-spinner-down ui-corner-br"><span class="ui-icon ui-icon-triangle-1-s">▼</span></a>';
|
||||
},
|
||||
_start: function(event) {
|
||||
if (!this.spinning && this._trigger('start', event, { value: this.value()}) !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user