2 * MediaWiki Widgets – CalendarWidget styles.
4 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
11 .mw-widget-calendarWidget {
12 width: @calendarWidth;
15 .mw-widget-calendarWidget-header {
20 .mw-widget-calendarWidget-header .oo-ui-buttonWidget {
24 .mw-widget-calendarWidget-header .mw-widget-calendarWidget-labelButton {
27 width: @calendarWidth - 2*3em;
29 .oo-ui-buttonElement-button {
30 width: @calendarWidth - 2*3em;
35 .mw-widget-calendarWidget-upButton {
40 .mw-widget-calendarWidget-prevButton {
44 .mw-widget-calendarWidget-nextButton {
48 .mw-widget-calendarWidget-body-outer-wrapper {
52 // Fit 7 days, 3em each
53 width: @calendarWidth;
54 // Fit 6 weeks + heading line, 2em each
55 height: @calendarHeight;
58 .mw-widget-calendarWidget-body-wrapper {
59 .mw-widget-calendarWidget-body {
60 display: inline-block;
61 // Fit 7 days, 3em each
62 width: @calendarWidth;
63 // Fit 6 weeks + heading line, 2em each
64 height: @calendarHeight;
67 .mw-widget-calendarWidget-old-body {
71 .mw-widget-calendarWidget-body:not(.mw-widget-calendarWidget-old-body):first-child {
72 margin-top: -@calendarHeight;
73 margin-left: -@calendarWidth;
76 .mw-widget-calendarWidget-body:not(.mw-widget-calendarWidget-old-body):last-child {
82 .mw-widget-calendarWidget-body-wrapper-fade-previous {
83 width: @calendarWidth * 2;
84 height: @calendarHeight;
86 .mw-widget-calendarWidget-body:first-child {
87 margin-top: 0 !important;
88 margin-left: 0 !important;
89 transition: 0.5s margin-left;
93 .mw-widget-calendarWidget-body-wrapper-fade-next {
94 width: @calendarWidth * 2;
95 height: @calendarHeight;
97 .mw-widget-calendarWidget-body:first-child {
98 margin-left: -@calendarWidth !important;
99 margin-top: 0 !important;
100 transition: 0.5s margin-left;
104 .mw-widget-calendarWidget-body-wrapper-fade-up {
105 width: @calendarWidth;
106 height: @calendarHeight * 2;
108 .mw-widget-calendarWidget-body {
112 .mw-widget-calendarWidget-body:first-child {
113 margin-left: 0 !important;
114 margin-top: 0 !important;
115 transition: 0.5s margin-top;
119 .mw-widget-calendarWidget-body-wrapper-fade-down {
120 width: @calendarWidth;
121 height: @calendarHeight * 2;
123 .mw-widget-calendarWidget-body {
127 .mw-widget-calendarWidget-body:first-child {
128 margin-left: 0 !important;
129 margin-top: -@calendarHeight !important;
130 transition: 0.5s margin-top;
134 .mw-widget-calendarWidget-day,
135 .mw-widget-calendarWidget-day-heading,
136 .mw-widget-calendarWidget-month,
137 .mw-widget-calendarWidget-year {
138 display: inline-block;
139 vertical-align: middle;
142 text-overflow: ellipsis;
146 .mw-widget-calendarWidget-day,
147 .mw-widget-calendarWidget-day-heading {
149 width: @calendarWidth / 7;
150 line-height: @calendarHeight / 7;
151 // Don't overlap the hacked-up fake box-shadow border we get when focussed
153 width: @calendarWidth / 7 - 0.2em;
157 width: @calendarWidth / 7 - 0.2em;
160 &:nth-child(42) ~ & {
161 line-height: @calendarHeight / 7 - 0.2em;
162 margin-bottom: 0.2em;
166 .mw-widget-calendarWidget-month {
168 width: @calendarWidth / 2;
169 line-height: @calendarHeight / 6;
170 // Don't overlap the hacked-up fake box-shadow border we get when focussed
172 width: @calendarWidth / 2 - 0.2em;
176 width: @calendarWidth / 2 - 0.2em;
179 &:nth-child(10) ~ & {
180 line-height: @calendarHeight / 6 - 0.2em;
181 margin-bottom: 0.2em;
185 .mw-widget-calendarWidget-year {
187 width: @calendarWidth / 5;
188 line-height: @calendarHeight / 4;
189 // Don't overlap the hacked-up fake box-shadow border we get when focussed
191 width: @calendarWidth / 5 - 0.2em;
195 width: @calendarWidth / 5 - 0.2em;
198 &:nth-child(15) ~ & {
199 line-height: @calendarHeight / 4 - 0.2em;
200 margin-bottom: 0.2em;
204 .mw-widget-calendarWidget-item {
209 .mw-widget-calendarWidget {
210 box-shadow: inset 0 0 0 1px #ccc;
213 .mw-widget-calendarWidget:focus {
215 box-shadow: inset 0 0 0 2px #347bff;
218 .mw-widget-calendarWidget-day {
220 border-radius: 0.1em;
223 .mw-widget-calendarWidget-day-heading {
228 .mw-widget-calendarWidget-day-additional {
232 .mw-widget-calendarWidget-day-today {
233 box-shadow: inset 0 0 0 1px #3787fb;
236 .mw-widget-calendarWidget-item-selected {
237 background-color: #d8e6fe;
241 .mw-widget-calendarWidget-item:hover {
242 background-color: #eee;