2 * MediaWiki Widgets – JS DateInputWidget styles.
4 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
8 @import 'mediawiki.skin.variables.less';
9 @import 'mediawiki.mixins.less';
11 .oo-ui-unselectable() {
12 -webkit-touch-callout: none;
16 @size-indicator: unit( 12 / 16 / 0.8, em );
18 .mw-widget-dateInputWidget {
20 .oo-ui-unselectable();
22 > .oo-ui-indicatorElement-indicator {
27 &.oo-ui-indicatorElement .mw-widget-dateInputWidget-handle > .oo-ui-indicatorElement-indicator {
32 width: @size-indicator;
37 > .oo-ui-textInputWidget {
42 background-color: @background-color-base;
45 border-radius: @border-radius-base;
46 box-shadow: @box-shadow-drop-medium;
50 box-shadow: @box-shadow-inset-small @box-shadow-color-progressive--focus, @box-shadow-drop-medium;
56 .mw-widget-dateInputWidget-handle {
62 &.oo-ui-flaggedElement-invalid {
63 .mw-widget-dateInputWidget-handle {
64 border-color: @border-color-error;
69 &.oo-ui-widget-enabled {
70 .mw-widget-dateInputWidget-handle:hover {
71 border-color: @border-color-interactive;
74 .oo-ui-inputWidget-input[ readonly ]:not( .oo-ui-pendingElement-pending ) ~ .mw-widget-dateInputWidget-handle {
75 background-color: @background-color-interactive-subtle;
79 &.oo-ui-widget-disabled {
80 .mw-widget-dateInputWidget-handle {
81 background-color: @background-color-disabled-subtle;
82 color: @color-disabled;
83 border-color: @border-color-disabled;
84 text-shadow: 0 1px 1px #fff;
85 cursor: @cursor-base--disabled;
87 > .oo-ui-indicatorElement-indicator {
88 opacity: @opacity-icon-base--disabled;