]>
Commit | Line | Data |
---|---|---|
81bea17a AD |
1 | /* Select |
2 | * | |
3 | * Styling Select mainly includes: | |
4 | * | |
5 | * 1. Containers | |
6 | * .dijitSelect - for border, background-color | |
7 | * .dijitButtonContents - for border | |
8 | * | |
9 | * 2. Arrow | |
10 | * .dijitArrowButton - for border, padding and background-color|image | |
11 | * .dijitArrowButtonInner - for border, background-color|image, display and width|height | |
12 | * | |
13 | * 3. Menu | |
14 | * .dijitSelectMenu .* - for border, padding | |
15 | * | |
16 | * 4. Various states | |
17 | * .dijitSelectHover|.dijitSelectFocused|.dijitSelectDisabled .* - for border, padding and background-color|image | |
18 | */ | |
19 | ||
20 | @import "../variables"; | |
21 | ||
81bea17a | 22 | /* normal status */ |
f0cfe83e AD |
23 | .claro .dijitSelect .dijitArrowButtonContainer { |
24 | border: 1px solid @arrowbutton-inner-border-color; | |
81bea17a AD |
25 | } |
26 | ||
27 | .claro .dijitSelect .dijitArrowButton { | |
28 | padding: 0; | |
81bea17a | 29 | background-color: @arrowbutton-background-color; |
f0cfe83e | 30 | .standard-gradient("../"); |
81bea17a AD |
31 | } |
32 | ||
33 | .claro .dijitSelect .dijitArrowButton .dijitArrowButtonInner { | |
81bea17a AD |
34 | height:16px; |
35 | } | |
36 | ||
37 | /* hover status */ | |
38 | .claro .dijitSelectHover { | |
81bea17a | 39 | background-color: @textbox-hovered-background-color; |
f0cfe83e | 40 | .textbox-background-image; |
81bea17a AD |
41 | background-repeat: repeat-x; |
42 | } | |
43 | ||
81bea17a AD |
44 | .claro .dijitSelectHover .dijitArrowButton { |
45 | background-color:@arrowbutton-hovered-background-color; | |
46 | } | |
f0cfe83e | 47 | |
81bea17a | 48 | .claro .dijitSelectHover .dijitArrowButton .dijitArrowButtonInner { |
f0cfe83e | 49 | background-position:-70px 53%; |
81bea17a AD |
50 | } |
51 | ||
52 | /* focused status */ | |
81bea17a AD |
53 | .claro .dijitSelectFocused .dijitArrowButton { |
54 | background-color:#7dbefa; // TODO. Mailed Jason about inconsistent ComboBox/Spinner behavior. | |
f0cfe83e AD |
55 | .active-gradient("../"); |
56 | } | |
57 | ||
58 | .claro .dijitSelectFocused .dijitArrowButton { | |
81bea17a | 59 | border: none; |
f0cfe83e | 60 | padding: 1px; |
81bea17a | 61 | } |
f0cfe83e | 62 | |
81bea17a | 63 | .claro .dijitSelectFocused .dijitArrowButton .dijitArrowButtonInner { |
f0cfe83e | 64 | background-position:-70px 53%; |
81bea17a AD |
65 | } |
66 | ||
67 | /* disable status */ | |
68 | .claro .dijitSelectDisabled { | |
f0cfe83e | 69 | border-color: @disabled-border-color; |
81bea17a AD |
70 | background-color: @disabled-background-color; |
71 | background-image: none; | |
72 | color: @disabled-text-color; | |
73 | } | |
f0cfe83e | 74 | |
81bea17a | 75 | .claro .dijitSelectDisabled .dijitArrowButton .dijitArrowButtonInner { |
f0cfe83e | 76 | background-position:0 53% |
81bea17a AD |
77 | } |
78 | ||
79 | /* Dropdown menu style for select */ | |
81bea17a AD |
80 | .claro .dijitSelectMenu td.dijitMenuItemIconCell, |
81 | .claro .dijitSelectMenu td.dijitMenuArrowCell { | |
82 | /* so that arrow and icon cells from MenuItem are not displayed */ | |
83 | display: none; | |
84 | } | |
f0cfe83e | 85 | |
81bea17a AD |
86 | .claro .dijitSelectMenu td.dijitMenuItemLabel { |
87 | /* line up menu text with text in select box (in LTR and RTL modes) */ | |
88 | padding: @textbox-padding; | |
89 | } | |
90 | ||
91 | .claro .dijitSelectMenu .dijitMenuSeparatorTop { | |
92 | border-bottom:1px solid @focused-border-color; | |
93 | } |