X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fcustomizableui%2FpanelUIOverlay.css;h=4366f6255b98e908f74182616b76c5974fc14a10;hp=b352c18aee417b2a5a72c02833d277d3791ec252;hb=c1d2ce3eaa44d719906dbac174a64279a4094b47;hpb=51994fad8b1af94c4fcd94de0fd52425e4b14ff9 diff --git a/LCARStrek/browser/customizableui/panelUIOverlay.css b/LCARStrek/browser/customizableui/panelUIOverlay.css index b352c18a..4366f625 100644 --- a/LCARStrek/browser/customizableui/panelUIOverlay.css +++ b/LCARStrek/browser/customizableui/panelUIOverlay.css @@ -35,7 +35,7 @@ @keyframes moveX { /* These values are adjusted for the padding on the panel. */ - from { margin-left: -15px; } to { margin-left: calc(100% - 49px); } + from { margin-left: -9px; } to { margin-left: calc(100% - 55px); } } @keyframes moveY { /* These values are adjusted for the padding and height of the panel. */ @@ -75,6 +75,10 @@ panelmultiview[nosubviews=true] > .panel-viewcontainer > .panel-viewstack > .pan -moz-box-flex: 1; } +.subviewbutton:not(:-moz-any([image],[targetURI],.cui-withicon)) > .toolbarbutton-text { + -moz-margin-start: 0; +} + .panel-subview-body { overflow-y: auto; overflow-x: hidden; @@ -145,11 +149,33 @@ panelmultiview[nosubviews=true] > .panel-viewcontainer > .panel-viewstack > .pan .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, .panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text { - margin: 2px 0 0; - text-align: center; +/* line-height: 1.1;*/ + max-height: 2.2em; +} + +.panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, +.panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-multiline-text { -moz-hyphens: auto; } +.panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, +.panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-multiline-text { + position: absolute; + clip: rect(auto, auto, 2.3em, auto); +} + +.panelUI-grid .toolbarbutton-1 > .toolbarbutton-text, +.panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text { + text-align: center; + /* Need to override toolkit theming which sets margin: 0 !important; */ + margin: 2px 0 0 !important; +} + +.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text { + text-align: center; + margin: -1px 0 0; +} + #wrapper-edit-controls:-moz-any([place="palette"],[place="panel"]) > #edit-controls, #wrapper-zoom-controls:-moz-any([place="palette"],[place="panel"]) > #zoom-controls { -moz-margin-start: 0; @@ -167,7 +193,6 @@ panelmultiview[nosubviews=true] > .panel-viewcontainer > .panel-viewstack > .pan panelview:not([mainview]) .toolbarbutton-text, .cui-widget-panel toolbarbutton > .toolbarbutton-text { text-align: start; - -moz-padding-start: 8px; display: -moz-box; } @@ -179,6 +204,14 @@ panelview:not([mainview]) .toolbarbutton-text, padding-bottom: 0; } +.cui-widget-panel > :-moz-any(menu,menuitem,toolbarbutton):first-child { + border-radius: 4px 4px 0 0; +} + +.cui-widget-panel > :-moz-any(menu,menuitem,toolbarbutton):last-child { + border-radius: 0 0 4px 4px; +} + #PanelUI-contents { display: block; flex: auto; @@ -209,6 +242,13 @@ toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-it height: calc(51px + 2.2em); } +/* In order to have button labels constrained appropriately, items inside the toolbarpaletteitem + * should have a min-width set so they abide by the width set above (which they do outside of + * customize mode because they're in a flexed container) */ +toolbarpaletteitem[place="panel"]:not([haswideitem=true]) > .toolbarbutton-1 { + min-width: 0.01px; +} + /* Help SDK buttons fit in. */ toolbarpaletteitem[place="palette"] > toolbarbutton[sdk-button="true"] > .toolbarbutton-icon, toolbarbutton[sdk-button="true"][cui-areatype="menu-panel"] > .toolbarbutton-icon { @@ -288,6 +328,18 @@ toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"] > iframe { margin: 4px auto; } +#PanelUI-multiView[viewtype="subview"] > .panel-viewcontainer > .panel-viewstack > .panel-mainview > #PanelUI-mainView { +} + +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .panel-wide-item, +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .toolbarbutton-1:not([panel-multiview-anchor="true"]), +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-fxa-status, +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > toolbarseparator, +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-customize, +#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-help:not([panel-multiview-anchor="true"]) { + opacity: .5; +} + /* * XXXgijs: this is a workaround for a layout issue that was caused by these iframes, * which was affecting subview display. Because of this, we're hiding the iframe *only* @@ -381,6 +433,10 @@ toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton { border-top: 1px solid #9C9CFF; } +#PanelUI-multiView[viewtype="subview"] #PanelUI-footer-inner { + position: relative; +} + #PanelUI-footer-inner > toolbarseparator { border: 0; border-left: 1px solid #9C9CFF; @@ -399,8 +455,7 @@ toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton { padding: 10px 0; min-height: 2em; box-shadow: none; - background-image: none; - border: none; + border: none; border-radius: 0; transition: background-color; -moz-box-orient: horizontal; @@ -416,6 +471,10 @@ toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton { width: 0; /* Fancy cropping solution for flexbox. */ } +#PanelUI-help[panel-multiview-anchor="true"] { + -moz-image-region: rect(0, 32px, 16px, 16px); +} + #PanelUI-help, #PanelUI-quit { min-width: 44px; @@ -558,8 +617,8 @@ panelview .toolbarbutton-1, } .subviewbutton.panel-subview-footer { -/* border-radius: 0;*/ - border: none; +/* border-radius: 0; */ + margin: 2px 0 0; } .subviewbutton.panel-subview-footer > .menu-text { @@ -584,7 +643,7 @@ panelview .toolbarbutton-1, } .subviewbutton:not(.panel-subview-footer) { -/* margin: 2px 0;*/ + margin: 0; } .subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text, @@ -611,8 +670,8 @@ panelview .toolbarbutton-1, } .cui-widget-panelview .subviewbutton:not(.panel-subview-footer) { - margin-left: 4px; - margin-right: 4px; +/* margin-left: 4px; + margin-right: 4px;*/ } panelview .toolbarbutton-1, @@ -621,28 +680,28 @@ panelview .toolbarbutton-1, } /* -panelview .toolbarbutton-1:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]), -toolbarbutton.subviewbutton:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]), -menu.subviewbutton:not(:-moz-any([disabled],:active))[_moz-menuactive], -menuitem.subviewbutton:not(:-moz-any([disabled],:active))[_moz-menuactive], -.widget-overflow-list .toolbarbutton-1:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]), +panelview .toolbarbutton-1:not(:-moz-any([disabled],[open],[checked="true"],:active)):hover, +toolbarbutton.subviewbutton:not(:-moz-any([disabled],[open],[checked="true"],:active)):hover, +menu.subviewbutton:not(:-moz-any([disabled],[checked="true"],:active))[_moz-menuactive], +menuitem.subviewbutton:not(:-moz-any([disabled],[checked="true"],:active))[_moz-menuactive], +.widget-overflow-list .toolbarbutton-1:not(:-moz-any([disabled],[open],[checked="true"],:active)):hover, .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton:not(:-moz-any([disabled],[checked="true"],[open],:active)):hover { background-color: hsla(210,4%,10%,.08); border-color: hsla(210,4%,10%,.11); } -.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]):not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]) { +.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]):not(:-moz-any([disabled],[open],[checked="true"],:active)):hover { border-color: hsla(210,4%,10%,.11); } -panelview .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)), -toolbarbutton.subviewbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)), -menu.subviewbutton:not([disabled])[_moz-menuactive]:active, -menuitem.subviewbutton:not([disabled])[_moz-menuactive]:active, -.widget-overflow-list .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)), +panelview .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active), +toolbarbutton.subviewbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active), +menu.subviewbutton:not([disabled]):-moz-any([checked="true"],[_moz-menuactive]:active), +menuitem.subviewbutton:not([disabled]):-moz-any([checked="true"],[_moz-menuactive]:active), +.widget-overflow-list .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active), .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) - > toolbarbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)) { + > toolbarbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active) { background-color: hsla(210,4%,10%,.12); border-color: hsla(210,4%,10%,.14); box-shadow: 0 1px 0 hsla(210,4%,10%,.03) inset; @@ -695,8 +754,17 @@ menuitem.panel-subview-footer:not([disabled]):-moz-any([open],[checked="true"],: } #BMB_bookmarksPopup menupopup > .bookmarks-actions-menuseparator { - / Hide bottom separator as the styled footer includes a top border serving the same purpose / - display: none; + / Hide bottom separator as the styled footer includes a top border serving the same purpose. + * We can't just use display: none here, otherwise scrollbox.xml will flip out and sometimes + * refuse to scroll for us (see bug 984156). Instead, we set it to visibility hidden, force + * a minimum height, and then negative-margin that single pixel into oblivion. That seems + * to be enough to make scrollbox happy. + / + -moz-appearance: none; + visibility: hidden; + min-height: 1px; + margin: -1px 0 0; + border: none; } */ @@ -718,20 +786,20 @@ menuitem.panel-subview-footer:not([disabled]):-moz-any([open],[checked="true"],: .PanelUI-subView menuseparator.small-separator, .PanelUI-subView toolbarseparator.small-separator { - margin-left: 5px; - margin-right: 5px; +/* margin-left: 5px; + margin-right: 5px;*/ } .cui-widget-panelview menuseparator.small-separator { - margin-left: 10px; - margin-right: 10px; +/* margin-left: 10px; + margin-right: 10px;*/ } .subviewbutton > .menu-accel-container { -moz-box-pack: start; -moz-margin-start: 10px; -moz-margin-end: auto; -/* color: hsl(0,0%,50%);*/ + color: #A09090; } #PanelUI-historyItems > toolbarbutton { @@ -745,28 +813,43 @@ menuitem.panel-subview-footer:not([disabled]):-moz-any([open],[checked="true"],: height: 16px; } -#PanelUI-footer > #PanelUI-footer-inner[panel-multiview-anchor=true], -toolbarbutton[panel-multiview-anchor=true] { +toolbarbutton[panel-multiview-anchor="true"], +toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-menubutton-button { + color: #000000; + background-color: #008484; +} + +#PanelUI-help[panel-multiview-anchor="true"] + toolbarseparator { + display: none; +} + +#PanelUI-help[panel-multiview-anchor="true"] { + background-image: none; +} + +#PanelUI-help[panel-multiview-anchor="true"]::after { + content: ""; + position: absolute; + top: 0; + height: 100%; + width: 38px; + background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png"); + background-repeat: no-repeat; background-color: #008484; + background-position: left 10px center, 0; /* this doesn't need to be changed for RTL */ } -toolbarbutton[panel-multiview-anchor=true] { +toolbarbutton[panel-multiview-anchor="true"] { background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png"); background-position: right 5px center; background-repeat: no-repeat; } -toolbarbutton[panel-multiview-anchor=true]:-moz-locale-dir(rtl) { +toolbarbutton[panel-multiview-anchor="true"]:-moz-locale-dir(rtl) { background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted-rtl.png"); background-position: left 5px center; } -#PanelUI-footer > #PanelUI-footer-inner[panel-multiview-anchor=true], -toolbarbutton[panel-multiview-anchor=true], -toolbarbutton[panel-multiview-anchor=true] > .toolbarbutton-menubutton-button { - color: #000000; -} - toolbarpaletteitem[place="palette"] > .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker, #bookmarks-menu-button[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-dropmarker { display: none; @@ -793,6 +876,16 @@ toolbarpaletteitem[place="palette"] > #search-container { transition-duration: 150ms; } +/* Make direct siblings overlap borders: */ +.toolbaritem-combined-buttons + .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) { +/* border-top-color: transparent !important; */ +} + +.toolbaritem-combined-buttons + .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]), +toolbarpaletteitem[haswideitem][place="panel"] + toolbarpaletteitem[haswideitem][place="panel"] { +/* margin-top: -1px; */ +} + .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton { border: 0; padding: .5em;