browser/themes/windows/customizableui/panelUIOverlay.css

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 %include ../../shared/customizableui/panelUIOverlay.inc.css
michael@0 6
michael@0 7 #PanelUI-contents #zoom-out-btn {
michael@0 8 padding-left: 12px;
michael@0 9 padding-right: 12px;
michael@0 10 }
michael@0 11
michael@0 12 #PanelUI-contents #zoom-in-btn {
michael@0 13 padding-left: 12px;
michael@0 14 padding-right: 12px;
michael@0 15 }
michael@0 16
michael@0 17 /* bookmark panel submenus */
michael@0 18
michael@0 19 #BMB_bookmarksPopup menupopup[placespopup=true] {
michael@0 20 -moz-appearance: none;
michael@0 21 background: transparent;
michael@0 22 border: none;
michael@0 23 padding: 6px;
michael@0 24 }
michael@0 25
michael@0 26 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox {
michael@0 27 /* emulating chrome://browser/content/places/menu.xml#places-popup-arrow but without the arrow */
michael@0 28 box-shadow: 0 0 4px rgba(0,0,0,0.2);
michael@0 29 background: #FFF;
michael@0 30 border: 1px solid rgba(0,0,0,0.25);
michael@0 31 border-radius: 3.5px;
michael@0 32 margin-top: -4px;
michael@0 33 }
michael@0 34
michael@0 35 #BMB_bookmarksPopup menupopup {
michael@0 36 padding-top: 2px;
michael@0 37 }
michael@0 38
michael@0 39 /* Add some space at the top because there are no headers: */
michael@0 40 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox {
michael@0 41 padding-top: 4px;
michael@0 42 }
michael@0 43
michael@0 44 #BMB_bookmarksPopup .menu-text {
michael@0 45 color: #000;
michael@0 46 }
michael@0 47
michael@0 48 #BMB_bookmarksPopup .subviewbutton[disabled=true] > .menu-text {
michael@0 49 color: #6d6d6d;
michael@0 50 }
michael@0 51
michael@0 52 /* bookmark panel separator */
michael@0 53 #BMB_bookmarksPopup menuseparator {
michael@0 54 padding-top: 0;
michael@0 55 padding-bottom: 0;
michael@0 56 }
michael@0 57
michael@0 58 .subviewbutton > .menu-right,
michael@0 59 .subviewbutton > .menu-iconic-left {
michael@0 60 padding-top: 1px;
michael@0 61 margin-top: 1px;
michael@0 62 margin-bottom: 2px;
michael@0 63 }
michael@0 64
michael@0 65 /* Disabled empty item looks too small otherwise, because it has no icon. */
michael@0 66 menuitem.subviewbutton[disabled]:not(.menuitem-iconic),
michael@0 67 /* Same for checkbox menu items, whose icons lose size due to -moz-appearance: none: */
michael@0 68 menuitem[type="checkbox"].subviewbutton {
michael@0 69 /* This is 16px for an icon + 3px for its margins + 1px for its padding +
michael@0 70 * 2px for its border, see above */
michael@0 71 min-height: 22px;
michael@0 72 }
michael@0 73
michael@0 74 .subviewbutton > .toolbarbutton-text {
michael@0 75 padding-top: 3px;
michael@0 76 padding-bottom: 3px;
michael@0 77 }
michael@0 78
michael@0 79 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button {
michael@0 80 -moz-appearance: none;
michael@0 81 border: 0;
michael@0 82 -moz-margin-start: 3px;
michael@0 83 }
michael@0 84
michael@0 85 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
michael@0 86 padding: 0 2px;
michael@0 87 -moz-padding-start: 0;
michael@0 88 height: 18px;
michael@0 89 }
michael@0 90
michael@0 91 .widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
michael@0 92 padding: 0 6px;
michael@0 93 }
michael@0 94
michael@0 95 .subviewbutton > .toolbarbutton-text {
michael@0 96 -moz-padding-start: 16px;
michael@0 97 }
michael@0 98
michael@0 99 .subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item) > .toolbarbutton-text {
michael@0 100 -moz-padding-start: 0;
michael@0 101 }
michael@0 102
michael@0 103 .subviewbutton.bookmark-item > .toolbarbutton-icon {
michael@0 104 -moz-margin-start: 3px;
michael@0 105 }
michael@0 106
michael@0 107 /* subviewbutton entries for social sidebars have images that come from external
michael@0 108 /* sources, and are not guaranteed to be the size we want, so force the size on
michael@0 109 /* those icons. */
michael@0 110 toolbarbutton.social-provider-menuitem > .toolbarbutton-icon {
michael@0 111 width: 16px;
michael@0 112 height: 16px;
michael@0 113 }
michael@0 114
michael@0 115 .subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item)[checked="true"] > .toolbarbutton-icon {
michael@0 116 visibility: hidden;
michael@0 117 }
michael@0 118
michael@0 119 menu.subviewbutton > .menu-right {
michael@0 120 -moz-appearance: none;
michael@0 121 list-style-image: url(chrome://browser/skin/places/bookmarks-menu-arrow.png);
michael@0 122 -moz-image-region: rect(0, 16px, 16px, 0);
michael@0 123 }
michael@0 124
michael@0 125 menu[disabled="true"].subviewbutton > .menu-right {
michael@0 126 -moz-image-region: rect(0, 32px, 16px, 16px);
michael@0 127 }
michael@0 128
michael@0 129 %ifdef WINDOWS_AERO
michael@0 130 /* Win8 and beyond. */
michael@0 131 @media not all and (-moz-os-version: windows-vista) {
michael@0 132 @media not all and (-moz-os-version: windows-win7) {
michael@0 133 panelview .toolbarbutton-1,
michael@0 134 .subviewbutton,
michael@0 135 .widget-overflow-list .toolbarbutton-1,
michael@0 136 .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button,
michael@0 137 #BMB_bookmarksPopup menupopup[placespopup=true] > hbox,
michael@0 138 #edit-controls@inAnyPanel@,
michael@0 139 #zoom-controls@inAnyPanel@,
michael@0 140 #edit-controls@inAnyPanel@ > toolbarbutton,
michael@0 141 #zoom-controls@inAnyPanel@ > toolbarbutton {
michael@0 142 border-radius: 0;
michael@0 143 }
michael@0 144 }
michael@0 145 }
michael@0 146 %endif

mercurial