Author: abelevich
Date: 2008-01-11 05:34:26 -0500 (Fri, 11 Jan 2008)
New Revision: 5292
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
Log:
add hovered styles
Modified:
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss
===================================================================
---
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-11
10:32:14 UTC (rev 5291)
+++
trunk/sandbox/ui/combobox/src/main/resources/org/richfaces/renderkit/html/css/combobox.xcss 2008-01-11
10:34:26 UTC (rev 5292)
@@ -34,10 +34,6 @@
}
-.rich-combobox-button-hovered {
-
-}
-
.rich-combobox-input-default-disabled {
position : absolute;
top : 0px; left : 0;
@@ -120,6 +116,15 @@
border : 1px solid;
}
+.rich-combobox-button-hovered {
+ position : absolute;
+ top : 0px;
+ right : 0px; //left: fullWidth - 17px;
+ width : 17px;
+ margin : 0px;
+ border : 1px solid;
+}
+
.rich-combobox-button-background {
background : top repeat-x;
cursor : pointer;
@@ -172,6 +177,10 @@
<u:style name="border-color" skin="panelBorderColor"/>
</u:selector>
+ <u:selector name=".rich-combobox-button-hovered">
+ <u:style name="border-color" skin="selectControlColor"/>
+ </u:selector>
+
<u:selector name=".rich-combobox-font">
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
Modified: trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx
===================================================================
--- trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-11 10:32:14 UTC
(rev 5291)
+++ trunk/sandbox/ui/combobox/src/main/templates/combobox.jspx 2008-01-11 10:34:26 UTC
(rev 5292)
@@ -137,7 +137,9 @@
</input>
<input id="comboboxButton#{clientId}" readonly="true"
type="text" value="" style="#{buttonStyle}"
class="rich-combobox-font rich-combobox-button-icon rich-combobox-button
#{buttonClass}"
onmousedown="document.getElementById('comboBoxButtonBG#{clientId}').className='rich-combobox-font
rich-combobox-button-pressed-background rich-combobox-button';
this.className='rich-combobox-button rich-combobox-button-pressed rich-combobox-font
rich-combobox-button-icon';"
- onmouseup="document.getElementById('comboBoxButtonBG#{clientId}').className='rich-combobox-font
rich-combobox-button-background rich-combobox-button';
this.className='rich-combobox-button rich-combobox-font
rich-combobox-button-icon'" >
+ onmouseup="document.getElementById('comboBoxButtonBG#{clientId}').className='rich-combobox-font
rich-combobox-button-background rich-combobox-button';
this.className='rich-combobox-button rich-combobox-font
rich-combobox-button-icon'"
+ onmouseout="this.className='rich-combobox-font rich-combobox-button-icon
rich-combobox-button'"
+ onmouseover="this.className='rich-combobox-font rich-combobox-button-icon
rich-combobox-button-hovered'">
</input>
<input type="text" class="rich-combobox-strut
rich-combobox-font" style="width:#{listWidth}">
</input>
Show replies by date