From 5aaae931eb6015acc791a16aba29fc4f0ad5cc8c Mon Sep 17 00:00:00 2001 From: jjaffeux Date: Tue, 26 May 2020 14:24:55 +0200 Subject: [PATCH] FIX: prevents height jumpyness --- .../common/discourse-calendar.scss | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/assets/stylesheets/common/discourse-calendar.scss b/assets/stylesheets/common/discourse-calendar.scss index 604b19d6..e6f4c0e5 100644 --- a/assets/stylesheets/common/discourse-calendar.scss +++ b/assets/stylesheets/common/discourse-calendar.scss @@ -1,5 +1,6 @@ .discourse-calendar-wrap { margin: 0.5em 0; + border: 5px solid $primary-low; } .category-calendar .calendar { @@ -13,13 +14,22 @@ .calendar { height: 645px; // Must be fixed to prevent height change on load - padding: 0 0.5em; + border: 0; &.fc-unthemed { tbody, thead, tr { border: none; + + td.fc-widget-content, + td.fc-widget-header { + border-left: 0; + + &:last-child { + border-right: 0; + } + } } .fc-basic-view .fc-day-top .fc-day-number { @@ -42,7 +52,7 @@ } .fc-header-toolbar { - margin: 1em 0 0.5em 0; + padding: 0.5em 0.5em 0 0.5em; } .fc-title { @@ -70,7 +80,6 @@ color: $primary; text-shadow: none; border: none; - padding: 6px 12px; &:hover { @@ -82,11 +91,9 @@ background: $tertiary; color: $secondary; } - margin: 0.3em 0 0.3em 0.5em; } .fc-button-group { - margin: 0.3em 0 0.3em 0.5em; // margin-right: 0; .fc-button { margin: 0; @@ -182,10 +189,6 @@ a.holiday { } } -.discourse-calendar-wrap { - border: 1px solid $primary-low; -} - .discourse-calendar-header .discourse-calendar-timezone-picker { max-width: 50vw; font-size: 16px;