1 /* stylelint-disable no-duplicate-selectors */
2 @import 'mediawiki.widgets.datetime.definitions';
4 .mw-widgets-datetime-dateTimeInputWidget {
7 vertical-align: middle;
13 .oo-ui-unselectable();
15 > .mw-widgets-datetime-dateTimeInputWidget-field {
16 .oo-ui-box-sizing(border-box);
25 display: inline-block;
28 // Needed for proper behavior with overflow: hidden.
29 vertical-align: bottom;
31 .oo-ui-unselectable();
32 .oo-ui-box-sizing(border-box);
34 > .oo-ui-indicatorElement-indicator,
35 > .oo-ui-iconElement-icon {
37 background-position: center center;
38 background-repeat: no-repeat;
47 .oo-ui-inline-spacing(0.5em);
51 border: 1px solid #ccc;
54 background-color: #fff;
56 box-shadow: inset 0 0 0 0 @progressive;
58 .oo-ui-transition(box-shadow @quick-ease);
59 .oo-ui-box-sizing(border-box);
61 > .oo-ui-indicatorElement-indicator {
65 > .oo-ui-iconElement-icon {
69 > .oo-ui-indicatorElement-indicator {
71 width: @indicator-size;
72 height: @indicator-size;
76 > .oo-ui-iconElement-icon {
93 background-color: transparent;
98 vertical-align: middle;
99 .oo-ui-box-sizing(border-box);
102 &.oo-ui-widget-disabled {
103 .mw-widgets-datetime-dateTimeInputWidget-handle {
105 text-shadow: 0 1px 1px #fff;
107 background-color: #f3f3f3;
109 > .oo-ui-iconElement-icon,
110 > .oo-ui-indicatorElement-indicator {
116 &.oo-ui-widget-enabled {
117 .mw-widgets-datetime-dateTimeInputWidget-editField:hover {
118 background-color: #eee;
121 &.oo-ui-flaggedElement-invalid {
122 .mw-widgets-datetime-dateTimeInputWidget-handle {
124 box-shadow: inset 0 0 0 0 #f00;
127 .mw-widgets-datetime-dateTimeInputWidget-handle:focus {
129 box-shadow: inset 0 0 0 0.1em #f00;
134 input.mw-widgets-datetime-dateTimeInputWidget-field {
138 &-editField.mw-widgets-datetime-dateTimeInputWidget-invalid {
139 border: 1px solid #f00;
140 box-shadow: inset 0 0 0 0 #f00;
143 border: 1px solid #f00;
144 box-shadow: inset 0 0 0 0.1em #f00;
148 &.oo-ui-iconElement .mw-widgets-datetime-dateTimeInputWidget-handle {
152 &.oo-ui-indicatorElement .mw-widgets-datetime-dateTimeInputWidget-handle {