Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | /* ===== console.css ==================================================== |
michael@0 | 6 | == Styles used by the Error Console window. |
michael@0 | 7 | ====================================================================== */ |
michael@0 | 8 | |
michael@0 | 9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
michael@0 | 10 | |
michael@0 | 11 | .console-box { |
michael@0 | 12 | background-color: -moz-Field; |
michael@0 | 13 | color: -moz-FieldText; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | /* ::::: console rows ::::: */ |
michael@0 | 17 | |
michael@0 | 18 | .console-row { |
michael@0 | 19 | border-bottom: 1px solid ThreeDLightShadow; |
michael@0 | 20 | padding: 4px 0px; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | .console-row-icon { |
michael@0 | 24 | padding: 4px; |
michael@0 | 25 | -moz-padding-start: 5px; |
michael@0 | 26 | -moz-box-align: start !important; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | .console-row-msg > label:first-child, |
michael@0 | 30 | .console-row-file > label:first-child { |
michael@0 | 31 | display: none; |
michael@0 | 32 | } |
michael@0 | 33 | |
michael@0 | 34 | .console-time { |
michael@0 | 35 | font-weight: normal !important; |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | .console-icon { |
michael@0 | 39 | list-style-image: inherit; |
michael@0 | 40 | } |
michael@0 | 41 | |
michael@0 | 42 | .console-error-msg { |
michael@0 | 43 | margin-bottom: 2px; |
michael@0 | 44 | } |
michael@0 | 45 | |
michael@0 | 46 | /* ..... error rows ..... */ |
michael@0 | 47 | |
michael@0 | 48 | .console-row-code { |
michael@0 | 49 | padding-top: 3px; |
michael@0 | 50 | padding-bottom: 3px; |
michael@0 | 51 | -moz-padding-start: 3px; |
michael@0 | 52 | -moz-padding-end: 0px; |
michael@0 | 53 | color: #0000BB; |
michael@0 | 54 | font-size: larger; |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | .console-dots, |
michael@0 | 58 | .console-caret { |
michael@0 | 59 | height: 9px; |
michael@0 | 60 | } |
michael@0 | 61 | |
michael@0 | 62 | .console-dots { |
michael@0 | 63 | background: url("chrome://global/skin/console/console-error-dash.gif") repeat-x top; |
michael@0 | 64 | } |
michael@0 | 65 | |
michael@0 | 66 | .console-caret { |
michael@0 | 67 | width: 7px; |
michael@0 | 68 | background: url("chrome://global/skin/console/console-error-caret.gif") no-repeat top; |
michael@0 | 69 | } |
michael@0 | 70 | |
michael@0 | 71 | /* ..... message rows ..... */ |
michael@0 | 72 | |
michael@0 | 73 | .console-row[type="message"] { |
michael@0 | 74 | font-family: monospace; |
michael@0 | 75 | } |
michael@0 | 76 | |
michael@0 | 77 | /* ..... selected state ..... */ |
michael@0 | 78 | |
michael@0 | 79 | .console-row[selected="true"] { |
michael@0 | 80 | background-image: url("chrome://global/skin/console/itemSelected.png"); |
michael@0 | 81 | } |
michael@0 | 82 | |
michael@0 | 83 | .console-row-code[selected="true"], |
michael@0 | 84 | .console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link { |
michael@0 | 85 | color: inherit !important; |
michael@0 | 86 | } |
michael@0 | 87 | |
michael@0 | 88 | /* ::::: icons ::::: */ |
michael@0 | 89 | |
michael@0 | 90 | .console-row[type="error"], |
michael@0 | 91 | .console-row[type="exception"] { |
michael@0 | 92 | list-style-image: url("chrome://global/skin/icons/error-16.png"); |
michael@0 | 93 | } |
michael@0 | 94 | |
michael@0 | 95 | .console-row[type="error"] .console-row-msg, |
michael@0 | 96 | .console-row[type="exception"] .console-row-msg { |
michael@0 | 97 | font-weight: bold; |
michael@0 | 98 | } |
michael@0 | 99 | |
michael@0 | 100 | .console-row[type="warning"] { |
michael@0 | 101 | list-style-image: url("chrome://global/skin/icons/warning-16.png"); |
michael@0 | 102 | } |
michael@0 | 103 | |
michael@0 | 104 | .console-row[type="message"] { |
michael@0 | 105 | list-style-image: url("chrome://global/skin/icons/information-16.png"); |
michael@0 | 106 | } |
michael@0 | 107 | |
michael@0 | 108 | /* ::::: toolbars ::::: */ |
michael@0 | 109 | |
michael@0 | 110 | #TextboxEval { |
michael@0 | 111 | margin: 2px !important; |
michael@0 | 112 | } |
michael@0 | 113 | |
michael@0 | 114 | #ButtonEval { |
michael@0 | 115 | margin-top: 2px !important; |
michael@0 | 116 | margin-bottom: 2px !important; |
michael@0 | 117 | -moz-margin-start: 0px !important; |
michael@0 | 118 | -moz-margin-end: 2px !important; |
michael@0 | 119 | } |
michael@0 | 120 | |
michael@0 | 121 | toolbarseparator { |
michael@0 | 122 | min-height: 1em; |
michael@0 | 123 | } |
michael@0 | 124 | |
michael@0 | 125 | /* Toolbar icons */ |
michael@0 | 126 | |
michael@0 | 127 | #ToolbarMode toolbarbutton { |
michael@0 | 128 | min-width: 57px; |
michael@0 | 129 | padding: 4px !important; |
michael@0 | 130 | } |
michael@0 | 131 | |
michael@0 | 132 | toolbar#ToolbarMode toolbarbutton:active, |
michael@0 | 133 | toolbar#ToolbarMode toolbarbutton[checked="true"] { |
michael@0 | 134 | -moz-padding-start: 5px !important; |
michael@0 | 135 | -moz-padding-end: 3px !important; |
michael@0 | 136 | } |
michael@0 | 137 | |
michael@0 | 138 | |
michael@0 | 139 | toolbar#ToolbarMode toolbarbutton { |
michael@0 | 140 | list-style-image: url("chrome://global/skin/console/console-toolbar.png"); |
michael@0 | 141 | -moz-box-orient: horizontal; |
michael@0 | 142 | padding: 4px !important; |
michael@0 | 143 | } |
michael@0 | 144 | |
michael@0 | 145 | #Console\:modeAll { |
michael@0 | 146 | -moz-image-region: rect(0px 24px 24px 0px); |
michael@0 | 147 | } |
michael@0 | 148 | |
michael@0 | 149 | #Console\:modeAll { |
michael@0 | 150 | -moz-image-region: rect(0px 24px 24px 0px); |
michael@0 | 151 | } |
michael@0 | 152 | |
michael@0 | 153 | #Console\:modeAll:hover, |
michael@0 | 154 | #Console\:modeAll[checked="true"] { |
michael@0 | 155 | -moz-image-region: rect(24px 24px 48px 0px); |
michael@0 | 156 | } |
michael@0 | 157 | |
michael@0 | 158 | #Console\:modeErrors { |
michael@0 | 159 | -moz-image-region: rect(0px 96px 24px 72px); |
michael@0 | 160 | } |
michael@0 | 161 | |
michael@0 | 162 | #Console\:modeErrors:hover, |
michael@0 | 163 | #Console\:modeErrors[checked="true"] { |
michael@0 | 164 | -moz-image-region: rect(24px 96px 48px 72px); |
michael@0 | 165 | } |
michael@0 | 166 | |
michael@0 | 167 | #Console\:modeWarnings { |
michael@0 | 168 | -moz-image-region: rect(0px 72px 24px 48px); |
michael@0 | 169 | } |
michael@0 | 170 | |
michael@0 | 171 | #Console\:modeWarnings:hover, |
michael@0 | 172 | #Console\:modeWarnings[checked="true"] { |
michael@0 | 173 | -moz-image-region: rect(24px 72px 48px 48px); |
michael@0 | 174 | } |
michael@0 | 175 | |
michael@0 | 176 | #Console\:modeMessages { |
michael@0 | 177 | -moz-image-region: rect(0px 48px 24px 24px); |
michael@0 | 178 | } |
michael@0 | 179 | |
michael@0 | 180 | #Console\:modeMessages:hover, |
michael@0 | 181 | #Console\:modeMessages[checked="true"] { |
michael@0 | 182 | -moz-image-region: rect(24px 48px 48px 24px); |
michael@0 | 183 | } |
michael@0 | 184 | |
michael@0 | 185 | #Console\:clear { |
michael@0 | 186 | -moz-image-region: rect(0px 120px 24px 96px); |
michael@0 | 187 | } |
michael@0 | 188 | |
michael@0 | 189 | #Console\:clear:hover, |
michael@0 | 190 | #Console\:clear[checked="true"] { |
michael@0 | 191 | -moz-image-region: rect(24px 120px 48px 96px); |
michael@0 | 192 | } |
michael@0 | 193 | |
michael@0 | 194 | toolbar#ToolbarMode .toolbarbutton-icon { |
michael@0 | 195 | padding: 2px 0 !important; |
michael@0 | 196 | } |
michael@0 | 197 | |
michael@0 | 198 | toolbar#ToolbarMode .toolbarbutton-text { |
michael@0 | 199 | -moz-padding-end: 4px; |
michael@0 | 200 | } |
michael@0 | 201 | |
michael@0 | 202 | |
michael@0 | 203 | /* ::::: Fix Error Console toolbar button text spacing ::::: */ |
michael@0 | 204 | |
michael@0 | 205 | .toolbarbutton-text { |
michael@0 | 206 | -moz-padding-start: 0px; |
michael@0 | 207 | -moz-padding-end: 5px; |
michael@0 | 208 | } |