tt-rss/lib/dijit/themes/claro/form/Common.css

212 lines
8.3 KiB
CSS
Raw Normal View History

2011-11-08 17:40:44 +01:00
/* claro/form/Common.css */
/*========================= common css =========================*/
/* 'dijitTextBox' refers to 'dijit(TextBox|DateTextBox|CurrencyTextBox|...)' */
2012-08-14 16:59:10 +02:00
.claro .dijitTextBox, .claro .dijitInputInner {
color: #000000;
}
2013-03-18 07:26:24 +01:00
.claro .dijitValidationTextBoxError .dijitValidationContainer {
2011-11-08 17:40:44 +01:00
background-color: #d46464;
2012-08-14 16:59:10 +02:00
background-image: url("../form/images/error.png");
2011-11-08 17:40:44 +01:00
background-position: top center;
border: solid #d46464 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;
background-color: transparent !important;
/* so the INPUT doesn't obscure the border in rtl+a11y */
}
/* 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: 2px;
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelect .dijitInputField, .claro .dijitTextBox .dijitInputField {
2011-11-08 17:40:44 +01:00
padding: 1px 2px;
}
.dj_gecko .claro .dijitTextBox .dijitInputInner, .dj_webkit .claro .dijitTextBox .dijitInputInner {
padding: 1px;
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelect,
.claro .dijitSelect .dijitButtonContents,
.claro .dijitTextBox,
.claro .dijitTextBox .dijitButtonNode {
2011-11-08 17:40:44 +01:00
/* color for (outer) border on *TextBox widgets, and border between input and buttons on ComboBox and Spinner */
border-color: #b5bcc7;
-webkit-transition-property: background-color, border;
-moz-transition-property: background-color, border;
transition-property: background-color, border;
-webkit-transition-duration: 0.35s;
-moz-transition-duration: 0.35s;
transition-duration: 0.35s;
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelect, .claro .dijitTextBox {
2011-11-08 17:40:44 +01:00
background-color: #ffffff;
}
2011-11-08 17:40:44 +01:00
/* hover */
2013-03-18 07:26:24 +01:00
.claro .dijitSelectHover,
.claro .dijitSelectHover .dijitButtonContents,
.claro .dijitTextBoxHover,
.claro .dijitTextBoxHover .dijitButtonNode {
2012-08-14 16:59:10 +02:00
border-color: #759dc0;
2011-11-08 17:40:44 +01:00
-webkit-transition-duration: 0.25s;
-moz-transition-duration: 0.25s;
transition-duration: 0.25s;
}
.claro .dijitTextBoxHover {
2012-08-14 16:59:10 +02:00
background-color: #e5f2fe;
2013-03-18 07:26:24 +01:00
background-image: -moz-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: -webkit-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: -o-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
}
2011-11-08 17:40:44 +01:00
/* error state */
2013-03-18 07:26:24 +01:00
.claro .dijitSelectError,
.claro .dijitSelectError .dijitButtonContents,
.claro .dijitTextBoxError,
.claro .dijitTextBoxError .dijitButtonNode {
2011-11-08 17:40:44 +01:00
border-color: #d46464;
}
2011-11-08 17:40:44 +01:00
/* focused state */
2013-03-18 07:26:24 +01:00
.claro .dijitSelectFocused,
.claro .dijitSelectFocused .dijitButtonContents,
.claro .dijitTextBoxFocused,
.claro .dijitTextBoxFocused .dijitButtonNode {
2012-08-14 16:59:10 +02:00
border-color: #759dc0;
2011-11-08 17:40:44 +01:00
-webkit-transition-duration: 0.1s;
-moz-transition-duration: 0.1s;
transition-duration: 0.1s;
}
.claro .dijitTextBoxFocused {
2011-11-08 17:40:44 +01:00
background-color: #ffffff;
2013-03-18 07:26:24 +01:00
background-image: -moz-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: -webkit-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: -o-linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
background-image: linear-gradient(rgba(127, 127, 127, 0.2) 0%, rgba(127, 127, 127, 0) 2px);
}
.claro .dijitTextBoxFocused .dijitInputContainer {
2011-11-08 17:40:44 +01:00
background: #ffffff;
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelectErrorFocused,
.claro .dijitSelectErrorFocused .dijitButtonContents,
.claro .dijitTextBoxErrorFocused,
.claro .dijitTextBoxErrorFocused .dijitButtonNode {
2012-08-14 16:59:10 +02:00
border-color: #ce5050;
}
2011-11-08 17:40:44 +01:00
/* disabled state */
2013-03-18 07:26:24 +01:00
.claro .dijitSelectDisabled,
.claro .dijitSelectDisabled .dijitButtonContents,
.claro .dijitTextBoxDisabled,
.claro .dijitTextBoxDisabled .dijitButtonNode {
2011-11-08 17:40:44 +01:00
border-color: #d3d3d3;
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelectDisabled, .claro .dijitTextBoxDisabled, .claro .dijitTextBoxDisabled .dijitInputContainer {
2011-11-08 17:40:44 +01:00
background-color: #efefef;
background-image: none;
2012-08-14 16:59:10 +02:00
}
2013-03-18 07:26:24 +01:00
.claro .dijitSelectDisabled, .claro .dijitTextBoxDisabled, .claro .dijitTextBoxDisabled .dijitInputInner {
2011-11-08 17:40:44 +01:00
color: #818181;
}
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: #757575;
}
.dj_webkit .claro textarea.dijitTextAreaDisabled {
/* because WebKit lightens disabled input/textarea no matter what color you specify */
color: #1b1b1b;
}
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, .claro .dijitComboBox .dijitArrowButtonInner {
2012-08-14 16:59:10 +02:00
background-image: url("../form/images/commonFormArrows.png");
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 #ffffff;
}
2011-11-08 17:40:44 +01:00
.claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
border: none;
}
2011-11-08 17:40:44 +01:00
.claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
border: none;
}
2011-11-08 17:40:44 +01:00
/* 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, .claro .dijitTextBox .dijitInputInner, .claro .dijitValidationTextBox .dijitValidationContainer {
2011-11-08 17:40:44 +01:00
padding: 1px 0;
}
.claro .dijitComboBox .dijitButtonNode {
2011-11-08 17:40:44 +01:00
background-color: #efefef;
2013-03-18 07:26:24 +01:00
background-image: url("../images/standardGradient.png");
2011-11-08 17:40:44 +01:00
background-repeat: repeat-x;
2013-03-18 07:26:24 +01:00
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
background-image: linear-gradient(rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
_background-image: none;
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, .claro .dijitComboBox .dijitDownArrowButtonHover {
background-color: #abd6ff;
}
.claro .dijitComboBoxOpenOnClickHover .dijitArrowButtonInner, .claro .dijitComboBox .dijitDownArrowButtonHover .dijitArrowButtonInner {
background-position: -70px 53%;
}
/* Arrow Button change when drop down is open */
.claro .dijitComboBox .dijitHasDropDownOpen {
2012-08-14 16:59:10 +02:00
background-color: #7dbdfa;
2013-03-18 07:26:24 +01:00
background-image: url("../images/activeGradient.png");
background-repeat: repeat-x;
background-image: -moz-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
background-image: -webkit-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
background-image: -o-linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
background-image: linear-gradient(rgba(190, 190, 190, 0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
_background-image: none;
2011-11-08 17:40:44 +01:00
padding: 1px;
}
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 {
2011-11-08 17:40:44 +01:00
/* specific selector set to override background-position setting from Button.js
* (.claro .dijitComboBoxDisabled .dijitArrowButtonInner) */
background-position: 0 50%;
background-color: #efefef;
}
2011-11-08 17:40:44 +01:00
/*========================= 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"] {
2011-11-08 17:40:44 +01:00
display: none;
height: 0;
width: 0;
}
2011-11-08 17:40:44 +01:00
.dj_borderbox .claro .dijitComboBox .dijitHasDropDownOpen .dijitArrowButtonInner {
width: 18px;
}
2011-11-08 17:40:44 +01:00
.dj_borderbox .claro .dijitComboBoxFocused .dijitHasDropDownOpen .dijitArrowButtonInner {
width: 16px;
}