1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/themes/windows/customizableui/panelUIOverlay.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,146 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +%include ../../shared/customizableui/panelUIOverlay.inc.css 1.9 + 1.10 +#PanelUI-contents #zoom-out-btn { 1.11 + padding-left: 12px; 1.12 + padding-right: 12px; 1.13 +} 1.14 + 1.15 +#PanelUI-contents #zoom-in-btn { 1.16 + padding-left: 12px; 1.17 + padding-right: 12px; 1.18 +} 1.19 + 1.20 +/* bookmark panel submenus */ 1.21 + 1.22 +#BMB_bookmarksPopup menupopup[placespopup=true] { 1.23 + -moz-appearance: none; 1.24 + background: transparent; 1.25 + border: none; 1.26 + padding: 6px; 1.27 +} 1.28 + 1.29 +#BMB_bookmarksPopup menupopup[placespopup=true] > hbox { 1.30 + /* emulating chrome://browser/content/places/menu.xml#places-popup-arrow but without the arrow */ 1.31 + box-shadow: 0 0 4px rgba(0,0,0,0.2); 1.32 + background: #FFF; 1.33 + border: 1px solid rgba(0,0,0,0.25); 1.34 + border-radius: 3.5px; 1.35 + margin-top: -4px; 1.36 +} 1.37 + 1.38 +#BMB_bookmarksPopup menupopup { 1.39 + padding-top: 2px; 1.40 +} 1.41 + 1.42 +/* Add some space at the top because there are no headers: */ 1.43 +#BMB_bookmarksPopup menupopup[placespopup=true] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox { 1.44 + padding-top: 4px; 1.45 +} 1.46 + 1.47 +#BMB_bookmarksPopup .menu-text { 1.48 + color: #000; 1.49 +} 1.50 + 1.51 +#BMB_bookmarksPopup .subviewbutton[disabled=true] > .menu-text { 1.52 + color: #6d6d6d; 1.53 +} 1.54 + 1.55 +/* bookmark panel separator */ 1.56 +#BMB_bookmarksPopup menuseparator { 1.57 + padding-top: 0; 1.58 + padding-bottom: 0; 1.59 +} 1.60 + 1.61 +.subviewbutton > .menu-right, 1.62 +.subviewbutton > .menu-iconic-left { 1.63 + padding-top: 1px; 1.64 + margin-top: 1px; 1.65 + margin-bottom: 2px; 1.66 +} 1.67 + 1.68 +/* Disabled empty item looks too small otherwise, because it has no icon. */ 1.69 +menuitem.subviewbutton[disabled]:not(.menuitem-iconic), 1.70 +/* Same for checkbox menu items, whose icons lose size due to -moz-appearance: none: */ 1.71 +menuitem[type="checkbox"].subviewbutton { 1.72 + /* This is 16px for an icon + 3px for its margins + 1px for its padding + 1.73 + * 2px for its border, see above */ 1.74 + min-height: 22px; 1.75 +} 1.76 + 1.77 +.subviewbutton > .toolbarbutton-text { 1.78 + padding-top: 3px; 1.79 + padding-bottom: 3px; 1.80 +} 1.81 + 1.82 +.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button { 1.83 + -moz-appearance: none; 1.84 + border: 0; 1.85 + -moz-margin-start: 3px; 1.86 +} 1.87 + 1.88 +.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { 1.89 + padding: 0 2px; 1.90 + -moz-padding-start: 0; 1.91 + height: 18px; 1.92 +} 1.93 + 1.94 +.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { 1.95 + padding: 0 6px; 1.96 +} 1.97 + 1.98 +.subviewbutton > .toolbarbutton-text { 1.99 + -moz-padding-start: 16px; 1.100 +} 1.101 + 1.102 +.subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item) > .toolbarbutton-text { 1.103 + -moz-padding-start: 0; 1.104 +} 1.105 + 1.106 +.subviewbutton.bookmark-item > .toolbarbutton-icon { 1.107 + -moz-margin-start: 3px; 1.108 +} 1.109 + 1.110 +/* subviewbutton entries for social sidebars have images that come from external 1.111 +/* sources, and are not guaranteed to be the size we want, so force the size on 1.112 +/* those icons. */ 1.113 +toolbarbutton.social-provider-menuitem > .toolbarbutton-icon { 1.114 + width: 16px; 1.115 + height: 16px; 1.116 +} 1.117 + 1.118 +.subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item)[checked="true"] > .toolbarbutton-icon { 1.119 + visibility: hidden; 1.120 +} 1.121 + 1.122 +menu.subviewbutton > .menu-right { 1.123 + -moz-appearance: none; 1.124 + list-style-image: url(chrome://browser/skin/places/bookmarks-menu-arrow.png); 1.125 + -moz-image-region: rect(0, 16px, 16px, 0); 1.126 +} 1.127 + 1.128 +menu[disabled="true"].subviewbutton > .menu-right { 1.129 + -moz-image-region: rect(0, 32px, 16px, 16px); 1.130 +} 1.131 + 1.132 +%ifdef WINDOWS_AERO 1.133 +/* Win8 and beyond. */ 1.134 +@media not all and (-moz-os-version: windows-vista) { 1.135 + @media not all and (-moz-os-version: windows-win7) { 1.136 + panelview .toolbarbutton-1, 1.137 + .subviewbutton, 1.138 + .widget-overflow-list .toolbarbutton-1, 1.139 + .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button, 1.140 + #BMB_bookmarksPopup menupopup[placespopup=true] > hbox, 1.141 + #edit-controls@inAnyPanel@, 1.142 + #zoom-controls@inAnyPanel@, 1.143 + #edit-controls@inAnyPanel@ > toolbarbutton, 1.144 + #zoom-controls@inAnyPanel@ > toolbarbutton { 1.145 + border-radius: 0; 1.146 + } 1.147 + } 1.148 +} 1.149 +%endif