X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.widgets%2Fmw.widgets.CalendarWidget.less;h=253784e8f540762c989a2e57a9e8c83c62c60820;hb=eea791fc4dde69f4214329feb5128f12cbea5eff;hp=1035786d3182d30ea2b552778604052c8876547d;hpb=5f27c2fc6503b37ef5a842e78082f6cc53ad0c1d;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less b/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less index 1035786d31..253784e8f5 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less +++ b/resources/src/mediawiki.widgets/mw.widgets.CalendarWidget.less @@ -149,15 +149,18 @@ // 7x7 grid width: @calendarWidth / 7; line-height: @calendarHeight / 7; + // Don't overlap the hacked-up fake box-shadow border we get when focussed &:nth-child( 7n ) { width: @calendarWidth / 7 - 0.2em; margin-right: 0.2em; } + &:nth-child( 7n+1 ) { width: @calendarWidth / 7 - 0.2em; margin-left: 0.2em; } + &:nth-child( 42 ) ~ & { line-height: @calendarHeight / 7 - 0.2em; margin-bottom: 0.2em; @@ -168,15 +171,18 @@ // 2x6 grid width: @calendarWidth / 2; line-height: @calendarHeight / 6; + // Don't overlap the hacked-up fake box-shadow border we get when focussed &:nth-child( 2n ) { width: @calendarWidth / 2 - 0.2em; margin-right: 0.2em; } + &:nth-child( 2n+1 ) { width: @calendarWidth / 2 - 0.2em; margin-left: 0.2em; } + &:nth-child( 10 ) ~ & { line-height: @calendarHeight / 6 - 0.2em; margin-bottom: 0.2em; @@ -187,15 +193,18 @@ // 5x4 grid width: @calendarWidth / 5; line-height: @calendarHeight / 4; + // Don't overlap the hacked-up fake box-shadow border we get when focussed &:nth-child( 5n ) { width: @calendarWidth / 5 - 0.2em; margin-right: 0.2em; } + &:nth-child( 5n+1 ) { width: @calendarWidth / 5 - 0.2em; margin-left: 0.2em; } + &:nth-child( 15 ) ~ & { line-height: @calendarHeight / 4 - 0.2em; margin-bottom: 0.2em;