1 @import "mediawiki.widgets.datetime.definitions";
3 .mw-widgets-datetime-dateTimeInputWidget {
6 vertical-align: middle;
12 .oo-ui-unselectable();
14 > .mw-widgets-datetime-dateTimeInputWidget-field {
15 .oo-ui-box-sizing(border-box);
24 display: inline-block;
27 // Needed for proper behavior with overflow: hidden.
28 vertical-align: bottom;
30 .oo-ui-unselectable();
31 .oo-ui-box-sizing(border-box);
33 > .oo-ui-indicatorElement-indicator,
34 > .oo-ui-iconElement-icon {
36 background-position: center center;
37 background-repeat: no-repeat;
46 .oo-ui-inline-spacing(0.5em);
50 border: 1px solid #ccc;
53 background-color: #fff;
55 border: solid 1px #ccc;
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 {