mw.widgets.CalendarWidget: Improve today's date highlighting
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 4 Aug 2015 12:51:12 +0000 (14:51 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 4 Aug 2015 12:52:37 +0000 (14:52 +0200)
This was goofy, and the margins caused items to wobble around on
hover. I forgot about the box-shadow trick.

Change-Id: I35c32456ad0a1633ffbd1fbe6ad77adba694ae2d

resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less

index 582a316..21a9019 100644 (file)
 }
 
 .mw-widget-calendarWidget-day-today {
-       border: 1px solid #3787fb;
+       box-shadow: inset 0 0 0 1px #3787fb;
        border-radius: ((@calendarHeight / 7) / 2);
-       margin: -1px;
 }
 
 .mw-widget-calendarWidget-item-selected {
        &.mw-widget-calendarWidget-day-heading {
                border-radius: ((@calendarHeight / 7) / 4);
                // Hide the border from .mw-widget-calendarWidget-day-today
-               border: 0;
-               margin: 0;
+               box-shadow: none;
        }
 
        &.mw-widget-calendarWidget-month {