Skip to content

Commit

Permalink
Merge pull request #839 from danskernesdigitalebibliotek/revert-838-r…
Browse files Browse the repository at this point in the history
…evert-828-DDFBRA-364-flatpickr-styles

Center calendar horizontally on mobile and hide box arrow
  • Loading branch information
JacobArrow authored Feb 7, 2025
2 parents 24d7c16 + aead3a3 commit afc62f0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/stories/Library/date-calendar/date-calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@ $selected-date-background: rgb(0, 105, 255);
// On small devices, we need to make sure that the calendar is visible.
// People had troubles scrolling when the calendar is open (possible, but users
// can't figure it out.
&.open.rangeMode {
@include media-query(
calc(map_get($breakpoints, "x-small") + 1px),
"max-width"
) {
left: -$s-xl;
&.open.static {
@include media-query(map-get($breakpoints, "small"), "max-width") {
top: -$s-4xl;
left: 0;
right: 0;
margin: 0 auto;

// Hide arrow
&::after,
&::before {
display: none;
}
}
}

Expand Down

0 comments on commit afc62f0

Please sign in to comment.