Skip to content

Commit

Permalink
Merge pull request #3433 from projectblacklight/replace-breakpoint-wi…
Browse files Browse the repository at this point in the history
…th-clamp

Set the max-width of constraints with clamp()
  • Loading branch information
jcoyne authored Nov 7, 2024
2 parents 193ba8c + c87543b commit f1b8499
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions app/assets/stylesheets/blacklight/_constraints.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;

@media (max-width: breakpoint-min(sm)) {
max-width: breakpoint-min(sm) * 0.5;
}

@media (min-width: breakpoint-min(sm)) and (max-width: breakpoint-max(sm)) {
max-width: breakpoint-min(sm) * 0.5;
}

@media (min-width: breakpoint-min(md)) and (max-width: breakpoint-max(md)) {
max-width: breakpoint-min(md) * 0.5;
}

@media (min-width: breakpoint-min(lg)) {
max-width: breakpoint-min(lg) * 0.5;
}
max-width: clamp(288px, calc(30vw), 500px);

.filter-name:after {
background-color: var(--bs-btn-color);
Expand Down

0 comments on commit f1b8499

Please sign in to comment.