commit a44f3c27ff531b53d3636a509f8eb7764c5eead1 parent b255958816f9920c97b2f9087bfb743ee042cb88 Author: dwhisman <dwhisman@mozilla.com> Date: Mon, 3 Nov 2025 21:00:01 +0000 Bug 1992736 - Use font-weight tokens instead of keywords/raw values r=desktop-theme-reviewers,webrtc-reviewers,tabbrowser-reviewers,places-reviewers,urlbar-reviewers,toolkit-telemetry-reviewers,tgiles,dao,ng Differential Revision: https://phabricator.services.mozilla.com/D270554 Diffstat:
74 files changed, 133 insertions(+), 134 deletions(-)
diff --git a/browser/base/content/aboutDialog.css b/browser/base/content/aboutDialog.css @@ -58,14 +58,14 @@ } #release { - font-weight: bold; + font-weight: var(--font-weight-bold); font-size: 125%; margin-top: 10px; margin-inline-start: 0; } #version { - font-weight: bold; + font-weight: var(--font-weight-bold); margin-inline-start: 0; user-select: text; -moz-user-focus: normal; @@ -132,7 +132,7 @@ #currentChannel { margin: 0; padding: 0; - font-weight: bold; + font-weight: var(--font-weight-bold); } #updateBox { diff --git a/browser/base/content/safeMode.css b/browser/base/content/safeMode.css @@ -3,5 +3,5 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ #resetProfileFooter { - font-weight: bold; + font-weight: var(--font-weight-bold); } diff --git a/browser/components/protections/content/protections.css b/browser/components/protections/content/protections.css @@ -333,7 +333,7 @@ a.hidden, } #graph-week-summary { - font-weight: bold; + font-weight: var(--font-weight-bold); } #graph-wrapper { @@ -563,7 +563,7 @@ label:hover { } .tab-content .content-title { - font-weight: bold; + font-weight: var(--font-weight-bold); } .tab-content p { @@ -666,7 +666,7 @@ label[for="tab-cryptominer"]:hover ~ #highlight-hover { border-radius: var(--border-radius-small); text-align: center; font-size: 1.125em; - font-weight: bold; + font-weight: var(--font-weight-bold); color: #fff; padding: 7px; line-height: 18px; @@ -785,7 +785,7 @@ label[for="tab-cryptominer"]:hover ~ #highlight-hover { } #monitor-partial-breaches-motivation-title { - font-weight: 700; + font-weight: var(--font-weight-bold); grid-area: 1 / 1 / 1 / 7; margin-inline-end: 15px; } @@ -819,7 +819,7 @@ label[for="tab-cryptominer"]:hover ~ #highlight-hover { } #monitor-breaches-title { - font-weight: 700; + font-weight: var(--font-weight-bold); } #monitor-breaches-title, @@ -938,7 +938,7 @@ label[for="tab-cryptominer"]:hover ~ #highlight-hover { .monitor-stat { display: flex; font-size: 1.75em; - font-weight: bold; + font-weight: var(--font-weight-bold); margin-block-end: 5px; word-break: break-all; justify-content: center; @@ -989,7 +989,7 @@ label[for="tab-cryptominer"]:hover ~ #highlight-hover { border-radius: var(--border-radius-small); text-decoration: none; color: var(--button-text-color-primary); - font-weight: 600; + font-weight: var(--font-weight-semibold); } #manage-protections:hover, diff --git a/browser/themes/linux/browser.css b/browser/themes/linux/browser.css @@ -117,7 +117,7 @@ /* All tabs menupopup */ .alltabs-item[selected="true"] { - font-weight: bold; + font-weight: var(--font-weight-bold); } #UITourHighlight { diff --git a/browser/themes/shared/UITour.css b/browser/themes/shared/UITour.css @@ -116,7 +116,7 @@ #UITourTooltipTitle { font-size: 1.45rem; - font-weight: bold; + font-weight: var(--font-weight-bold); margin: 0; } diff --git a/browser/themes/shared/aboutTabCrashed.css b/browser/themes/shared/aboutTabCrashed.css @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #reportSent { - font-weight: bold; + font-weight: var(--font-weight-bold); } #reportBox { diff --git a/browser/themes/shared/addon-notification.css b/browser/themes/shared/addon-notification.css @@ -11,7 +11,7 @@ } .addon-install-confirmation-name { - font-weight: bold; + font-weight: var(--font-weight-bold); } html|*.addon-webext-perm-list { @@ -109,7 +109,7 @@ html|ul.webext-perm-domains-list { .addon-webext-name { display: inline; - font-weight: bold; + font-weight: var(--font-weight-bold); margin: 0; } diff --git a/browser/themes/shared/addons/extension-controlled.css b/browser/themes/shared/addons/extension-controlled.css @@ -7,7 +7,7 @@ } .extension-controlled-notification > .popup-notification-body-container > .popup-notification-body > hbox > vbox > .popup-notification-description { - font-weight: 600; + font-weight: var(--font-weight-semibold); } .extension-controlled-notification { diff --git a/browser/themes/shared/autocomplete.css b/browser/themes/shared/autocomplete.css @@ -270,7 +270,7 @@ } > .ac-title .ac-emphasize-text-title { - font-weight: 600; + font-weight: var(--heading-font-weight); } > .ac-site-icon { diff --git a/browser/themes/shared/blockedSite.css b/browser/themes/shared/blockedSite.css @@ -66,5 +66,5 @@ a:not(:link) { } .sitename { - font-weight: bold; + font-weight: var(--font-weight-bold); } diff --git a/browser/themes/shared/browser-shared.css b/browser/themes/shared/browser-shared.css @@ -748,7 +748,7 @@ menupopup::part(drop-indicator) { &::part(button) { font-size: var(--font-size-large); - font-weight: var(--font-weight); + font-weight: normal; justify-content: flex-start; padding-inline: calc((var(--button-size-icon) - var(--icon-size)) / 2 - var(--border-width)); } @@ -778,7 +778,7 @@ menupopup::part(drop-indicator) { #cfr-notification-header-label { margin: 9px; - font-weight: 600; + font-weight: var(--font-weight-semibold); } #cfr-notification-header-link { @@ -862,7 +862,7 @@ menupopup::part(drop-indicator) { } description { - font-weight: 400; + font-weight: normal; margin: unset; margin-inline: 12px; } @@ -974,7 +974,7 @@ menupopup::part(drop-indicator) { } .popup-notification-description { - font-weight: 600; + font-weight: var(--font-weight-semibold); margin-bottom: 15px; } @@ -1150,7 +1150,7 @@ popupnotificationcontent { } .popup-notification-description { - font-weight: 600; + font-weight: var(--font-weight-semibold); margin-top: 0; > b { @@ -1226,7 +1226,7 @@ popupnotificationcontent { margin-inline: 8px; > span:first-of-type { - font-weight: bold; + font-weight: var(--font-weight-bold); } > span:last-of-type { diff --git a/browser/themes/shared/controlcenter/panel.css b/browser/themes/shared/controlcenter/panel.css @@ -108,7 +108,7 @@ } #identity-popup-security-description > description { - font-weight: 600; + font-weight: var(--font-weight-semibold); margin-top: 0.5em; } @@ -190,7 +190,7 @@ .site-information-popup[mixedcontent~="active-loaded"] .identity-popup-connection-not-secure, .site-information-popup:not([mixedcontent]) .identity-popup-connection-not-secure { - font-weight: bold; + font-weight: var(--font-weight-bold); } #identity-popup-mainView > .panel-subview-body { @@ -283,7 +283,7 @@ } #identity-popup-securityView-extended-info > .identity-popup-warning-box { - font-weight: 600; + font-weight: var(--font-weight-semibold); } #identity-popup-securityView-extended-info > .identity-popup-warning-box > label { @@ -613,7 +613,7 @@ } #protections-popup-milestones-text { - font-weight: 600; + font-weight: var(--font-weight-semibold); } #protections-popup-milestones-illustration { @@ -748,7 +748,7 @@ #cookieBannerView-disable-site, #cookieBannerView-enable-site { - font-weight: 600; + font-weight: var(--font-weight-semibold); } .protections-popup-cookieBannerView-footer { diff --git a/browser/themes/shared/customizableui/customizeMode.css b/browser/themes/shared/customizableui/customizeMode.css @@ -464,7 +464,7 @@ toolbarpaletteitem { #customization-panelHeader { font-size: 1.3em; - font-weight: 600; + font-weight: var(--heading-font-weight); padding: 2px 12px; margin: 0; } diff --git a/browser/themes/shared/customizableui/panelUI-shared.css b/browser/themes/shared/customizableui/panelUI-shared.css @@ -394,7 +394,6 @@ menupopup[emptyplacesresult] > .hide-if-empty-places-result { --arrowpanel-border-color: #0060df; --arrowpanel-color: #fff; --arrowpanel-padding: 6px 10px; - font-weight: 400; font-size: 1.1rem; &::part(content) { @@ -472,7 +471,7 @@ menupopup[emptyplacesresult] > .hide-if-empty-places-result { #confirmation-hint.with-description & { font-size: 1.2em; - font-weight: 600; + font-weight: var(--font-weight-semibold); } } @@ -568,7 +567,7 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg color: var(--panel-banner-item-color); background-color: var(--panel-banner-item-background-color); margin-bottom: 4px; - font-weight: 600; + font-weight: var(--font-weight-semibold); } .panel-banner-item, @@ -702,7 +701,7 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg color: var(--button-text-color); background-color: var(--button-background-color); font-size: 0.8em; - font-weight: 600; + font-weight: var(--font-weight-semibold); &:hover { color: var(--button-text-color-hover); @@ -725,7 +724,7 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg #appMenu-fxa-status2[fxastatus] > #appMenu-fxa-label2 > vbox > #appMenu-header-description, #appMenu-fxa-text { - font-weight: 600; + font-weight: var(--font-weight-semibold); } :root[fxadisabled="true"] #appMenu-fxa-status2, @@ -796,7 +795,7 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg .sync-setup-title { font-size: 1.1em; - font-weight: 400; + font-weight: normal; margin-block: auto; } @@ -1752,7 +1751,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { margin: 5px 15px 11px; border: 1px solid var(--button-border-color-destructive); border-radius: var(--button-border-radius); - font-weight: 600; + font-weight: var(--font-weight-semibold); padding: 10px; &:hover { @@ -1785,7 +1784,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { border: 1px solid transparent; border-radius: var(--button-border-radius); padding: 10px; - font-weight: 600; + font-weight: var(--font-weight-semibold); appearance: none; &:hover { @@ -1910,7 +1909,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { .protections-popup-message-title { display: grid; font-size: 1.3em; - font-weight: 600; + font-weight: var(--heading-font-weight); line-height: 1.4em; margin: 14px 0 0; grid-column-start: 1; @@ -1925,7 +1924,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { .text-link { color: inherit; - font-weight: 600; + font-weight: var(--font-weight-semibold); } } @@ -1993,7 +1992,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { .PanelUI-profiler-description-title { font-size: 1.3em; - font-weight: 600; + font-weight: var(--heading-font-weight); margin-block: 2px; } @@ -2024,7 +2023,7 @@ radiogroup:focus-visible > .subviewradio[focused="true"] { } .PanelUI-profiler-content-label { - font-weight: 600; + font-weight: var(--font-weight-semibold); } #PanelUI-profiler-content-description { diff --git a/browser/themes/shared/identity-credential-notification.css b/browser/themes/shared/identity-credential-notification.css @@ -26,7 +26,7 @@ #identity-credential-header-text, #credential-chooser-header-text { - font-weight: 600; + font-weight: var(--heading-font-weight); } #identity-credential-header-container, @@ -73,7 +73,7 @@ } .identity-credential-list-item .identity-credential-list-item-label-primary { - font-weight: 600; + font-weight: var(--font-weight-semibold); } .identity-credential-list-item .identity-credential-list-item-label-secondary { diff --git a/browser/themes/shared/migration/migration-wizard.css b/browser/themes/shared/migration/migration-wizard.css @@ -419,7 +419,7 @@ div[name="page-selection"][show-import-all] .resource-selection-details { p.migration-wizard-subheader { font-size: var(--embedded-wizard-subheader-font-size, 0.85em); - font-weight: var(--embedded-wizard-subheader-font-weight, 400); + font-weight: var(--embedded-wizard-subheader-font-weight, normal); margin-block: var(--embedded-wizard-subheader-margin-block, 0 28px); line-height: 1.2em; diff --git a/browser/themes/shared/pageInfo.css b/browser/themes/shared/pageInfo.css @@ -238,7 +238,7 @@ treechildren::-moz-tree-cell-text(broken) { } .permissionLabel { - font-weight: bold; + font-weight: var(--font-weight-bold); } .permission:hover { diff --git a/browser/themes/shared/places/editBookmarkPanel.css b/browser/themes/shared/places/editBookmarkPanel.css @@ -15,7 +15,7 @@ border-radius: var(--button-border-radius); background-color: var(--button-background-color); color: var(--button-text-color); - font-weight: 600; + font-weight: var(--font-weight-semibold); min-width: 0; padding: 8px 16px; diff --git a/browser/themes/shared/preferences/fxaPairDevice.css b/browser/themes/shared/preferences/fxaPairDevice.css @@ -8,7 +8,7 @@ #pairTitle { font-size: 2.1rem; - font-weight: bold; + font-weight: var(--font-weight-bold); padding-top: 12px; text-align: center; } diff --git a/browser/themes/shared/preferences/privacy.css b/browser/themes/shared/preferences/privacy.css @@ -213,7 +213,7 @@ .content-blocking-warning-title, .privacy-detailedoption .radio-label-box { - font-weight: bold; + font-weight: var(--font-weight-bold); } .privacy-detailedoption:not(.expanded, .selected) .privacy-extra-information { diff --git a/browser/themes/shared/preferences/siteDataSettings.css b/browser/themes/shared/preferences/siteDataSettings.css @@ -60,5 +60,5 @@ } #removing-label { - font-weight: bold; + font-weight: var(--font-weight-bold); } diff --git a/browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css b/browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css @@ -342,7 +342,7 @@ p { .banner-body h1 { font-size: 18px; - font-weight: bold; + font-weight: var(--font-weight-bold); color: var(--in-content-banner-text-color); line-height: 1em; margin: 7px 0; @@ -375,7 +375,7 @@ p { .info h1, .promo h1 { font-size: 18px; - font-weight: bold; + font-weight: var(--font-weight-bold); line-height: 28px; } @@ -504,7 +504,7 @@ p { .promo-cta .primary { padding: 0.54em 1.15em; margin: 8px 0; - font-weight: 600; + font-weight: var(--font-weight-semibold); cursor: pointer; background-color: rgb(0, 221, 255); color: rgb(43, 42, 51); diff --git a/browser/themes/shared/setDesktopBackground.css b/browser/themes/shared/setDesktopBackground.css @@ -19,5 +19,5 @@ html|p#preview-unavailable { margin: 12px 11px; text-align: center; color: #9b2423; - font-weight: bold; + font-weight: var(--font-weight-bold); } diff --git a/browser/themes/shared/tabbrowser/ctrlTab.css b/browser/themes/shared/tabbrowser/ctrlTab.css @@ -12,7 +12,7 @@ --panel-padding: 20px 10px 10px; -moz-window-shadow: none; @media not (-moz-platform: macos) { - font-weight: bold; + font-weight: var(--font-weight-bold); } } diff --git a/browser/themes/shared/tabbrowser/fullscreen-and-pointerlock.css b/browser/themes/shared/tabbrowser/fullscreen-and-pointerlock.css @@ -100,7 +100,7 @@ } .pointerlockfswarning-domain { - font-weight: bold; + font-weight: var(--font-weight-bold); margin: 0; } diff --git a/browser/themes/shared/tabbrowser/tabs.css b/browser/themes/shared/tabbrowser/tabs.css @@ -1055,7 +1055,7 @@ } .tab-label[attention]:not([selected]) { - font-weight: bold; + font-weight: var(--font-weight-bold); } #pinned-tabs-container[orient="horizontal"] { diff --git a/browser/themes/shared/translations/panel.css b/browser/themes/shared/translations/panel.css @@ -96,7 +96,7 @@ h1.translations-panel-header-wrapper { } #full-page-translations-panel-error-message { - font-weight: 600; + font-weight: var(--font-weight-semibold); } .translations-panel-error-icon { diff --git a/browser/themes/shared/urlbar-dynamic-results.css b/browser/themes/shared/urlbar-dynamic-results.css @@ -231,7 +231,7 @@ .urlbarView-dynamic-weather-temperature { margin-inline-end: 0.3em; - font-weight: 600; + font-weight: var(--font-weight-semibold); font-size: 1.385em; vertical-align: middle; } diff --git a/browser/themes/shared/urlbar-searchbar.css b/browser/themes/shared/urlbar-searchbar.css @@ -920,7 +920,7 @@ @media (prefers-contrast) and (-moz-platform: windows) { #translations-button-locale { - font-weight: bold; + font-weight: var(--font-weight-bold); } #translations-button[translationsactive]:is(:hover, [open]) > #translations-button-icon { diff --git a/browser/themes/windows/browser.css b/browser/themes/windows/browser.css @@ -273,7 +273,7 @@ /* All tabs menupopup */ .alltabs-item[selected="true"] { - font-weight: bold; + font-weight: var(--font-weight-bold); } #UITourTooltipButtons { diff --git a/security/manager/pki/resources/content/clientauthask.css b/security/manager/pki/resources/content/clientauthask.css @@ -7,7 +7,7 @@ } .important { - font-weight: bold; + font-weight: var(--font-weight-bold); } .details { diff --git a/security/manager/pki/resources/content/exceptionDialog.css b/security/manager/pki/resources/content/exceptionDialog.css @@ -10,7 +10,7 @@ #warningSupplemental, .description { - font-weight: bold; + font-weight: var(--font-weight-bold); } .longDescription { diff --git a/toolkit/components/aboutconfig/content/aboutconfig.css b/toolkit/components/aboutconfig/content/aboutconfig.css @@ -120,7 +120,7 @@ } #prefs > tr.has-user-value { - font-weight: bold; + font-weight: var(--font-weight-bold); } #prefs > tr.locked { diff --git a/toolkit/components/aboutinference/content/aboutInference.css b/toolkit/components/aboutinference/content/aboutInference.css @@ -57,7 +57,7 @@ button:hover { caption { caption-side: top; padding: 10px; - font-weight: bold; + font-weight: var(--font-weight-bold); } table { @@ -91,7 +91,7 @@ textarea { legend { font-size: 1.5em; - font-weight: bold; + font-weight: var(--font-weight-bold); padding: 5px; } .form-container { @@ -105,7 +105,7 @@ legend { .form-container label { display: inline-block; - font-weight: bold; + font-weight: var(--font-weight-bold); } .form-container input[type="text"], @@ -215,6 +215,6 @@ legend { #modelFiles table caption { caption-side: bottom; text-align: center; - font-weight: bold; + font-weight: var(--font-weight-bold); margin-top: 1px; } diff --git a/toolkit/components/aboutmemory/content/aboutMemory.css b/toolkit/components/aboutmemory/content/aboutMemory.css @@ -96,7 +96,7 @@ div.opsRowLabel, div.sidebarLabel { display: block; margin-bottom: 0.2em; - font-weight: bold; + font-weight: var(--font-weight-bold); } .opsRowLabel label { @@ -167,7 +167,7 @@ a.treemapEntry { } > .treemapEntryProcessName { - font-weight: bold; + font-weight: var(--font-weight-bold); } > .treemapEntryPid { @@ -202,7 +202,7 @@ a.treemapEntry { } .mrValue { - font-weight: bold; + font-weight: var(--font-weight-bold); } .hasKids { diff --git a/toolkit/components/aboutprocesses/content/aboutProcesses.css b/toolkit/components/aboutprocesses/content/aboutProcesses.css @@ -240,7 +240,7 @@ th > button.clickable { } tr.process > td.type { - font-weight: bold; + font-weight: var(--font-weight-bold); user-select: text; } tr.thread { diff --git a/toolkit/components/aboutwebauthn/content/aboutWebauthn.css b/toolkit/components/aboutwebauthn/content/aboutWebauthn.css @@ -26,7 +26,7 @@ label { padding-top: 15px; } #ctap-listen-result { - font-weight: 600; + font-weight: var(--font-weight-semibold); font-size: 1.5em; padding-inline-start: 15px; height: 1.5em; diff --git a/toolkit/components/certviewer/content/components/info-group.css b/toolkit/components/certviewer/content/components/info-group.css @@ -18,7 +18,7 @@ .info-group-title { margin: 0; text-align: end; - font-weight: 700; + font-weight: var(--font-weight-bold); color: var(--text-color); font-size: 1em; vertical-align: middle; diff --git a/toolkit/components/certviewer/content/components/info-item.css b/toolkit/components/certviewer/content/components/info-item.css @@ -16,7 +16,7 @@ label { text-align: end; margin-inline-end: 0; color: var(--text-color-deemphasized); - font-weight: 600; + font-weight: var(--font-weight-semibold); font-size: 1em; } diff --git a/toolkit/components/normandy/content/about-studies/about-studies.css b/toolkit/components/normandy/content/about-studies/about-studies.css @@ -72,7 +72,7 @@ button > .button-box { .study .study-status { color: var(--study-status-active-color); - font-weight: bold; + font-weight: var(--font-weight-bold); } .study.disabled .study-status { @@ -135,7 +135,7 @@ button > .button-box { } .study-name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .study-header { diff --git a/toolkit/content/aboutLogging/aboutLogging.css b/toolkit/content/aboutLogging/aboutLogging.css @@ -123,7 +123,7 @@ input[type="text"] { } .info-box-label { - font-weight: 600; + font-weight: var(--font-weight-semibold); } #error { @@ -168,7 +168,7 @@ input[type="text"] { } .uploaded-profile-name { - font-weight: 600; + font-weight: var(--font-weight-semibold); margin-bottom: 0.25em; } diff --git a/toolkit/content/aboutTelemetry.css b/toolkit/content/aboutTelemetry.css @@ -47,7 +47,7 @@ body { display: flex; flex-direction: column; font-size: 17px; - font-weight: 600; + font-weight: var(--heading-font-weight); pointer-events: none; padding: 12px 8px; } @@ -214,7 +214,7 @@ section:not(.active) { .stack-title { font-size: medium; - font-weight: bold; + font-weight: var(--font-weight-bold); text-decoration: underline; } diff --git a/toolkit/content/aboutUrlClassifier.css b/toolkit/content/aboutUrlClassifier.css @@ -8,7 +8,7 @@ margin-block: 2em 1em; font-size: large; text-align: start; - font-weight: bold; + font-weight: var(--font-weight-bold); } #provider-table > tbody > tr > td:last-child, diff --git a/toolkit/content/aboutwebrtc/aboutWebrtc.css b/toolkit/content/aboutwebrtc/aboutWebrtc.css @@ -95,7 +95,7 @@ h3 > span { } .peer-connection table th { - font-weight: bold; + font-weight: var(--font-weight-bold); } .peer-connection table th, @@ -152,7 +152,7 @@ h3 > span { } .info-label { - font-weight: bold; + font-weight: var(--font-weight-bold); } .info-body, diff --git a/toolkit/content/resetProfile.css b/toolkit/content/resetProfile.css @@ -7,5 +7,5 @@ } #infoTitle { - font-weight: 600; + font-weight: var(--heading-font-weight); } diff --git a/toolkit/content/widgets/moz-message-bar/moz-message-bar.css b/toolkit/content/widgets/moz-message-bar/moz-message-bar.css @@ -96,7 +96,7 @@ /* MozMessageBar heading style */ .heading { - font-weight: 600; + font-weight: var(--heading-font-weight); } /* MozMessageBar message style */ diff --git a/toolkit/mozapps/handling/content/handler.css b/toolkit/mozapps/handling/content/handler.css @@ -5,7 +5,7 @@ @namespace html "http://www.w3.org/1999/xhtml"; #description { - font-weight: bold; + font-weight: var(--font-weight-bold); } #remember-text:not([visible]) { diff --git a/toolkit/themes/linux/mozapps/update/updates.css b/toolkit/themes/linux/mozapps/update/updates.css @@ -33,7 +33,7 @@ } .update-header-label { - font-weight: bold; + font-weight: var(--font-weight-bold); } #update-button-box { @@ -46,7 +46,7 @@ } #updateFinishedName { - font-weight: bold; + font-weight: var(--font-weight-bold); font-size: larger; } @@ -56,7 +56,7 @@ update { } .update-name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .update-label-column { @@ -64,7 +64,7 @@ update { } .update-type { - font-weight: bold; + font-weight: var(--font-weight-bold); color: #990000; } diff --git a/toolkit/themes/mobile/global/aboutMemory.css b/toolkit/themes/mobile/global/aboutMemory.css @@ -101,7 +101,7 @@ div.opsRowLabel, div.sidebarLabel { display: block; margin-bottom: 0.2em; - font-weight: bold; + font-weight: var(--font-weight-bold); } .opsRowLabel label { @@ -140,7 +140,7 @@ h2 { } .mrValue { - font-weight: bold; + font-weight: var(--font-weight-bold); } .hasKids { diff --git a/toolkit/themes/mobile/global/aboutNetworking.css b/toolkit/themes/mobile/global/aboutNetworking.css @@ -47,7 +47,7 @@ } .category[selected] { - font-weight: bold; + font-weight: var(--font-weight-bold); } /** Content area **/ diff --git a/toolkit/themes/mobile/global/aboutSupport.css b/toolkit/themes/mobile/global/aboutSupport.css @@ -21,7 +21,7 @@ body { margin-block: 2em 1em; font-size: large; text-align: start; - font-weight: bold; + font-weight: var(--font-weight-bold); } #copy-raw-data-to-clipboard, diff --git a/toolkit/themes/osx/global/wizard.css b/toolkit/themes/osx/global/wizard.css @@ -12,12 +12,12 @@ .wizard-header-box-text { padding: 6px 10px; font: menu; - font-weight: bold; + font-weight: var(--font-weight-bold); } .wizard-header-label { margin-inline-start: 23px; - font-weight: bold; + font-weight: var(--font-weight-bold); } .wizard-header-box-icon { diff --git a/toolkit/themes/osx/mozapps/handling/handling.css b/toolkit/themes/osx/mozapps/handling/handling.css @@ -17,7 +17,7 @@ richlistbox { } .name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .description { diff --git a/toolkit/themes/osx/mozapps/update/updates.css b/toolkit/themes/osx/mozapps/update/updates.css @@ -26,11 +26,11 @@ margin: 0; padding: 0; font: menu; - font-weight: bold; + font-weight: var(--font-weight-bold); } .update-header-label { - font-weight: bold; + font-weight: var(--font-weight-bold); } .update-content { @@ -55,7 +55,7 @@ } #updateFinishedName { - font-weight: bold; + font-weight: var(--font-weight-bold); font-size: larger; } @@ -65,7 +65,7 @@ update { } .update-name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .update-label-column { @@ -73,7 +73,7 @@ update { } .update-type { - font-weight: bold; + font-weight: var(--font-weight-bold); color: #990000; } diff --git a/toolkit/themes/shared/aboutHttpsOnlyError.css b/toolkit/themes/shared/aboutHttpsOnlyError.css @@ -15,7 +15,7 @@ em { font-style: normal; - font-weight: 600; + font-weight: var(--font-weight-semibold); } #insecure-explanation-unavailable { diff --git a/toolkit/themes/shared/aboutNetError.css b/toolkit/themes/shared/aboutNetError.css @@ -56,7 +56,7 @@ button:disabled { } #errorWhatToDoTitle { - font-weight: bold; + font-weight: var(--font-weight-bold); margin-top: 2em; } @@ -144,13 +144,13 @@ button:disabled { } #errorLongDesc strong { - font-weight: 600; + font-weight: var(--font-weight-semibold); } #errorShortDesc { font-size: 1.15em; line-height: 1.3; - font-weight: 400; + font-weight: normal; margin-top: 10px; } diff --git a/toolkit/themes/shared/aboutReader.css b/toolkit/themes/shared/aboutReader.css @@ -972,7 +972,7 @@ div[name="customtheme"] { text-align: var(--text-alignment); word-spacing: var(--word-spacing); letter-spacing: var(--letter-spacing); - font-weight: var(--font-weight); + font-weight: normal; .header { text-align: var(--text-alignment); @@ -1010,7 +1010,7 @@ pre { .moz-reader-content h1, .moz-reader-content h2, .moz-reader-content h3 { - font-weight: bold; + font-weight: var(--font-weight-bold); } .moz-reader-content h1 { diff --git a/toolkit/themes/shared/aboutSupport.css b/toolkit/themes/shared/aboutSupport.css @@ -12,7 +12,7 @@ margin-block: 2em 1em; font-size: large; text-align: start; - font-weight: bold; + font-weight: var(--font-weight-bold); } button { @@ -68,7 +68,7 @@ td.integer { #codec-table td:first-child { text-align: start; unicode-bidi: normal; - font-weight: 600; + font-weight: var(--font-weight-semibold); } #codec-table tr:nth-child(even) { diff --git a/toolkit/themes/shared/alert.css b/toolkit/themes/shared/alert.css @@ -147,7 +147,7 @@ .alertTitle { flex: 1; - font-weight: bold; + font-weight: var(--font-weight-bold); padding: 6px 8px 0; margin: 0; width: 255px; diff --git a/toolkit/themes/shared/appPicker.css b/toolkit/themes/shared/appPicker.css @@ -7,7 +7,7 @@ } #content-description { - font-weight: bold; + font-weight: var(--font-weight-bold); } #app-picker-listbox { diff --git a/toolkit/themes/shared/commonDialog.css b/toolkit/themes/shared/commonDialog.css @@ -30,7 +30,7 @@ } #infoTitle { - font-weight: bold; + font-weight: var(--font-weight-bold); } } diff --git a/toolkit/themes/shared/datetimeinputpickers.css b/toolkit/themes/shared/datetimeinputpickers.css @@ -270,7 +270,7 @@ button.month-year.active { background-color: var(--today-background); color: var(--today-color); border-color: transparent; - font-weight: bold; + font-weight: var(--font-weight-bold); } .days-view > tr > td.today:hover { diff --git a/toolkit/themes/shared/downloads/unknownContentType.css b/toolkit/themes/shared/downloads/unknownContentType.css @@ -8,7 +8,7 @@ } description { - font-weight: bold; + font-weight: var(--font-weight-bold); } } @@ -27,7 +27,7 @@ } #location { - font-weight: bold; + font-weight: var(--font-weight-bold); } #contentTypeImage { diff --git a/toolkit/themes/shared/findbar.css b/toolkit/themes/shared/findbar.css @@ -159,7 +159,7 @@ xul|findbar { } .findbar-find-status[status="notfound"] { - font-weight: bold; + font-weight: var(--font-weight-bold); } .find-status-icon { diff --git a/toolkit/themes/shared/global-shared.css b/toolkit/themes/shared/global-shared.css @@ -368,7 +368,7 @@ button.text-link .button-text { background-color: var(--button-background-color); padding: 0.45em 1em; min-height: var(--size-item-large); - font-weight: 600; + font-weight: var(--font-weight-semibold); min-width: 0; margin-inline: 8px 0; margin-bottom: 0; diff --git a/toolkit/themes/shared/in-content/common-shared.css b/toolkit/themes/shared/in-content/common-shared.css @@ -182,7 +182,7 @@ xul|menulist { border: var(--button-border); border-radius: var(--button-border-radius); background-color: var(--button-background-color); - font-weight: 400; + font-weight: normal; padding: 0.45em 1em; text-decoration: none; margin: 4px 8px; @@ -248,7 +248,7 @@ html|select:not([size], [multiple]) { -moz-context-properties: fill; fill: currentColor; font: inherit; - font-weight: 600; + font-weight: var(--font-weight-semibold); /* See above for some explanation about these values. */ padding-inline-start: var(--start-padding); diff --git a/toolkit/themes/shared/in-content/info-pages.css b/toolkit/themes/shared/in-content/info-pages.css @@ -86,7 +86,7 @@ ul { } dt { - font-weight: bold; + font-weight: var(--font-weight-bold); } ul.columns { diff --git a/toolkit/themes/shared/menu.css b/toolkit/themes/shared/menu.css @@ -242,7 +242,7 @@ menuitem { menuitem:is([default="true"], .spell-suggestion), menucaption { - font-weight: bold; + font-weight: var(--font-weight-bold); } .menu-icon, @@ -411,7 +411,7 @@ menupopup[needsgutter] { line-height: 0; visibility: hidden; padding-inline: 4px; - font-weight: bold; + font-weight: var(--font-weight-bold); } } diff --git a/toolkit/themes/shared/menulist.css b/toolkit/themes/shared/menulist.css @@ -91,7 +91,7 @@ justify-content: center; :host(:not([native])) & { - font-weight: 600; + font-weight: var(--font-weight-semibold); } } diff --git a/toolkit/themes/shared/toolbarbutton.css b/toolkit/themes/shared/toolbarbutton.css @@ -58,7 +58,7 @@ toolbarbutton { justify-self: end; @media (-moz-platform: windows) { - font-weight: bold; + font-weight: var(--font-weight-bold); } @media (-moz-platform: macos) { diff --git a/toolkit/themes/windows/global/global.css b/toolkit/themes/windows/global/global.css @@ -111,7 +111,7 @@ xul|separator.groove[orient="vertical"] { } > menucaption > .menu-text { - font-weight: bold; + font-weight: var(--font-weight-bold); } > menuitem[_moz-menuactive="true"][disabled="true"] { diff --git a/toolkit/themes/windows/global/wizard.css b/toolkit/themes/windows/global/wizard.css @@ -17,7 +17,7 @@ .wizard-header-label { margin-inline-start: 23px; - font-weight: bold; + font-weight: var(--font-weight-bold); } .wizard-header-description { diff --git a/toolkit/themes/windows/mozapps/handling/handling.css b/toolkit/themes/windows/mozapps/handling/handling.css @@ -17,7 +17,7 @@ richlistbox { } .name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .description { diff --git a/toolkit/themes/windows/mozapps/update/updates.css b/toolkit/themes/windows/mozapps/update/updates.css @@ -30,7 +30,7 @@ } .update-header-label { - font-weight: bold; + font-weight: var(--font-weight-bold); } #update-button-box { @@ -47,7 +47,7 @@ } #updateFinishedName { - font-weight: bold; + font-weight: var(--font-weight-bold); font-size: larger; } @@ -57,7 +57,7 @@ update { } .update-name { - font-weight: bold; + font-weight: var(--font-weight-bold); } .update-label-column { @@ -65,7 +65,7 @@ update { } .update-type { - font-weight: bold; + font-weight: var(--font-weight-bold); color: #990000; }