ttrss/lib/dijit/themes/claro/form/NumberSpinner.css

139 lines
4.3 KiB
CSS
Raw Normal View History

2011-11-08 16:40:44 +00:00
/* NumberSpinner - namespace "dijitSpinner"
*
* Styling NumberSpinner mainly includes:
*
* 1. Arrows
* Outer containers: .dijitSpinnerButtonContainer|.dijitSpinnerButtonInner - for border, padding and position
* Arrows: .dijitArrowButton|.dijitUpArrowButton.|dijitDownArrowButton
* Inner container: .dijitArrowButtonInner - for border, padding, width|height and background image
*
* 2. Hover state
* .dijitUpArrowButtonHover|.dijitDownArrowButtonHover .* - for background color|image
*
* 3. Active state
* .dijitUpArrowButtonActive|.dijitDownArrowButtonActive .* - for border, padding, margin and background color|image
*
* 4. Focused state
* .dijitSpinnerFocused .* - for background color|image
*
* 5. Disabled state
* .dijitSpinnerDisabled .* - for background color|image
*/
.claro .dijitSpinnerButtonContainer {
2011-11-08 16:40:44 +00:00
overflow: hidden;
position: relative;
width: auto;
padding: 0 2px;
}
.claro .dijitSpinnerButtonContainer .dijitSpinnerButtonInner {
2011-11-08 16:40:44 +00:00
border-width: 1px 0;
/* reserve space to match the claro combobox button border with border and not padding to make IE happier */
border-style: solid none;
}
2011-11-08 16:40:44 +00:00
/* button */
.claro .dijitSpinner .dijitArrowButton {
2011-11-08 16:40:44 +00:00
width: auto;
background-color: #efefef;
2012-08-14 14:59:10 +00:00
background-image: url("../form/images/formHighlight.png");
2011-11-08 16:40:44 +00:00
background-position: 0 0;
background-repeat: repeat-x;
overflow: hidden;
}
.dj_iequirks .claro .dijitSpinner .dijitArrowButton {
2011-11-08 16:40:44 +00:00
overflow: visible;
/* 0 height w/o this */
}
.claro .dijitSpinner .dijitSpinnerButtonInner {
2011-11-08 16:40:44 +00:00
width: 15px;
}
2011-11-08 16:40:44 +00:00
/* up & down button icons */
.claro .dijitSpinner .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
border: solid 1px #ffffff;
border-bottom-width: 0;
/* 2 top borders = 1 top+bottom border in ComboBox */
2012-08-14 14:59:10 +00:00
background-image: url("../form/images/commonFormArrows.png");
2011-11-08 16:40:44 +00:00
background-repeat: no-repeat;
height: 100%;
width: 15px;
padding-left: 1px;
padding-right: 1px;
/* for up arrow */
background-position: -139px center;
/* override button.css (TODO: move to Common.css since ComboBox needs this too) */
display: block;
margin: -1px 0 -1px 0;
/* compensate for inner border */
}
.dj_ie6 .claro .dijitSpinner .dijitArrowButtonInner, .dj_ie7 .claro .dijitSpinner .dijitArrowButtonInner {
margin-top: 0;
/* since its bottom aligned */
}
.dj_iequirks .claro .dijitSpinner .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
width: 19px;
}
.claro .dijitSpinner .dijitDownArrowButton .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -34px;
}
.claro .dijitSpinner .dijitArrowButtonInner .dijitInputField {
2011-11-08 16:40:44 +00:00
padding: 0;
}
2011-11-08 16:40:44 +00:00
/** hover & focused status **/
.claro .dijitUpArrowButtonActive, .claro .dijitDownArrowButtonActive {
background-color: #abd6ff;
}
2011-11-08 16:40:44 +00:00
.claro .dijitSpinner .dijitUpArrowButtonHover, .claro .dijitSpinner .dijitDownArrowButtonHover, .claro .dijitSpinnerFocused .dijitArrowButton {
background-color: #abd6ff;
}
.claro .dijitSpinner .dijitUpArrowButtonHover .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -174px;
}
.claro .dijitSpinner .dijitDownArrowButtonHover .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -69px;
}
.claro .dijitSpinnerFocused {
2011-11-08 16:40:44 +00:00
background-color: #ffffff;
background-image: none;
}
2011-11-08 16:40:44 +00:00
/* mouse down status */
.claro .dijitSpinner .dijitDownArrowButtonActive, .claro .dijitSpinner .dijitUpArrowButtonActive {
background-color: #7dbefa;
background-position: 0 -177px;
}
2011-11-08 16:40:44 +00:00
.claro .dijitSpinner .dijitUpArrowButtonActive .dijitArrowButtonInner, .claro .dijitSpinner .dijitDownArrowButtonActive .dijitArrowButtonInner {
/* hide inner border while button is depressed */
border: 0;
padding: 1px;
margin-right: 2px;
margin-bottom: 1px;
}
.claro .dijitSpinner .dijitUpArrowButtonActive .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -173px;
}
.claro .dijitSpinner .dijitDownArrowButtonActive .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -68px;
}
2011-11-08 16:40:44 +00:00
/* disabled */
.claro .dijitSpinnerDisabled .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-color: #efefef;
}
.claro .dijitSpinnerDisabled .dijitUpArrowButton .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: -104px;
}
.claro .dijitSpinnerDisabled .dijitDownArrowButton .dijitArrowButtonInner {
2011-11-08 16:40:44 +00:00
background-position: 1px;
}
2011-11-08 16:40:44 +00:00
/** hacks for browsers **/
/* for IE 7, when div is enlarged,
* should be no empty space between dijitInputLayoutContainer and dijitSpinner*/
.dj_ie7 .claro .dijitSpinner {
2011-11-08 16:40:44 +00:00
overflow: visible;
}