Skip to content

Commit

Permalink
Merge pull request #509 from wpmudev/fix/SUI-85
Browse files Browse the repository at this point in the history
fix(calendar): Ranges overlapping the calendar after a certain amount.
  • Loading branch information
iamleigh authored May 20, 2022
2 parents 26c375e + 342ba3a commit e966501
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions assets/scss/shared-ui/_calendar-range.scss
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,13 @@

// VARIATION: Show ranges.
&.show-ranges {
padding-top: #{($sui-gutter-md - 1px) + math.div($sui-gutter, 2) + 18px};
padding-top: $sui-gutter-md;

.ranges {
display: block;
flex: 0 0 auto;
position: absolute;
top: $sui-gutter-md;
right: 0;
left: 0;
margin: 0 auto;
max-width: calc((#{$calendar-cell} * 14) + 20px);

ul {
width: 100%;
Expand Down Expand Up @@ -275,6 +273,10 @@
}
}
}

@include media(max-width, sm) {
max-width: calc(#{$calendar-cell} * 7);
}
}
}

Expand Down

0 comments on commit e966501

Please sign in to comment.