commit c3a92eab38bf6bb7584c433c7560d3e1d30e4a81 parent 87f6ce5862327733483f072ed03cb076c7bb0690 Author: Maxx Crawford <mcrawford@mozilla.com> Date: Tue, 16 Dec 2025 03:13:29 +0000 Bug 2001446 - Update border-color to use logical properties r=home-newtab-reviewers,ini Differential Revision: https://phabricator.services.mozilla.com/D273487 Diffstat:
11 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/browser/extensions/newtab/content-src/components/Card/_Card.scss b/browser/extensions/newtab/content-src/components/Card/_Card.scss @@ -90,7 +90,7 @@ position: relative; &::after { - border-bottom: 1px solid var(--newtab-card-hairline-color); + border-block-end: 1px solid var(--newtab-card-hairline-color); inset-block-end: 0; content: ''; position: absolute; @@ -293,7 +293,7 @@ &::after { border: 1px solid var(--newtab-card-hairline-color); - border-bottom: 0; + border-block-end: 0; border-radius: var(--border-radius-medium); content: ''; position: absolute; diff --git a/browser/extensions/newtab/content-src/components/ContextMenu/_ContextMenu.scss b/browser/extensions/newtab/content-src/components/ContextMenu/_ContextMenu.scss @@ -24,7 +24,7 @@ width: 100%; &.separator { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); margin: var(--space-xsmall) 0; } diff --git a/browser/extensions/newtab/content-src/components/CustomizeMenu/_CustomizeMenu.scss b/browser/extensions/newtab/content-src/components/CustomizeMenu/_CustomizeMenu.scss @@ -353,7 +353,7 @@ } .divider { - border-top: 1px var(--border-color) solid; + border-block-start: 1px var(--border-color) solid; margin: 0 calc(var(--space-large) * -1); } diff --git a/browser/extensions/newtab/content-src/components/DiscoveryStreamAdmin/DiscoveryStreamAdmin.scss b/browser/extensions/newtab/content-src/components/DiscoveryStreamAdmin/DiscoveryStreamAdmin.scss @@ -119,13 +119,13 @@ .message-item { &:first-child td { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); } td { vertical-align: top; padding: var(--space-small); - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); &.min { width: 1%; diff --git a/browser/extensions/newtab/content-src/components/DiscoveryStreamComponents/Navigation/_Navigation.scss b/browser/extensions/newtab/content-src/components/DiscoveryStreamComponents/Navigation/_Navigation.scss @@ -127,7 +127,7 @@ grid-template: repeat(8, 1fr) / repeat(1, 1fr); li { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); line-height: 24px; font-size: var(--font-size-small); @@ -149,7 +149,7 @@ } &:nth-last-child(1) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } } @@ -158,7 +158,7 @@ li { &:nth-child(3) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } } } @@ -169,11 +169,11 @@ li { &:nth-child(odd) { - border-bottom: 0; + border-block-end: 0; } &:nth-child(even) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } } } diff --git a/browser/extensions/newtab/content-src/components/ModalOverlay/_ModalOverlay.scss b/browser/extensions/newtab/content-src/components/ModalOverlay/_ModalOverlay.scss @@ -65,7 +65,7 @@ $modal-scrollbar-z-index: 1100; } .footer { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); border-radius: var(--border-radius-small); height: 70px; width: 100%; diff --git a/browser/extensions/newtab/content-src/components/Search/_Search.scss b/browser/extensions/newtab/content-src/components/Search/_Search.scss @@ -378,7 +378,7 @@ $glyph-forward: url('chrome://browser/skin/forward.svg'); $search-icon-padding: 16px; $search-header-bar-height: 95px; - border-bottom: solid 1px var(--border-color); + border-block-end: solid 1px var(--border-color); padding: var(--space-xlarge) 0; background-color: var(--newtab-overlay-color); min-height: $search-header-bar-height; @@ -452,7 +452,7 @@ $glyph-forward: url('chrome://browser/skin/forward.svg'); } .contentSearchOneOffsTable { - border-top: solid 1px var(--border-color); + border-block-start: solid 1px var(--border-color); background-color: var(--newtab-background-color); } diff --git a/browser/extensions/newtab/content-src/components/Weather/_Weather.scss b/browser/extensions/newtab/content-src/components/Weather/_Weather.scss @@ -303,8 +303,8 @@ outline: var(--focus-outline); &::after { - border-bottom: var(--focus-outline); - border-right: var(--focus-outline); + border-block-end: var(--focus-outline); + border-inline-end: var(--focus-outline); } } } diff --git a/browser/extensions/newtab/content-src/styles/_mixins.scss b/browser/extensions/newtab/content-src/styles/_mixins.scss @@ -28,20 +28,20 @@ @content; @include dark-theme-only { - border-top: 1px solid $grey-60; + border-block-start: 1px solid $grey-60; } - border-top: 1px solid $grey-30; + border-block-start: 1px solid $grey-30; } @mixin ds-border-bottom { @content; @include dark-theme-only { - border-bottom: 1px solid $grey-60; + border-block-end: 1px solid $grey-60; } - border-bottom: 1px solid $grey-30; + border-block-end: 1px solid $grey-30; } @mixin ds-fade-in($halo-color: $blue-50-30) { diff --git a/browser/extensions/newtab/content-src/styles/activity-stream.scss b/browser/extensions/newtab/content-src/styles/activity-stream.scss @@ -83,7 +83,7 @@ h2 { } .actions { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); display: flex; flex-direction: row; flex-wrap: wrap; diff --git a/browser/extensions/newtab/css/activity-stream.css b/browser/extensions/newtab/css/activity-stream.css @@ -376,7 +376,7 @@ h2 { } .actions { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); display: flex; flex-direction: row; flex-wrap: wrap; @@ -1784,7 +1784,7 @@ main section { @media (height > 700px) { .activity-stream .fixed-search .search-wrapper { - border-bottom: solid 1px var(--border-color); + border-block-end: solid 1px var(--border-color); padding: var(--space-xlarge) 0; background-color: var(--newtab-overlay-color); min-height: 95px; @@ -1842,7 +1842,7 @@ main section { border: 0; } .contentSearchSuggestionTable .contentSearchOneOffsTable { - border-top: solid 1px var(--border-color); + border-block-start: solid 1px var(--border-color); background-color: var(--newtab-background-color); } .contentSearchSuggestionTable .contentSearchSearchWithHeaderSearchText { @@ -1904,7 +1904,7 @@ main section { width: 100%; } .context-menu > ul > li.separator { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); margin: var(--space-xsmall) 0; } .context-menu > ul > li > a, @@ -2275,7 +2275,7 @@ main section { color: var(--newtab-primary-action-background); } .home-section .divider { - border-top: 1px var(--border-color) solid; + border-block-start: 1px var(--border-color) solid; margin: 0 calc(var(--space-large) * -1); } .home-section .external-link { @@ -3002,8 +3002,8 @@ main section { outline: var(--focus-outline); } .weatherOptIn dialog:focus-visible::after { - border-bottom: var(--focus-outline); - border-right: var(--focus-outline); + border-block-end: var(--focus-outline); + border-inline-end: var(--focus-outline); } .weatherOptIn dialog .weatherOptInContent { display: flex; @@ -3637,7 +3637,7 @@ dialog:dir(rtl)::after { position: relative; } .card-outer .card-preview-image-outer::after { - border-bottom: 1px solid var(--newtab-card-hairline-color); + border-block-end: 1px solid var(--newtab-card-hairline-color); inset-block-end: 0; content: ""; position: absolute; @@ -3793,7 +3793,7 @@ dialog:dir(rtl)::after { } .compact-cards .card-outer .card-context::after { border: 1px solid var(--newtab-card-hairline-color); - border-bottom: 0; + border-block-end: 0; border-radius: var(--border-radius-medium); content: ""; position: absolute; @@ -4037,12 +4037,12 @@ dialog:dir(rtl)::after { overflow-y: scroll; } .discoverystream-admin .message-item:first-child td { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); } .discoverystream-admin .message-item td { vertical-align: top; padding: var(--space-small); - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } .discoverystream-admin .message-item td.min { width: 1%; @@ -4314,7 +4314,7 @@ dialog:dir(rtl)::after { } } .modalOverlayInner .footer { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); border-radius: var(--border-radius-small); height: 70px; width: 100%; @@ -6832,11 +6832,11 @@ dialog:dir(rtl)::after { .ds-hr { border: 0; - border-top: 1px solid #D7D7DB; + border-block-start: 1px solid #D7D7DB; height: 0; } [lwt-newtab-brighttext] .ds-hr { - border-top: 1px solid #4A4A4F; + border-block-start: 1px solid #4A4A4F; } /* stylelint-disable max-nesting-depth */ @@ -6950,7 +6950,7 @@ dialog:dir(rtl)::after { grid-template: repeat(8, 1fr)/repeat(1, 1fr); } .ds-navigation.ds-navigation-new-topics ul li { - border-top: 1px solid var(--border-color); + border-block-start: 1px solid var(--border-color); line-height: 24px; font-size: var(--font-size-small); /** @@ -6968,14 +6968,14 @@ dialog:dir(rtl)::after { display: none; } .ds-navigation.ds-navigation-new-topics ul li:nth-last-child(1) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } @media (min-width: 610px) { .ds-navigation.ds-navigation-new-topics ul { grid-template: repeat(3, 1fr)/repeat(2, 1fr); } .ds-navigation.ds-navigation-new-topics ul li:nth-child(3) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } } @media (min-width: 866px) { @@ -6983,10 +6983,10 @@ dialog:dir(rtl)::after { grid-template: repeat(2, 1fr)/repeat(3, 1fr); } .ds-navigation.ds-navigation-new-topics ul li:nth-child(odd) { - border-bottom: 0; + border-block-end: 0; } .ds-navigation.ds-navigation-new-topics ul li:nth-child(even) { - border-bottom: 1px solid var(--border-color); + border-block-end: 1px solid var(--border-color); } } @media (min-width: 1122px) {