Skip to content

Commit

Permalink
Update component files to use CSS range syntax (#5316)
Browse files Browse the repository at this point in the history
* Update _patterns_article-pagination.scss

* Update _patterns_matrix.scss

* Update _patterns_navigation.scss

* Update _patterns_pull-quotes.scss

* Update _patterns_table-mobile-card.scss
  • Loading branch information
pastelcyborg authored Aug 20, 2024
1 parent 416588d commit 2e1b69c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scss/_patterns_article-pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
padding-left: $sp-xx-large;
text-align: left;

@media (max-width: $breakpoint-x-small - 1) {
@media (width < $breakpoint-x-small) {
margin-right: 0;
width: auto;

Expand Down Expand Up @@ -84,7 +84,7 @@
padding-right: $sp-xx-large;
text-align: right;

@media (max-width: $breakpoint-x-small - 1) {
@media (width < $breakpoint-x-small) {
width: 100%;
}

Expand Down
4 changes: 2 additions & 2 deletions scss/_patterns_matrix.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
width: 33.333%;
}

@media (min-width: $threshold-4-6-col) and (max-width: $threshold-6-12-col - 1) {
@media ($threshold-4-6-col <= width < $threshold-6-12-col) {
flex-direction: column;

&:nth-child(2),
Expand Down Expand Up @@ -142,7 +142,7 @@
.p-matrix__desc {
margin-bottom: $spv-nudge-compensation;

@media (max-width: $breakpoint-heading-threshold - 1) {
@media (width < $breakpoint-heading-threshold) {
margin-top: -#{$sp-unit};
}

Expand Down
2 changes: 1 addition & 1 deletion scss/_patterns_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ $navigation-height: calc(map-get($line-heights, default-text) + 2 * $spv--large)
top: $spv--large * 2 + map-get($line-heights, default-text);
}

@media (max-width: ($breakpoint-navigation-threshold - 1)) {
@media (width < $breakpoint-navigation-threshold) {
box-shadow: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/_patterns_pull-quotes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
.p-pull-quote--large {
.p-pull-quote__quote {
&:first-of-type::before {
@media (max-width: $breakpoint-heading-threshold - 1) {
@media (width < $breakpoint-heading-threshold) {
top: 0.75rem;
}
}
Expand Down
2 changes: 1 addition & 1 deletion scss/_patterns_table-mobile-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
text-align: left;
}

@media (max-width: $threshold-6-12-col - 1) {
@media (width < $threshold-6-12-col) {
@supports (display: grid) {
thead {
display: none;
Expand Down

0 comments on commit 2e1b69c

Please sign in to comment.