2 * MediaWiki Widgets – DateInputWidget styles.
4 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
8 .oo-ui-box-sizing( @type: border-box ) {
9 -webkit-box-sizing: @type;
10 -moz-box-sizing: @type;
14 .oo-ui-unselectable() {
15 -webkit-touch-callout: none;
16 -webkit-user-select: none;
17 -moz-user-select: none;
18 -ms-user-select: none;
22 .oo-ui-inline-spacing( @spacing, @cancelled-spacing: 0 ) {
23 margin-right: @spacing;
25 margin-right: @cancelled-spacing;
29 @indicator-size: unit(12 / 16 / 0.8, em);
31 .mw-widget-dateInputWidget {
32 display: inline-block;
37 display: inline-block;
41 .oo-ui-unselectable();
42 .oo-ui-box-sizing(border-box);
44 > .oo-ui-indicatorElement-indicator {
49 &.oo-ui-indicatorElement .mw-widget-dateInputWidget-handle > .oo-ui-indicatorElement-indicator {
57 &.oo-ui-widget-disabled .mw-widget-dateInputWidget-handle {
66 // Theme-specific styles
70 .oo-ui-inline-spacing(0.5em);
74 border: 1px solid #ccc;
77 background-color: white;
80 &.oo-ui-indicatorElement .mw-widget-dateInputWidget-handle > .oo-ui-indicatorElement-indicator {
81 width: @indicator-size;
85 > .oo-ui-textInputWidget input {
89 > .oo-ui-textInputWidget {
94 background-color: white;
102 &.oo-ui-widget-enabled {
103 .mw-widget-dateInputWidget-handle:hover {
104 border-color: #347bff;
108 &.oo-ui-widget-disabled {
109 .mw-widget-dateInputWidget-handle {
111 text-shadow: 0 1px 1px #fff;
113 background-color: #f3f3f3;
115 > .oo-ui-indicatorElement-indicator {
122 &.oo-ui-flaggedElement-invalid {
123 .mw-widget-dateInputWidget-handle {
125 box-shadow: inset 0 0 0 0 red;
130 .mw-widget-dateInputWidget-handle {