2011-11-08 16:40:44 +00:00
|
|
|
/* Button | DropDownButton | ComboButton | ToggleButton
|
|
|
|
*
|
|
|
|
* Styling Buttons mainly includes:
|
|
|
|
*
|
|
|
|
* 1. Containers
|
|
|
|
* .dijitButton
|
|
|
|
* .dijitDropDownButton
|
|
|
|
* .dijitComboButton
|
|
|
|
* .dijitButtonNode - common button/arrow wrapper shared across all three button types
|
|
|
|
*
|
|
|
|
* 2. Button text
|
|
|
|
* .dijitButtonText
|
|
|
|
*
|
|
|
|
* 3. Arrows - only for DropDownButton and ComboButton
|
|
|
|
* There are total four directions arrows - down, left, right, up:
|
|
|
|
* .dijitArrowButtonInner - down arrow by default
|
|
|
|
* .dijitLeftArrowButton .dijitArrowButtonInner - left arrow
|
|
|
|
* .dijitRightArrowButton .dijitArrowButtonInner - right arrow
|
|
|
|
* .dijitUpArrowButton .dijitArrowButtonInner - up arrow
|
|
|
|
*
|
|
|
|
* 4. States - Hover, Active, Disabled, e.g.
|
|
|
|
* .dijitButtonHover .dijitButtonNode
|
|
|
|
* .dijitButtonActive .dijitButtonNode
|
|
|
|
* .dijitButtonDisabled .dijitButtonNode
|
|
|
|
*
|
|
|
|
* .dijitDisabled .dijitArrowButtonInner - disabled arrow states
|
|
|
|
*/
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitButtonNode {
|
2011-11-08 16:40:44 +00:00
|
|
|
/* rules for dijit.form.*Button widgets and arrow nodes on ComboBox, Spinner etc. */
|
|
|
|
|
|
|
|
-webkit-transition-property: background-color;
|
|
|
|
-moz-transition-property: background-color;
|
|
|
|
transition-property: background-color;
|
|
|
|
-webkit-transition-duration: 0.3s;
|
|
|
|
-moz-transition-duration: 0.3s;
|
|
|
|
transition-duration: 0.3s;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitButton .dijitButtonNode,
|
|
|
|
.claro .dijitDropDownButton .dijitButtonNode,
|
|
|
|
.claro .dijitComboButton .dijitButtonNode,
|
|
|
|
.claro .dijitToggleButton .dijitButtonNode {
|
2011-11-08 16:40:44 +00:00
|
|
|
/* rules for the dijit.form.*Button widgets (see also ComboButton section below) */
|
|
|
|
|
|
|
|
border: 1px solid #769dc0;
|
|
|
|
padding: 2px 4px 4px 4px;
|
|
|
|
background-image: url("images/button.png");
|
|
|
|
background-position: center top;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
background-color: #e9f4fe;
|
|
|
|
-moz-border-radius: 4px;
|
|
|
|
border-radius: 4px;
|
|
|
|
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
|
|
|
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
|
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitComboButton .dijitArrowButton {
|
2011-11-08 16:40:44 +00:00
|
|
|
border-left-width: 0;
|
|
|
|
padding: 4px 2px 4px 2px;
|
|
|
|
/* TODO: still needed? */
|
|
|
|
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
/*arrow styles for down/up/left/right directions*/
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
width: 15px;
|
|
|
|
height: 15px;
|
|
|
|
margin: 0 auto;
|
|
|
|
background-image: url("images/buttonArrows.png");
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: -51px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitLeftArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -77px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitRightArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -26px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitUpArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: 0 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitDisabled .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -151px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitDisabled .dijitLeftArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -177px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitDisabled .dijitRightArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -126px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitDisabled .dijitUpArrowButton .dijitArrowButtonInner {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-position: -100px 53%;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitButtonText {
|
2011-11-08 16:40:44 +00:00
|
|
|
padding: 0 0.3em;
|
|
|
|
text-align: center;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
2011-11-08 16:40:44 +00:00
|
|
|
/* hover status */
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitButtonHover .dijitButtonNode,
|
|
|
|
.claro .dijitDropDownButtonHover .dijitButtonNode,
|
2011-11-08 16:40:44 +00:00
|
|
|
.claro .dijitComboButton .dijitButtonNodeHover,
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitComboButton .dijitDownArrowButtonHover,
|
|
|
|
.claro .dijitToggleButtonHover .dijitButtonNode {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-color: #abd6ff;
|
|
|
|
color: #000000;
|
|
|
|
-webkit-transition-duration: 0.2s;
|
|
|
|
-moz-transition-duration: 0.2s;
|
|
|
|
transition-duration: 0.2s;
|
|
|
|
}
|
|
|
|
/* checked status */
|
|
|
|
.claro .dijitButtonActive .dijitButtonNode,
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitDropDownButtonActive .dijitButtonNode,
|
|
|
|
.claro .dijitComboButtonActive .dijitButtonNode,
|
|
|
|
.claro .dijitToggleButtonActive .dijitButtonNode {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-color: #abd6ff;
|
|
|
|
-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
-webkit-transition-duration: 0.1s;
|
|
|
|
-moz-transition-duration: 0.1s;
|
|
|
|
transition-duration: 0.1s;
|
|
|
|
}
|
|
|
|
/* disabled status */
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro .dijitButtonDisabled,
|
|
|
|
.claro .dijitDropDownButtonDisabled,
|
|
|
|
.claro .dijitComboButtonDisabled,
|
|
|
|
.claro .dijitToggleButtonDisabled {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: none;
|
|
|
|
outline: none;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitButtonDisabled .dijitButtonNode,
|
|
|
|
.claro .dijitDropDownButtonDisabled .dijitButtonNode,
|
|
|
|
.claro .dijitComboButtonDisabled .dijitButtonNode,
|
2011-11-08 16:40:44 +00:00
|
|
|
.claro .dijitToggleButtonDisabled .dijitButtonNode {
|
|
|
|
background-position: 0 -149px;
|
|
|
|
background-color: #efefef;
|
|
|
|
border: solid 1px #d3d3d3;
|
|
|
|
color: #818181;
|
|
|
|
-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
|
|
}
|
|
|
|
.claro .dijitComboButtonDisabled .dijitArrowButton {
|
|
|
|
border-left-width: 0;
|
|
|
|
}
|
|
|
|
/* for ComboButton */
|
2010-11-15 07:39:52 +00:00
|
|
|
.claro table.dijitComboButton {
|
2011-11-08 16:40:44 +00:00
|
|
|
border-collapse: separate;
|
|
|
|
/* override dijit.css so that ComboBox rounded corners work */
|
|
|
|
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.dj_ie6 .claro .dijitButtonNode {
|
2011-11-08 16:40:44 +00:00
|
|
|
background-image: none;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitComboButton .dijitStretch {
|
2011-11-08 16:40:44 +00:00
|
|
|
-moz-border-radius: 4px 0 0 4px;
|
|
|
|
border-radius: 4px 0 0 4px;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|
|
|
|
.claro .dijitComboButton .dijitArrowButton {
|
2011-11-08 16:40:44 +00:00
|
|
|
-moz-border-radius: 0 4px 4px 0;
|
|
|
|
border-radius: 0 4px 4px 0;
|
2010-11-15 07:39:52 +00:00
|
|
|
}
|