Skip to content

Commit

Permalink
Bug 1400810 - fix context menus looking squashed while retaining chan…
Browse files Browse the repository at this point in the history
…ges to shortcut and footer alignment, r=johannh

MozReview-Commit-ID: GPAEdE7eMxk
  • Loading branch information
gijsk committed Sep 18, 2017
1 parent 5c50d0d commit 4c27bdf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions browser/themes/shared/customizableui/panelUI.inc.css
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ panelview {
-moz-box-flex: 1;
}
.cui-widget-panelview .subviewbutton.panel-subview-footer .menu-accel-container {
-moz-box-pack: end;
}
#appMenu-popup > arrowscrollbox > autorepeatbutton,
#PanelUI-popup > arrowscrollbox > autorepeatbutton {
display: none;
Expand Down Expand Up @@ -1260,6 +1256,7 @@ panelview .toolbarbutton-1,
.subviewbutton.panel-subview-footer > .menu-text {
-moz-appearance: none;
padding-inline-end: 6px;
padding-inline-start: 0 !important; /* to override menu.css on Windows */
-moz-box-flex: 0;
}

Expand All @@ -1271,6 +1268,11 @@ panelview .toolbarbutton-1,
padding-inline-start: 6px;
}

.subviewbutton > .menu-accel-container > .menu-iconic-accel,
.subviewbutton > .menu-accel-container > .menu-accel {
margin-inline-end: 0 !important; /* to override menu.css on Windows */
}

#widget-overflow-fixed-list .toolbarbutton-1 > .toolbarbutton-text,
#widget-overflow-list .toolbarbutton-1 > .toolbarbutton-text,
.subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text,
Expand Down Expand Up @@ -1513,7 +1515,7 @@ menuitem.panel-subview-footer@menuStateActive@,
}

.subviewbutton > .menu-accel-container {
-moz-box-pack: start;
-moz-box-pack: end;
margin-inline-start: 10px;
margin-inline-end: auto;
color: GrayText;
Expand Down
2 changes: 2 additions & 0 deletions toolkit/themes/windows/global/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ menuitem.spell-suggestion {
}

.menu-text {
padding-inline-start: 1.45em !important;
-moz-appearance: menuitemtext;
}

Expand All @@ -84,6 +85,7 @@ menucaption > .menu-iconic-text {
.menu-iconic-accel {
color: inherit;
margin-inline-start: 0.74em !important;
margin-inline-end: 1.35em !important;
}

.menu-iconic-left {
Expand Down

0 comments on commit 4c27bdf

Please sign in to comment.