2011-11-08 17:40:44 +01:00
|
|
|
/* claro/form/Common.css */
|
|
|
|
|
|
|
|
/*========================= common css =========================*/
|
|
|
|
|
|
|
|
@import "../variables";
|
|
|
|
|
|
|
|
/* 'dijitTextBox' refers to 'dijit(TextBox|DateTextBox|CurrencyTextBox|...)' */
|
|
|
|
|
2012-08-14 16:59:10 +02:00
|
|
|
.claro .dijitTextBox,
|
|
|
|
.claro .dijitInputInner {
|
|
|
|
// .dijitInputInner selector needed for ValidationTextBox on IE6 because <input> doesn't inherit
|
|
|
|
// the color setting from the ancestor div.dijitTextBox
|
|
|
|
color: @text-color;
|
|
|
|
}
|
|
|
|
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitValidationTextBoxError .dijitValidationContainer {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-color: @erroricon-background-color;
|
2012-08-14 16:59:10 +02:00
|
|
|
background-image: url("../@{image-form-error}");
|
2011-11-08 17:40:44 +01:00
|
|
|
background-position: top center;
|
|
|
|
border: solid @erroricon-background-color 0;
|
|
|
|
width: 9px;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.claro .dijitTextBoxError .dijitValidationContainer {
|
|
|
|
border-left-width: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.claro .dijitValidationTextBoxError .dijitValidationIcon {
|
2011-11-08 17:40:44 +01:00
|
|
|
width: 0;
|
2017-01-20 18:29:59 +01:00
|
|
|
background-color: transparent; /* so the INPUT doesn't obscure the border in rtl+a11y */
|
2011-11-08 17:40:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Padding for the input area of TextBox based widgets, and corresponding padding for the
|
|
|
|
* down arrow button and the placeholder. placeholder is explicitly listed because
|
|
|
|
* dijitPlaceHolder is absolutely positioned, so padding set on dijitInputField
|
|
|
|
* won't affect it
|
|
|
|
*/
|
|
|
|
.claro .dijitTextArea,
|
|
|
|
.claro .dijitInputField .dijitPlaceHolder {
|
|
|
|
padding: @textbox-padding;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.claro .dijitSelect .dijitInputField,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBox .dijitInputField {
|
|
|
|
// Subtract 1px from top/bottom because we add 1px to other nodes, see rules below.
|
|
|
|
// Although we are theoretically only adding 1px to top/bottom browsers seem to pad inputs by 1px on left/right,
|
|
|
|
// although that varies by so compensate for that too.
|
|
|
|
padding: @textbox-padding - 1px @textbox-padding;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.dj_gecko .claro .dijitTextBox .dijitInputInner,
|
|
|
|
.dj_webkit .claro .dijitTextBox .dijitInputInner {
|
|
|
|
// Although we are theoretically only adding 1px to top/bottom, some browsers seem to pad inputs by 1px on left/right,
|
|
|
|
// so compensate for that too.
|
2017-01-20 18:29:59 +01:00
|
|
|
padding-left: @textbox-padding - 1px;
|
|
|
|
padding-right: @textbox-padding - 1px;
|
2011-11-08 17:40:44 +01:00
|
|
|
}
|
|
|
|
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelect,
|
|
|
|
.claro .dijitSelect .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBox,
|
|
|
|
.claro .dijitTextBox .dijitButtonNode {
|
|
|
|
/* color for (outer) border on *TextBox widgets, and border between input and buttons on ComboBox and Spinner */
|
|
|
|
border-color: @border-color;
|
|
|
|
.transition-property(background-color, border);
|
|
|
|
.transition-duration(.35s);
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.claro .dijitSelect,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBox {
|
|
|
|
background-color: @textbox-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* hover */
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectHover,
|
|
|
|
.claro .dijitSelectHover .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxHover,
|
|
|
|
.claro .dijitTextBoxHover .dijitButtonNode {
|
|
|
|
border-color: @hovered-border-color;
|
|
|
|
.transition-duration(.25s);
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxHover {
|
|
|
|
background-color: @textbox-hovered-background-color;
|
2013-03-18 07:26:24 +01:00
|
|
|
.textbox-background-image;
|
2011-11-08 17:40:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* error state */
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectError,
|
|
|
|
.claro .dijitSelectError .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxError,
|
|
|
|
.claro .dijitTextBoxError .dijitButtonNode {
|
|
|
|
border-color: @error-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* focused state */
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectFocused,
|
|
|
|
.claro .dijitSelectFocused .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxFocused,
|
|
|
|
.claro .dijitTextBoxFocused .dijitButtonNode {
|
|
|
|
border-color:@focused-border-color;
|
|
|
|
.transition-duration(.1s);
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxFocused {
|
|
|
|
background-color: @textbox-focused-background-color;
|
2013-03-18 07:26:24 +01:00
|
|
|
.textbox-background-image;
|
2011-11-08 17:40:44 +01:00
|
|
|
}
|
|
|
|
.claro .dijitTextBoxFocused .dijitInputContainer {
|
|
|
|
background: @textbox-focused-background-color;
|
|
|
|
}
|
|
|
|
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectErrorFocused,
|
|
|
|
.claro .dijitSelectErrorFocused .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxErrorFocused,
|
|
|
|
.claro .dijitTextBoxErrorFocused .dijitButtonNode {
|
|
|
|
border-color: @error-focused-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* disabled state */
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectDisabled,
|
|
|
|
.claro .dijitSelectDisabled .dijitButtonContents,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxDisabled,
|
|
|
|
.claro .dijitTextBoxDisabled .dijitButtonNode {
|
|
|
|
border-color: @disabled-border-color;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.claro .dijitSelectDisabled,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBoxDisabled,
|
|
|
|
.claro .dijitTextBoxDisabled .dijitInputContainer {
|
|
|
|
background-color: @textbox-disabled-background-color;
|
|
|
|
background-image: none;
|
2012-08-14 16:59:10 +02:00
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.claro .dijitSelectDisabled,
|
2012-08-14 16:59:10 +02:00
|
|
|
.claro .dijitTextBoxDisabled,
|
|
|
|
.claro .dijitTextBoxDisabled .dijitInputInner {
|
2011-11-08 17:40:44 +01:00
|
|
|
color: @disabled-text-color;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.dj_webkit .claro .dijitDisabled input {
|
2012-08-14 16:59:10 +02:00
|
|
|
/* because WebKit lightens disabled input/textarea no matter what color you specify */
|
|
|
|
color: darken(@disabled-text-color, 5%)
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2012-08-14 16:59:10 +02:00
|
|
|
.dj_webkit .claro textarea.dijitTextAreaDisabled {
|
|
|
|
/* because WebKit lightens disabled input/textarea no matter what color you specify */
|
|
|
|
color: darken(@disabled-text-color, 40%)
|
|
|
|
}
|
2011-11-08 17:40:44 +01:00
|
|
|
|
|
|
|
/*========================= for special widgets =========================*/
|
|
|
|
|
|
|
|
/* Input boxes with an arrow (for a drop down) */
|
|
|
|
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelect .dijitArrowButtonInner,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitComboBox .dijitArrowButtonInner {
|
2012-08-14 16:59:10 +02:00
|
|
|
background-image: url("../@{image-form-common-arrows}");
|
2011-11-08 17:40:44 +01:00
|
|
|
background-position:-35px 53%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
margin: 0;
|
|
|
|
width:16px;
|
2013-03-18 07:26:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.claro .dijitComboBox .dijitArrowButtonInner {
|
2011-11-08 17:40:44 +01:00
|
|
|
border: 1px solid @arrowbutton-inner-border-color; // white gutter around the arrow button
|
|
|
|
}
|
|
|
|
|
|
|
|
.claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Add 1px vertical padding to the <input> where user types and the validation icon,
|
|
|
|
to match the 1px border on arrow button */
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitSelectLabel,
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitTextBox .dijitInputInner,
|
2013-03-18 07:26:24 +01:00
|
|
|
.claro .dijitValidationTextBox .dijitValidationContainer {
|
2011-11-08 17:40:44 +01:00
|
|
|
padding: 1px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.claro .dijitComboBox .dijitButtonNode {
|
|
|
|
background-color: @arrowbutton-background-color;
|
2013-03-18 07:26:24 +01:00
|
|
|
.standard-gradient("../");
|
2011-11-08 17:40:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Arrow "hover" effect:
|
|
|
|
* The arrow button should change color whenever the mouse is in a position such that clicking it
|
|
|
|
* will toggle the drop down. That's either (1) anywhere over the ComboBox or (2) over the arrow
|
|
|
|
* button, depending on the openOnClick setting for the widget.
|
|
|
|
*/
|
|
|
|
.claro .dijitComboBoxOpenOnClickHover .dijitButtonNode,
|
2017-01-20 18:29:59 +01:00
|
|
|
.claro .dijitComboBox .dijitDownArrowButtonHover,
|
|
|
|
.claro .dijitComboBoxFocused .dijitArrowButton {
|
2011-11-08 17:40:44 +01:00
|
|
|
background-color:@arrowbutton-hovered-background-color;
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitComboBoxOpenOnClickHover .dijitArrowButtonInner,
|
|
|
|
.claro .dijitComboBox .dijitDownArrowButtonHover .dijitArrowButtonInner {
|
|
|
|
background-position:-70px 53%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Arrow Button change when drop down is open */
|
|
|
|
.claro .dijitComboBox .dijitHasDropDownOpen { // .dijitHasDropDown is on dijitArrowButton node
|
|
|
|
background-color: @pressed-background-color;
|
2013-03-18 07:26:24 +01:00
|
|
|
.active-gradient("../");
|
2011-11-08 17:40:44 +01:00
|
|
|
padding: 1px; // Since no border on arrow button (see rule below)
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
|
|
|
.dj_iequirks .claro .dijitComboBox .dijitHasDropDownOpen {
|
|
|
|
padding: 1px 0;
|
|
|
|
}
|
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.claro .dijitComboBox .dijitHasDropDownOpen .dijitArrowButtonInner {
|
|
|
|
background-position:-70px 53%;
|
|
|
|
border: 0 none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* disabled state */
|
|
|
|
.claro div.dijitComboBoxDisabled .dijitArrowButtonInner {
|
|
|
|
/* specific selector set to override background-position setting from Button.js
|
|
|
|
* (.claro .dijitComboBoxDisabled .dijitArrowButtonInner) */
|
|
|
|
background-position:0 50%;
|
|
|
|
background-color:@disabled-background-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*========================= hacks for browsers =========================*/
|
|
|
|
/* it seems the input[type="hidden"] has a height (16px) too... this may cause the widget's height calculate error */
|
|
|
|
.dj_ff3 .claro .dijitInputField input[type="hidden"] {
|
|
|
|
display: none;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dj_borderbox .claro .dijitComboBox .dijitHasDropDownOpen .dijitArrowButtonInner {
|
|
|
|
width:18px; // quirks mode means border-box sizing, so 18px with the border (same as 16px without border)
|
|
|
|
}
|
2013-03-18 07:26:24 +01:00
|
|
|
|
2011-11-08 17:40:44 +01:00
|
|
|
.dj_borderbox .claro .dijitComboBoxFocused .dijitHasDropDownOpen .dijitArrowButtonInner {
|
|
|
|
width:16px; // when no border, then back to 16px just like content-box sizing
|
2012-08-14 16:59:10 +02:00
|
|
|
}
|