ttrss/lib/dijit/themes/claro/form/Select.less

99 lines
2.5 KiB
Plaintext
Raw Normal View History

2011-11-08 16:40:44 +00:00
/* Select
*
* Styling Select mainly includes:
*
* 1. Containers
* .dijitSelect - for border, background-color
* .dijitButtonContents - for border
*
* 2. Arrow
* .dijitArrowButton - for border, padding and background-color|image
* .dijitArrowButtonInner - for border, background-color|image, display and width|height
*
* 3. Menu
* .dijitSelectMenu .* - for border, padding
*
* 4. Various states
* .dijitSelectHover|.dijitSelectFocused|.dijitSelectDisabled .* - for border, padding and background-color|image
*/
@import "../variables";
/* normal status */
2013-03-18 06:26:24 +00:00
.claro .dijitSelect .dijitArrowButtonContainer {
border: 1px solid @arrowbutton-inner-border-color;
2011-11-08 16:40:44 +00:00
}
.claro .dijitSelect .dijitArrowButton {
padding: 0;
background-color: @arrowbutton-background-color;
2013-03-18 06:26:24 +00:00
.standard-gradient("../");
2011-11-08 16:40:44 +00:00
}
.claro .dijitSelect .dijitArrowButton .dijitArrowButtonInner {
height:16px;
}
/* hover status */
.claro .dijitSelectHover {
background-color: @textbox-hovered-background-color;
2013-03-18 06:26:24 +00:00
.textbox-background-image;
2011-11-08 16:40:44 +00:00
background-repeat: repeat-x;
}
2013-03-18 06:26:24 +00:00
.claro .dijitSelectFocused,
.claro .dijitSelectHover {
2011-11-08 16:40:44 +00:00
border-color:@hovered-border-color;
}
.claro .dijitSelectHover .dijitArrowButton {
background-color:@arrowbutton-hovered-background-color;
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitSelectHover .dijitArrowButton .dijitArrowButtonInner {
2013-03-18 06:26:24 +00:00
background-position:-70px 53%;
2011-11-08 16:40:44 +00:00
}
/* focused status */
.claro .dijitSelectFocused .dijitArrowButton {
background-color:#7dbefa; // TODO. Mailed Jason about inconsistent ComboBox/Spinner behavior.
2013-03-18 06:26:24 +00:00
.active-gradient("../");
}
.claro .dijitSelectFocused .dijitArrowButton {
2011-11-08 16:40:44 +00:00
border: none;
2013-03-18 06:26:24 +00:00
padding: 1px;
2011-11-08 16:40:44 +00:00
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitSelectFocused .dijitArrowButton .dijitArrowButtonInner {
2013-03-18 06:26:24 +00:00
background-position:-70px 53%;
2011-11-08 16:40:44 +00:00
}
/* disable status */
.claro .dijitSelectDisabled {
2013-03-18 06:26:24 +00:00
border-color: @disabled-border-color;
2011-11-08 16:40:44 +00:00
background-color: @disabled-background-color;
background-image: none;
color: @disabled-text-color;
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitSelectDisabled .dijitArrowButton .dijitArrowButtonInner {
2013-03-18 06:26:24 +00:00
background-position:0 53%
2011-11-08 16:40:44 +00:00
}
/* Dropdown menu style for select */
.claro .dijitSelectMenu td.dijitMenuItemIconCell,
.claro .dijitSelectMenu td.dijitMenuArrowCell {
/* so that arrow and icon cells from MenuItem are not displayed */
display: none;
}
2013-03-18 06:26:24 +00:00
2011-11-08 16:40:44 +00:00
.claro .dijitSelectMenu td.dijitMenuItemLabel {
/* line up menu text with text in select box (in LTR and RTL modes) */
padding: @textbox-padding;
}
.claro .dijitSelectMenu .dijitMenuSeparatorTop {
border-bottom:1px solid @focused-border-color;
}