Merge "Define pt as fallback for tet"
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets.datetime / CalendarWidget.less
1 /* stylelint-disable no-duplicate-selectors */
2 @import 'mediawiki.widgets.datetime.definitions';
3
4 .mw-widgets-datetime-calendarWidget {
5 background-color: @background-color-base;
6 display: inline-block;
7 position: relative;
8 border: @border-base;
9 border-radius: @border-radius-base;
10 padding: 0.5em;
11 box-shadow: @box-shadow-dialog;
12 vertical-align: middle;
13
14 &:focus {
15 border-color: @color-progressive;
16 outline: 0;
17 box-shadow: @box-shadow-base--focus, @box-shadow-dialog;
18 }
19
20 &.mw-widgets-datetime-calendarWidget-dependent {
21 display: block;
22 position: absolute;
23 z-index: 4;
24 }
25
26 &-grid {
27 table-layout: fixed;
28
29 .mw-widgets-datetime-calendarWidget-cell {
30 display: table-cell;
31 white-space: nowrap;
32 }
33 }
34
35 &.mw-widgets-datetime-calendarWidget-dependent {
36 margin-top: -1px;
37 }
38
39 &-heading {
40 font-weight: bold;
41 text-align: center;
42 vertical-align: middle;
43 white-space: nowrap;
44
45 .mw-widgets-datetime-calendarWidget-previous {
46 float: left;
47
48 // Overwrite OOUI's `.oo-ui-buttonElement-frameless.oo-ui-iconElement:first-child`
49 &:first-child {
50 margin-left: 0;
51 }
52 }
53 .mw-widgets-datetime-calendarWidget-next {
54 float: right;
55 }
56 }
57
58 &-grid {
59 margin: 0 auto;
60
61 .mw-widgets-datetime-calendarWidget-cell {
62 text-align: center;
63
64 .oo-ui-buttonElement-button {
65 width: 100%;
66 border: 1px solid rgba( 255, 255, 255, 0 );
67 .oo-ui-transition(
68 background-color @transition-base,
69 color @transition-base,
70 border-color @transition-base
71 );
72 }
73
74 &.mw-widgets-datetime-calendarWidget-extra .oo-ui-buttonElement-button {
75 .oo-ui-labelElement-label {
76 color: @color-base--subtle;
77 }
78
79 &:hover .oo-ui-labelElement-label {
80 color: @color-base--inverted;
81 }
82 }
83
84 &.mw-widgets-datetime-calendarWidget-selected .oo-ui-buttonElement-button {
85 background-color: #2a4b8d;
86
87 .oo-ui-labelElement-label {
88 color: @color-base--inverted;
89 }
90 }
91
92 &.oo-ui-widget-enabled .oo-ui-buttonElement-button:hover {
93 background-color: @color-progressive;
94 color: @color-base--inverted;
95 border-color: @color-progressive;
96 }
97 }
98 }
99
100 &:focus &-grid &-cell&-focused .oo-ui-buttonElement-button {
101 border-color: rgba( 0, 0, 0, 0.3 );
102 }
103 }