diff --git a/mobile/android/android-components/components/browser/errorpages/src/main/assets/error_style.css b/mobile/android/android-components/components/browser/errorpages/src/main/assets/error_style.css index 7cc2ea66ea5c..0fcd775ada04 100644 --- a/mobile/android/android-components/components/browser/errorpages/src/main/assets/error_style.css +++ b/mobile/android/android-components/components/browser/errorpages/src/main/assets/error_style.css @@ -16,8 +16,8 @@ body { /* background-size: 64px 32px; */ background-repeat: repeat-x; - background-color: #363B40; - color: #FFFFFF; + background-color: #363b40; + color: #ffffff; padding: 0 20px; font-weight: 300; @@ -65,15 +65,15 @@ button { border: none; padding: 1rem; font-family: sans-serif; - background-color: #00A4DC; - color: #FFFFFF; + background-color: #00a4dc; + color: #ffffff; font-weight: 300; border-radius: 2px; background-image: none; margin: var(--moz-vertical-spacing) 0 0; } -.buttonSecondary{ +.buttonSecondary { /* Force buttons to display: block here to try and enforce collapsing margins */ display: block; width: 100%; @@ -81,7 +81,7 @@ button { padding: 1rem; font-family: sans-serif; background-color: rgba(249, 249, 250, 0.1); - color: #FFFFFF; + color: #ffffff; font-weight: 300; border-radius: 2px; background-image: none; diff --git a/mobile/android/docs/geckoview/assets/css/geckoview.css b/mobile/android/docs/geckoview/assets/css/geckoview.css index e9564a3bc3db..5eb5e48b2447 100644 --- a/mobile/android/docs/geckoview/assets/css/geckoview.css +++ b/mobile/android/docs/geckoview/assets/css/geckoview.css @@ -5,6 +5,6 @@ /* There is some code in just-the-docs that completely breaks styling for code * blocks, this is an attempt to fix that. */ code { - font-weight: inherit; - font-size: 80%; + font-weight: inherit; + font-size: 80%; } diff --git a/mobile/android/fenix/app/src/main/assets/shared_error_style.css b/mobile/android/fenix/app/src/main/assets/shared_error_style.css index 7852db461db3..a99f0c9619df 100644 --- a/mobile/android/fenix/app/src/main/assets/shared_error_style.css +++ b/mobile/android/fenix/app/src/main/assets/shared_error_style.css @@ -80,7 +80,7 @@ button { button::after { background-color: var(--primary-button-color); - content: ''; + content: ""; border-radius: 5px; display: block; position: absolute; @@ -156,7 +156,7 @@ hr { } #errorLongContent { - margin: 16px 0; + margin: 16px 0; } #errorTryAgain { diff --git a/mobile/android/focus-android/app/src/main/assets/error_style.css b/mobile/android/focus-android/app/src/main/assets/error_style.css index bad81f30ca25..30b02a5be630 100644 --- a/mobile/android/focus-android/app/src/main/assets/error_style.css +++ b/mobile/android/focus-android/app/src/main/assets/error_style.css @@ -18,8 +18,8 @@ body { /* background-size: 64px 32px; */ background-repeat: repeat-x; - background-color: #363B40; - color: #FFFFFF; + background-color: #363b40; + color: #ffffff; padding: 0 20px; font-weight: 300; @@ -67,15 +67,15 @@ button { border: none; padding: 1rem; font-family: sans-serif; - background-color: #00A4DC; - color: #FFFFFF; + background-color: #00a4dc; + color: #ffffff; font-weight: 300; border-radius: 2px; background-image: none; margin: var(--moz-vertical-spacing) 0 0; } -.buttonSecondary{ +.buttonSecondary { /* Force buttons to display: block here to try and enforce collapsing margins */ display: block; width: 100%; @@ -83,7 +83,7 @@ button { padding: 1rem; font-family: sans-serif; background-color: rgba(249, 249, 250, 0.1); - color: #FFFFFF; + color: #ffffff; font-weight: 300; border-radius: 2px; background-image: none; diff --git a/mobile/android/focus-android/app/src/main/assets/style.css b/mobile/android/focus-android/app/src/main/assets/style.css index 6e93e41157b2..28f485a75ccb 100644 --- a/mobile/android/focus-android/app/src/main/assets/style.css +++ b/mobile/android/focus-android/app/src/main/assets/style.css @@ -2,42 +2,43 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -body, html { - background: #221F1F; - color: #FFFFFF; - font-family: sans-serif; - line-height: 24px; - font-size: 14px; +body, +html { + background: #221f1f; + color: #ffffff; + font-family: sans-serif; + line-height: 24px; + font-size: 14px; } -body{ - padding-left: 24px; - padding-right: 24px; - margin-left: 0; - margin-right: 0; +body { + padding-left: 24px; + padding-right: 24px; + margin-left: 0; + margin-right: 0; } a { - color: #0A9AF4; + color: #0a9af4; } /* Make only about page links ("learn more") white */ .about a { - color: #FFFFFF; + color: #ffffff; } p.subtitle { - text-align: center; - opacity: .7; - margin: 0; + text-align: center; + opacity: 0.7; + margin: 0; } img#wordmark { - /* We need to set the dp size here, because by default webview assumes the image is not + /* We need to set the dp size here, because by default webview assumes the image is not density specific (but since it's an android resource, we get a density specific version). */ - width: 180px; - display: block; - margin-left: auto; - margin-right: auto; - padding-top: 24px; + width: 180px; + display: block; + margin-left: auto; + margin-right: auto; + padding-top: 24px; } diff --git a/mobile/android/themes/geckoview/config.css b/mobile/android/themes/geckoview/config.css index f1689d586527..143f298291b8 100644 --- a/mobile/android/themes/geckoview/config.css +++ b/mobile/android/themes/geckoview/config.css @@ -3,377 +3,381 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ :root { - --background-color: #fff; - --text-color: #0c0c0d; - --border-color: #e1e1e2; + --background-color: #fff; + --text-color: #0c0c0d; + --border-color: #e1e1e2; - --toolbar-background-color: #f9f9fa; - --searchbar-background-color: #ededf0; - --searchbar-focused-background-color: #fff; + --toolbar-background-color: #f9f9fa; + --searchbar-background-color: #ededf0; + --searchbar-focused-background-color: #fff; - --deemphasized-border-color: rgba(0,0,0,0.05); - --deemphasized-text-color: rgba(0,0,0,0.5); + --deemphasized-border-color: rgba(0, 0, 0, 0.05); + --deemphasized-text-color: rgba(0, 0, 0, 0.5); } @media (prefers-color-scheme: dark) { - :root { - --background-color: #292833; - --text-color: #f9f9fa; - --border-color: rgba(255,255,255,0.15); + :root { + --background-color: #292833; + --text-color: #f9f9fa; + --border-color: rgba(255, 255, 255, 0.15); - --toolbar-background-color: #1c1b22; - --searchbar-background-color: #3f3e46; - --searchbar-focused-background-color: #4c4a54; + --toolbar-background-color: #1c1b22; + --searchbar-background-color: #3f3e46; + --searchbar-focused-background-color: #4c4a54; - --deemphasized-border-color: rgba(249,249,250,0.05); - --deemphasized-text-color: rgba(249,249,250,0.5); - } + --deemphasized-border-color: rgba(249, 249, 250, 0.05); + --deemphasized-text-color: rgba(249, 249, 250, 0.5); + } } html, body { - margin: 0; - padding: 0; - user-select: none; - font-family: sans-serif; - -moz-text-size-adjust: none; - background-color: var(--background-color); - color: var(--text-color); + margin: 0; + padding: 0; + user-select: none; + font-family: sans-serif; + -moz-text-size-adjust: none; + background-color: var(--background-color); + color: var(--text-color); } .toolbar { - width: 100%; - min-height: 3em; - display: flow-root; - position: sticky; - top: 0; - left: 0; - z-index: 10; - background-color: var(--toolbar-background-color); - font-weight: bold; - box-shadow: 0 2px 7px rgba(0,0,0,0.25); + width: 100%; + min-height: 3em; + display: flow-root; + position: sticky; + top: 0; + left: 0; + z-index: 10; + background-color: var(--toolbar-background-color); + font-weight: bold; + box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25); } .toolbar-container { - max-width: 40em; - margin-inline: auto; + max-width: 40em; + margin-inline: auto; } #filter-container { - margin: 0.375em; - height: 2em; - background-color: var(--searchbar-background-color); - border-radius: 0.25em; - border: 1px solid transparent; - overflow: hidden; - display: flex; - float: inline-end; + margin: 0.375em; + height: 2em; + background-color: var(--searchbar-background-color); + border-radius: 0.25em; + border: 1px solid transparent; + overflow: hidden; + display: flex; + float: inline-end; } #filter-container:focus-within { - background-color: var(--searchbar-focused-background-color); - box-shadow: 0 1px 6px rgba(0,0,0,.1); + background-color: var(--searchbar-focused-background-color); + box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1); } #filter-input { - border: none; - background: none; - color: inherit; - flex-grow: 1; - height: 100%; - box-sizing: border-box; - opacity: 0.75; + border: none; + background: none; + color: inherit; + flex-grow: 1; + height: 100%; + box-sizing: border-box; + opacity: 0.75; } #new-pref-toggle-button { - background-image: url("chrome://geckoview/skin/images/add.svg"); - background-size: 1.25em; - background-position: center; - background-repeat: no-repeat; - height: 3em; - width: 3em; - outline: none; - float: inline-start; - -moz-context-properties: fill, fill-opacity; - fill: currentColor; - fill-opacity: 0.8; + background-image: url("chrome://geckoview/skin/images/add.svg"); + background-size: 1.25em; + background-position: center; + background-repeat: no-repeat; + height: 3em; + width: 3em; + outline: none; + float: inline-start; + -moz-context-properties: fill, fill-opacity; + fill: currentColor; + fill-opacity: 0.8; } #filter-search-button, #filter-input-clear-button { - background-size: 1em; - background-position: center; - background-repeat: no-repeat; - height: 2em; - width: 2em; - outline: none; - display: inline-block; - -moz-context-properties: fill, fill-opacity; - fill: currentColor; - fill-opacity: 0.8; + background-size: 1em; + background-position: center; + background-repeat: no-repeat; + height: 2em; + width: 2em; + outline: none; + display: inline-block; + -moz-context-properties: fill, fill-opacity; + fill: currentColor; + fill-opacity: 0.8; } #filter-search-button { - background-image: url("chrome://geckoview/skin/images/search.svg"); + background-image: url("chrome://geckoview/skin/images/search.svg"); } #filter-search-button:dir(rtl) { - scale: -1 1; + scale: -1 1; } #filter-input-clear-button { - background-image: url("chrome://geckoview/skin/images/search-clear.svg"); + background-image: url("chrome://geckoview/skin/images/search-clear.svg"); } #filter-input:placeholder-shown + #filter-input-clear-button { - visibility: hidden; /* display: none; causes the input size to change */ + visibility: hidden; /* display: none; causes the input size to change */ } .toolbar-item { - display: inline-block; - height: 3em; - min-width: 3em; - float: right; + display: inline-block; + height: 3em; + min-width: 3em; + float: right; } #content { - position: relative; - margin: 0 auto; - padding-inline: 0; - min-height: 100%; - max-width: 40em; + position: relative; + margin: 0 auto; + padding-inline: 0; + min-height: 100%; + max-width: 40em; } #prefs-container { - list-style: none; - min-height: 100%; - width: 100%; - margin: 0; - padding: 0; - box-sizing: border-box; - overflow-x: hidden; + list-style: none; + min-height: 100%; + width: 100%; + margin: 0; + padding: 0; + box-sizing: border-box; + overflow-x: hidden; } #prefs-container li { - border-bottom: 1px solid var(--border-color); - cursor: pointer; + border-bottom: 1px solid var(--border-color); + cursor: pointer; } #new-pref-container { - width: 100%; - margin: 0; - background-color: var(--background-color); - box-shadow: 0 5px 18px rgba(0,0,0,.2); - box-sizing: border-box; - overflow-x: hidden; - max-width: 40em; - max-height: 100%; - position: fixed; - top: 3em; - left: auto; - display: none; - z-index: 5; + width: 100%; + margin: 0; + background-color: var(--background-color); + box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2); + box-sizing: border-box; + overflow-x: hidden; + max-width: 40em; + max-height: 100%; + position: fixed; + top: 3em; + left: auto; + display: none; + z-index: 5; } #new-pref-container input, #new-pref-container select { - border: none; - background: none; + border: none; + background: none; } #new-pref-container.show { - display: block; + display: block; } #new-pref-line-boolean, #new-pref-value-string, #new-pref-value-int { - display: none; + display: none; } #new-pref-item[typestyle="boolean"] #new-pref-line-boolean, #new-pref-item[typestyle="string"] #new-pref-value-string, #new-pref-item[typestyle="int"] #new-pref-value-int { - display: flex; + display: flex; } #new-pref-item[typestyle="boolean"] #new-pref-line-input { - border-top: none; + border-top: none; } .pref-name, .pref-value { - padding: 15px 10px; - text-align: match-parent; - text-overflow: ellipsis; - overflow: hidden; - background: none; - color: inherit; - direction: ltr; + padding: 15px 10px; + text-align: match-parent; + text-overflow: ellipsis; + overflow: hidden; + background: none; + color: inherit; + direction: ltr; } .pref-value { - flex: 1 1 auto; - border: none; - unicode-bidi: plaintext; + flex: 1 1 auto; + border: none; + unicode-bidi: plaintext; } .pref-name[locked] { - -moz-context-properties: fill, fill-opacity; - fill: currentColor; - fill-opacity: 0.8; - background-image: url("chrome://geckoview/skin/images/lock.svg"); - background-repeat: no-repeat; - background-position-y: center; - background-size: 1em; + -moz-context-properties: fill, fill-opacity; + fill: currentColor; + fill-opacity: 0.8; + background-image: url("chrome://geckoview/skin/images/lock.svg"); + background-repeat: no-repeat; + background-position-y: center; + background-size: 1em; } :dir(ltr) > .pref-name[locked] { - background-position-x: right 10px; - padding-right: 30px; + background-position-x: right 10px; + padding-right: 30px; } :dir(rtl) > .pref-name[locked] { - background-position-x: 10px; - padding-left: 30px; + background-position-x: 10px; + padding-left: 30px; } #new-pref-name { - width: 30em; + width: 30em; } #new-pref-type { - appearance: none; - color: inherit; - border-inline-start: 1px solid var(--deemphasized-border-color) !important; - text-align: center; - width: 9em; - padding-inline: 8px; + appearance: none; + color: inherit; + border-inline-start: 1px solid var(--deemphasized-border-color) !important; + text-align: center; + width: 9em; + padding-inline: 8px; } .pref-item-line { - border-top: 1px solid var(--deemphasized-border-color); - color: var(--deemphasized-text-color); - display: flex; + border-top: 1px solid var(--deemphasized-border-color); + color: var(--deemphasized-text-color); + display: flex; } #new-pref-value-boolean { - flex: 1 1 auto; + flex: 1 1 auto; } #new-pref-container .pref-button.toggle { - display: flex; - opacity: 1; - flex: 0 1 auto; - float: right; + display: flex; + opacity: 1; + flex: 0 1 auto; + float: right; } #new-pref-container .pref-button.cancel, #new-pref-container .pref-button.create { - display: inline-block; - opacity: 1; - flex: 1 1 auto; + display: inline-block; + opacity: 1; + flex: 1 1 auto; } .pref-item-line { - pointer-events: none; + pointer-events: none; } #new-pref-container .pref-item-line, .pref-item.selected .pref-item-line, .pref-item:not(.selected) .pref-button.reset { - pointer-events: auto; + pointer-events: auto; } #new-pref-container .pref-button.create[disabled] { - opacity: 0.5; + opacity: 0.5; } .pref-item.selected { - background-color: hsla(0,0%,60%,.2); + background-color: hsla(0, 0%, 60%, 0.2); } .pref-button { - display: inline-flex; - box-sizing: border-box; - align-items: center; - text-align: center; - padding: 10px 1em; - border-inline-start: 1px solid var(--deemphasized-border-color); - opacity: 0; - transition-property: opacity; - transition-duration: 500ms; + display: inline-flex; + box-sizing: border-box; + align-items: center; + text-align: center; + padding: 10px 1em; + border-inline-start: 1px solid var(--deemphasized-border-color); + opacity: 0; + transition-property: opacity; + transition-duration: 500ms; } .pref-item.selected .pref-item-line .pref-button { - opacity: 1; + opacity: 1; } .pref-item:not(.selected) .pref-item-line .pref-button:not(.reset) { - display: none; + display: none; } .pref-item:not(.selected) .pref-button.reset { - opacity: 1; + opacity: 1; } .pref-button:active, #new-pref-type:active { - background-color: hsla(0,0%,60%,.4); + background-color: hsla(0, 0%, 60%, 0.4); } .pref-button[disabled] { - display: none; + display: none; } .pref-button.up, .pref-button.down { - -moz-context-properties: fill, fill-opacity; - fill: var(--text-color); - fill-opacity: 0.8; - background-size: 1em; - background-position: center; - background-repeat: no-repeat; + -moz-context-properties: fill, fill-opacity; + fill: var(--text-color); + fill-opacity: 0.8; + background-size: 1em; + background-position: center; + background-repeat: no-repeat; } .pref-button.up { - background-image: url("chrome://geckoview/skin/images/arrow-up.svg"); + background-image: url("chrome://geckoview/skin/images/arrow-up.svg"); } .pref-button.down { - background-image: url("chrome://geckoview/skin/images/arrow-down.svg"); + background-image: url("chrome://geckoview/skin/images/arrow-down.svg"); } #prefs-shield { - width: 100%; - height: 100%; - background-color: rgba(0,0,0,0.45); - position: fixed; - top: 0; - left: 0; - opacity: 0; - transition-property: opacity; - transition-duration: 500ms; - display: none; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.45); + position: fixed; + top: 0; + left: 0; + opacity: 0; + transition-property: opacity; + transition-duration: 500ms; + display: none; } #prefs-shield[shown] { - display: block; - opacity: 1; + display: block; + opacity: 1; } #loading-container::before { - content: ""; - display: block; - width: 1.25em; - height: 1.25em; - border: 0.15em solid currentColor; - margin: 1em auto; - border-right-color: transparent; - border-radius: 100%; - opacity: 0.8; - animation: 1.1s linear infinite spin; + content: ""; + display: block; + width: 1.25em; + height: 1.25em; + border: 0.15em solid currentColor; + margin: 1em auto; + border-right-color: transparent; + border-radius: 100%; + opacity: 0.8; + animation: 1.1s linear infinite spin; } @keyframes spin { - from { transform: none; } - to { transform: rotate(360deg); } + from { + transform: none; + } + to { + transform: rotate(360deg); + } }