Bug 1905311 - Move / remove the rest of browser/base/content/browser.css. r=desktop-theme-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D215190
This commit is contained in:
Dão Gottwald 2024-07-01 09:27:17 +00:00
parent 6d9d9d8836
commit 1c9dd74f04
7 changed files with 38 additions and 74 deletions

View File

@ -3,9 +3,6 @@
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
type="text/css"?>
<!-- Firefox searchbar -->
<?xml-stylesheet href="chrome://browser/content/browser.css"
type="text/css"?>
<!-- SeaMonkey searchbar -->
<?xml-stylesheet href="chrome://navigator/content/navigator.css"
type="text/css"?>

View File

@ -3,9 +3,6 @@
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
type="text/css"?>
<!-- Firefox searchbar -->
<?xml-stylesheet href="chrome://browser/content/browser.css"
type="text/css"?>
<!-- SeaMonkey searchbar -->
<?xml-stylesheet href="chrome://navigator/content/navigator.css"
type="text/css"?>

View File

@ -3,10 +3,6 @@
<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"
type="text/css"?>
<!-- Firefox toolbar -->
<?xml-stylesheet href="chrome://browser/content/browser.css"
type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
title="Accessible XUL checkbox and radio hierarchy tests">

View File

@ -1,50 +0,0 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
@namespace html url("http://www.w3.org/1999/xhtml");
/* Hide menu elements intended for keyboard access support */
#main-menubar[openedwithkey=false] .show-only-for-keyboard {
display: none;
}
#navigator-toolbox ,
#mainPopupSet {
min-width: 1px;
}
/* History Swipe Animation */
#historySwipeAnimationContainer {
overflow: hidden;
pointer-events: none;
}
#invalid-form-popup {
white-space: pre-wrap;
word-break: break-word;
unicode-bidi: plaintext;
> description {
max-width: 280px;
}
}
.popup-notification-invalid-input {
box-shadow: 0 0 1.5px 1px red;
}
.popup-notification-invalid-input[focused] {
box-shadow: 0 0 2px 2px rgba(255,0,0,0.4);
}
.popup-notification-description[popupid=webauthn-prompt-register-direct] {
white-space: pre-line;
}
/* Screenshots */
#screenshotsPagePanel {
position: relative;
max-height: 0;
}

View File

@ -38,7 +38,6 @@
both "content" and "skin" packages, which bug 1385444 will unify later. -->
<link rel="stylesheet" href="chrome://global/skin/global.css" />
<link rel="stylesheet" href="chrome://browser/content/browser.css" />
<link
rel="stylesheet"
href="chrome://browser/content/downloads/downloads.css"

View File

@ -33,7 +33,6 @@ browser.jar:
content/browser/aboutTabCrashed.js (content/aboutTabCrashed.js)
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
content/browser/blanktab.html (content/blanktab.html)
content/browser/browser.css (content/browser.css)
content/browser/browser.js (content/browser.js)
* content/browser/browser.xhtml (content/browser.xhtml)
content/browser/browser-a11yUtils.js (content/browser-a11yUtils.js)

View File

@ -340,6 +340,11 @@ body {
}
}
/* Hide menu elements intended for keyboard access support */
#main-menubar[openedwithkey=false] .show-only-for-keyboard {
display: none;
}
/* Navigation toolbar */
#nav-bar {
@ -592,15 +597,18 @@ menupopup::part(drop-indicator) {
height: 16px;
}
/* End private browsing indicator */
/* Content analysis indicator */
:root:not([contentanalysisactive]) #content-analysis-indicator {
display: none;
}
/* End content analysis indicator */
/* Various panels and popup notifications */
#screenshotsPagePanel {
position: relative;
max-height: 0;
}
/* Override theme colors since the picker uses extra colors that
themes cannot set */
@ -622,6 +630,28 @@ menupopup::part(drop-indicator) {
margin: 2px 4px;
}
#invalid-form-popup {
white-space: pre-wrap;
word-break: break-word;
unicode-bidi: plaintext;
> description {
max-width: 280px;
}
}
.popup-notification-invalid-input {
box-shadow: 0 0 1.5px 1px red;
&[focused] {
box-shadow: 0 0 2px 2px rgba(255,0,0,0.4);
}
}
.popup-notification-description[popupid="webauthn-prompt-register-direct"] {
white-space: pre-line;
}
/* Contextual Feature Recommendation popup-notification */
#cfr-notification-header {
@ -908,15 +938,6 @@ menupopup::part(drop-indicator) {
flex-grow: 1;
}
/* nhnt11: Workaround to insert a linebreak after the DoH doorhanger's title.
* The title uses the inline <b> that usually contains the hostname for
* permission prompts to achieve bold formatting. This is always the 2nd child.
*/
.popup-notification-description[popupid="doh-first-time"] > b:first-of-type {
display: block;
margin-bottom: 4px; /* matches the margin-bottom on description elements */
}
/* Sharing tabs warning */
#sharing-tabs-warning-panel {
@ -1145,6 +1166,11 @@ popupnotificationcontent {
/* History swipe navigation animation */
#historySwipeAnimationContainer {
overflow: hidden;
pointer-events: none;
}
#historySwipeAnimationPreviousArrow,
#historySwipeAnimationNextArrow {
--swipe-nav-icon-primary-color: SelectedItemText;