pageInfo.css (4661B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 @import url("chrome://global/skin/global.css"); 6 @namespace html url("http://www.w3.org/1999/xhtml"); 7 8 @media (-moz-platform: macos) { 9 #topBar { 10 position: relative; 11 -moz-window-dragging: drag; 12 border-bottom: 1px solid ThreeDShadow; 13 14 align-items: center; 15 justify-content: center; 16 17 @media not (-moz-mac-tahoe-theme) { 18 &::after { 19 content: ""; 20 position: absolute; 21 inset: 0; 22 appearance: auto; 23 -moz-default-appearance: -moz-window-titlebar; 24 z-index: -1; 25 } 26 } 27 } 28 } 29 30 @media not (-moz-platform: macos) { 31 #topBar { 32 border-bottom: 1px solid ThreeDShadow; 33 padding-inline-start: 10px; 34 background-color: Field; 35 color: FieldText; 36 } 37 } 38 39 /* View buttons */ 40 @media not (-moz-platform: macos) { 41 #viewGroup > radio { 42 appearance: none; 43 list-style-image: none; 44 min-width: 4.5em; 45 margin: 0; 46 padding: 3px; 47 } 48 49 #viewGroup > radio > .radio-label-box { 50 margin: 0; 51 padding: 0 6px; 52 } 53 54 #viewGroup:focus-visible > radio[focused="true"] > .radio-label-box { 55 outline: var(--default-focusring); 56 } 57 58 #viewGroup .radio-icon { 59 background-image: url("chrome://browser/skin/pageInfo.png"); 60 width: 32px; 61 height: 32px; 62 /* Avoid anti-aliasing seams in HiDPI */ 63 image-rendering: crisp-edges; 64 } 65 66 #generalTab .radio-icon { 67 background-position-x: 0; 68 } 69 70 #mediaTab .radio-icon { 71 background-position-x: -32px; 72 } 73 74 #permTab .radio-icon { 75 background-position-x: -96px; 76 } 77 78 #securityTab .radio-icon { 79 background-position-x: -128px; 80 } 81 } 82 83 @media (-moz-platform: linux) { 84 #viewGroup > radio { 85 color: FieldText; 86 } 87 88 #viewGroup > radio[selected] { 89 background-color: SelectedItem; 90 color: SelectedItemText; 91 } 92 } 93 94 @media (-moz-platform: windows) { 95 #viewGroup { 96 padding-inline-start: 10px; 97 } 98 99 #viewGroup > radio:hover { 100 background-color: #e0e8f6; 101 color: black; 102 } 103 104 #viewGroup > radio[selected] { 105 background-color: #c1d2ee; 106 color: black; 107 } 108 109 #viewGroup > radio:is(:hover, [selected]) .radio-icon { 110 background-position-y: -32px; 111 } 112 } 113 114 @media (-moz-platform: macos) { 115 #viewGroup { 116 margin: 4px 0 9px; 117 118 > radio, 119 > toolbarbutton { 120 flex-direction: column; 121 align-items: center; 122 font: menu; 123 margin: 0 2px; 124 padding: 3px 6px; 125 border-radius: var(--border-radius-xsmall); 126 127 &:hover, 128 &[selected] { 129 color: var(--button-text-color-hover); 130 background-color: var(--button-background-color-hover); 131 } 132 133 &:hover:active { 134 color: var(--button-text-color-active); 135 background-color: var(--button-background-color-active); 136 } 137 } 138 } 139 } 140 141 /* Misc */ 142 tree { 143 margin: 0.5em; 144 } 145 146 html|input { 147 background: transparent; 148 border: none; 149 padding: 0 var(--space-small); 150 outline-offset: var(--focus-outline-offset); 151 } 152 153 html|input.header { 154 margin-inline-start: 0; 155 } 156 157 #imagecontainerbox { 158 margin: 0.5em; 159 background: white; 160 overflow: auto; 161 border: 1px solid ThreeDLightShadow; 162 } 163 164 html|input:disabled { 165 font-style: italic; 166 } 167 168 @media (-moz-platform: macos) { 169 .help-button { 170 appearance: auto; 171 -moz-default-appearance: -moz-mac-help-button; 172 173 .button-text { 174 visibility: hidden; 175 } 176 } 177 } 178 179 /* General Tab */ 180 181 @media (-moz-platform: linux) { 182 #generalPanel > #titletext { 183 margin-inline-start: 5px; 184 } 185 } 186 187 #securityBox description { 188 margin-inline-start: 10px; 189 } 190 191 #general-security-identity { 192 white-space: pre-wrap; 193 line-height: 2em; 194 } 195 196 /* Media Tab */ 197 #imagetree { 198 min-height: 10em; 199 margin-block: 2px 0; 200 } 201 202 #mediaSplitter { 203 background: none; 204 appearance: none; 205 border-style: none; 206 } 207 208 @media not (-moz-platform: macos) { 209 #mediaSplitter { 210 height: 0.8em; 211 } 212 } 213 214 #mediaTable { 215 margin-bottom: 2em; 216 } 217 218 #mediaLabelColumn { 219 min-width: 10em; 220 } 221 222 treechildren::-moz-tree-cell-text(broken) { 223 font-style: italic; 224 color: graytext; 225 } 226 227 /* Permissions Tab */ 228 229 #permList { 230 appearance: auto; 231 -moz-default-appearance: listbox; 232 margin: 0.5em; 233 overflow: auto; 234 background-color: Field; 235 color: FieldText; 236 border: 1px solid ThreeDShadow; 237 } 238 239 .permission { 240 padding: 6px 7px; 241 border-bottom: 1px dotted ThreeDShadow; 242 } 243 244 .permissionLabel { 245 font-weight: var(--font-weight-bold); 246 } 247 248 .permission:hover { 249 background-color: -moz-dialog; 250 color: -moz-DialogText; 251 } 252 253 /* Security Tab */ 254 255 #securityPanel table { 256 margin-bottom: 1em; 257 }