mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Backed out changeset 5523334143d9 (bug 1719938) for failures on browser_parsable_css.js. CLOSED TREE
This commit is contained in:
parent
5a198fc9d1
commit
5232f16dc4
@ -800,8 +800,11 @@ toolbar:not(#TabsToolbar) > #personal-bookmarks {
|
||||
#pageActionButton[multiple-children] ~ .urlbar-page-action {
|
||||
display: none;
|
||||
}
|
||||
#pageActionButton[multiple-children] {
|
||||
visibility: visible;
|
||||
|
||||
@media (-moz-proton) {
|
||||
#pageActionButton[multiple-children] {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
@media (max-width: 550px) {
|
||||
@ -1240,10 +1243,12 @@ toolbarpaletteitem[dragover] {
|
||||
display: -moz-box;
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
#customization-lwtheme-button > .box-inherit > .button-menu-dropmarker,
|
||||
#customization-uidensity-button > .box-inherit > .button-menu-dropmarker {
|
||||
display: -moz-box;
|
||||
}
|
||||
} /*** END proton ***/
|
||||
|
||||
toolbarpaletteitem[place="palette"] {
|
||||
-moz-box-orient: vertical;
|
||||
@ -1530,8 +1535,13 @@ toolbar[keyNav=true]:not([collapsed=true], [customizing=true]) toolbartabstop {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
.dialogBox {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.dialogBox[resizable="true"] {
|
||||
resize: both;
|
||||
|
@ -124,6 +124,7 @@ ol {
|
||||
border-top: 1px solid var(--in-content-border-color);
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
.login-list-item:not(.selected):hover {
|
||||
background-color: var(--in-content-button-background-hover);
|
||||
color: var(--in-content-button-text-color-hover);
|
||||
@ -132,6 +133,7 @@ ol {
|
||||
.login-list-item:not(.selected):hover:active {
|
||||
background-color: var(--in-content-button-background-active);
|
||||
}
|
||||
} /*** END proton ***/
|
||||
|
||||
.login-list-item.keyboard-selected {
|
||||
border-inline-start-color: var(--in-content-border-color);
|
||||
|
@ -114,12 +114,14 @@
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
.tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line {
|
||||
background-color: var(--identity-icon-color);
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
margin: -3px 2px 0;
|
||||
}
|
||||
} /*** END proton ***/
|
||||
|
||||
.userContext-icon-inprefs {
|
||||
margin-inline: 4px 10px;
|
||||
|
@ -2,6 +2,8 @@
|
||||
* 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/. */
|
||||
|
||||
@media (-moz-proton) {
|
||||
body {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,12 @@
|
||||
* 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 {
|
||||
border-radius: 3.5px;
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
body {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
body {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
outline: 1px dotted;
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
#identity-popup[type="arrow"][side="top"],
|
||||
#identity-popup[type="arrow"][side="bottom"],
|
||||
#notification-popup[type="arrow"][side="top"],
|
||||
@ -58,3 +59,4 @@
|
||||
#protections-popup[type="arrow"][side="right"] {
|
||||
margin-block: calc(-20px + 2 * var(--urlbar-container-padding));
|
||||
}
|
||||
} /** END Proton **/
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
%include ../../shared/customizableui/panelUI.inc.css
|
||||
|
||||
@media (-moz-proton) {
|
||||
#customizationui-widget-panel[viewId="PanelUI-profiler"][type="arrow"][side="top"],
|
||||
#customizationui-widget-panel[viewId="PanelUI-profiler"][type="arrow"][side="bottom"] {
|
||||
margin-inline: -13px;
|
||||
@ -17,6 +18,7 @@
|
||||
#notification-popup {
|
||||
margin-block: -4px;
|
||||
}
|
||||
} /** END Proton **/
|
||||
|
||||
#PlacesToolbar menupopup,
|
||||
#BMB_bookmarksPopup menupopup {
|
||||
|
@ -18,6 +18,7 @@
|
||||
box-shadow: var(--focus-ring-box-shadow);
|
||||
}
|
||||
|
||||
@media (-moz-proton) {
|
||||
#identity-popup[type="arrow"][side="top"],
|
||||
#identity-popup[type="arrow"][side="bottom"],
|
||||
#notification-popup[type="arrow"][side="top"],
|
||||
@ -45,3 +46,4 @@
|
||||
#protections-popup[type="arrow"][side="right"] {
|
||||
margin-block: calc(-16px + 2 * var(--urlbar-container-padding));
|
||||
}
|
||||
} /** END Proton **/
|
||||
|
@ -3,6 +3,7 @@
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
@media not (prefers-contrast) {
|
||||
@media (-moz-proton) {
|
||||
:root:not(:-moz-lwtheme) {
|
||||
--button-primary-bgcolor: rgb(0,97,224);
|
||||
--button-primary-hover-bgcolor: rgb(2,80,187);
|
||||
@ -66,4 +67,5 @@
|
||||
--autocomplete-popup-highlight-color: rgb(21,20,26);
|
||||
--autocomplete-popup-hover-background: rgb(240,240,244);
|
||||
}
|
||||
} /** END Proton **/
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
%include ../../shared/controlcenter/panel.inc.css
|
||||
|
||||
@media (-moz-proton) {
|
||||
#identity-popup[type="arrow"][side="top"],
|
||||
#identity-popup[type="arrow"][side="bottom"],
|
||||
#notification-popup[type="arrow"][side="top"],
|
||||
@ -37,6 +38,7 @@
|
||||
#protections-popup[type="arrow"][side="right"] {
|
||||
margin-block: calc(-20px + 2 * var(--urlbar-container-padding));
|
||||
}
|
||||
} /** END Proton **/
|
||||
|
||||
.protections-popup-tp-switch:-moz-focusring {
|
||||
outline: 1px dotted;
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
%include ../../shared/customizableui/panelUI.inc.css
|
||||
|
||||
@media (-moz-proton) {
|
||||
#customizationui-widget-panel[viewId="PanelUI-profiler"][type="arrow"][side="top"],
|
||||
#customizationui-widget-panel[viewId="PanelUI-profiler"][type="arrow"][side="bottom"] {
|
||||
margin-inline: -13px;
|
||||
@ -17,6 +18,7 @@
|
||||
#notification-popup {
|
||||
margin-block: -4px;
|
||||
}
|
||||
} /** END Proton **/
|
||||
|
||||
/* bookmark panel submenus */
|
||||
|
||||
|
@ -7,7 +7,8 @@
|
||||
.searchbar-engine-one-off-item:-moz-focusring {
|
||||
outline: none;
|
||||
}
|
||||
@media (-moz-os-version: windows-win10) {
|
||||
|
||||
@media (-moz-proton) and (-moz-os-version: windows-win10) {
|
||||
#PopupSearchAutoComplete {
|
||||
/* A border is necessary because the shadow is bottom-right */
|
||||
border-color: var(--menu-border-color);
|
||||
|
@ -27,6 +27,8 @@ const CHROME_ONLY_TOGGLES = [
|
||||
"-moz-gtk-csd-maximize-button",
|
||||
"-moz-gtk-csd-close-button",
|
||||
"-moz-gtk-csd-reversed-placement",
|
||||
"-moz-proton",
|
||||
"-moz-proton-places-tooltip",
|
||||
];
|
||||
|
||||
// Non-parseable queries can be tested directly in
|
||||
|
@ -650,12 +650,37 @@ macro_rules! lnf_int_feature {
|
||||
}};
|
||||
}
|
||||
|
||||
/// bool pref-based features are an slightly less convenient to start using
|
||||
/// version of @supports -moz-bool-pref, but with some benefits, mainly that
|
||||
/// they can support dynamic changes, and don't require a pref lookup every time
|
||||
/// they're used.
|
||||
///
|
||||
/// In order to use them you need to make sure that the pref defined as a static
|
||||
/// pref, with `rust: true`. The feature name needs to be defined in
|
||||
/// `StaticAtoms.py` just like the others. In order to support dynamic changes,
|
||||
/// you also need to add them to kMediaQueryPrefs in nsXPLookAndFeel.cpp
|
||||
macro_rules! bool_pref_feature {
|
||||
($feature_name:expr, $pref:tt) => {{
|
||||
fn __eval(_: &Device, query_value: Option<bool>, _: Option<RangeOrOperator>) -> bool {
|
||||
let value = static_prefs::pref!($pref);
|
||||
query_value.map_or(value, |v| v == value)
|
||||
}
|
||||
|
||||
feature!(
|
||||
$feature_name,
|
||||
AllowsRanges::No,
|
||||
Evaluator::BoolInteger(__eval),
|
||||
ParsingRequirements::CHROME_AND_UA_ONLY,
|
||||
)
|
||||
}};
|
||||
}
|
||||
|
||||
/// Adding new media features requires (1) adding the new feature to this
|
||||
/// array, with appropriate entries (and potentially any new code needed
|
||||
/// to support new types in these entries and (2) ensuring that either
|
||||
/// nsPresContext::MediaFeatureValuesChanged is called when the value that
|
||||
/// would be returned by the evaluator function could change.
|
||||
pub static MEDIA_FEATURES: [MediaFeatureDescription; 58] = [
|
||||
pub static MEDIA_FEATURES: [MediaFeatureDescription; 60] = [
|
||||
feature!(
|
||||
atom!("width"),
|
||||
AllowsRanges::Yes,
|
||||
@ -901,4 +926,6 @@ pub static MEDIA_FEATURES: [MediaFeatureDescription; 58] = [
|
||||
lnf_int_feature!(atom!("-moz-gtk-csd-close-button"), GTKCSDCloseButton),
|
||||
lnf_int_feature!(atom!("-moz-gtk-csd-reversed-placement"), GTKCSDReversedPlacement),
|
||||
lnf_int_feature!(atom!("-moz-system-dark-theme"), SystemUsesDarkTheme),
|
||||
bool_pref_feature!(atom!("-moz-proton"), "browser.proton.enabled"),
|
||||
bool_pref_feature!(atom!("-moz-proton-places-tooltip"), "browser.proton.places-tooltip.enabled"),
|
||||
];
|
||||
|
@ -428,6 +428,8 @@ static constexpr struct {
|
||||
widget::ThemeChangeKind::MediaQueriesOnly;
|
||||
} kMediaQueryPrefs[] = {
|
||||
{"browser.display.windows.native_menus"_ns},
|
||||
{"browser.proton.enabled"_ns},
|
||||
{"browser.proton.places-tooltip.enabled"_ns},
|
||||
// This affects not only the media query, but also the native theme, so we
|
||||
// need to re-layout.
|
||||
{"browser.theme.toolbar-theme"_ns, widget::ThemeChangeKind::AllBits},
|
||||
|
@ -2229,6 +2229,8 @@ STATIC_ATOMS = [
|
||||
Atom("_moz_gtk_csd_maximize_button", "-moz-gtk-csd-maximize-button"),
|
||||
Atom("_moz_gtk_csd_close_button", "-moz-gtk-csd-close-button"),
|
||||
Atom("_moz_gtk_csd_reversed_placement", "-moz-gtk-csd-reversed-placement"),
|
||||
Atom("_moz_proton", "-moz-proton"),
|
||||
Atom("_moz_proton_places_tooltip", "-moz-proton-places-tooltip"),
|
||||
Atom("_moz_toolbar_prefers_color_scheme", "-moz-toolbar-prefers-color-scheme"),
|
||||
Atom("_moz_system_dark_theme", "-moz-system-dark-theme"),
|
||||
# application commands
|
||||
|
Loading…
Reference in New Issue
Block a user