Changeset 246684 in webkit
- Timestamp:
- Jun 21, 2019 10:53:33 AM (5 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r246672 r246684 1 2019-06-21 Matt Baker <mattbaker@apple.com> 2 3 Web Inspector: remove .legacy-mac/.latest-mac CSS classes, standardize on .latest-mac UI 4 https://bugs.webkit.org/show_bug.cgi?id=199109 5 <rdar://problem/51991129> 6 7 Reviewed by Timothy Hatcher. 8 9 Drop legacy macOS version support from Web Inspector UI. 10 11 * UserInterface/Base/Main.js: 12 13 * UserInterface/Views/DefaultDashboardView.css: 14 (@media (prefers-color-scheme: dark)): 15 (body.latest-mac .toolbar .dashboard .item.button): Deleted. 16 17 * UserInterface/Views/Toolbar.css: 18 (.toolbar): 19 (.toolbar .item.button,): 20 (.toolbar .search-bar > input[type="search"]): 21 (.toolbar .search-bar > input[type="search"]:focus): 22 (@media (-webkit-min-device-pixel-ratio: 2)): 23 (.toolbar .item.button:active): 24 (body.window-inactive .toolbar .item.button,): 25 (@media (prefers-color-scheme: dark)): 26 (.toolbar .search-bar > input[type="search"]::placeholder): 27 (body.window-inactive .toolbar .search-bar > input[type="search"]::placeholder): 28 (body.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button): 29 (.toolbar .dashboard-container): 30 (body .toolbar): Deleted. 31 (body.legacy-mac .toolbar .item.button,): Deleted. 32 (body.legacy-mac .toolbar .search-bar > input[type="search"]): Deleted. 33 (body.legacy-mac .toolbar .search-bar > input[type="search"]:focus): Deleted. 34 (body.legacy-mac .toolbar .item.button:active): Deleted. 35 (body.window-inactive.legacy-mac .toolbar .item.button,): Deleted. 36 (body.latest-mac .toolbar .item.button,): Deleted. 37 (body.latest-mac .toolbar .search-bar > input[type="search"]): Deleted. 38 (body.latest-mac .toolbar .search-bar > input[type="search"]:focus): Deleted. 39 (body.latest-mac .toolbar .item.button:active): Deleted. 40 (body.latest-mac.window-inactive .toolbar .item.button,): Deleted. 41 (body.latest-mac .toolbar .search-bar > input[type="search"]::placeholder): Deleted. 42 (body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::placeholder): Deleted. 43 (body.latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button): Deleted. 44 (body.latest-mac .toolbar .dashboard-container): Deleted. 45 1 46 2019-06-20 Matt Baker <mattbaker@apple.com> 2 47 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r246602 r246684 291 291 document.body.classList.add("nightly-build"); 292 292 293 if (WI.Platform.name === "mac") {293 if (WI.Platform.name === "mac") 294 294 document.body.classList.add(WI.Platform.version.name); 295 296 if (WI.Platform.version.release >= 11)297 document.body.classList.add("latest-mac");298 else299 document.body.classList.add("legacy-mac");300 }301 295 302 296 document.body.classList.add(WI.sharedApp.debuggableType); -
trunk/Source/WebInspectorUI/UserInterface/Views/DefaultDashboardView.css
r242768 r246684 201 201 } 202 202 203 body.latest-mac .toolbar .dashboard .item.button {204 background: unset;205 }206 207 203 .dashboard-container .advance-arrow { 208 204 filter: var(--filter-invert); -
trunk/Source/WebInspectorUI/UserInterface/Views/Toolbar.css
r246666 r246684 39 39 40 40 outline: none; 41 } 42 43 body .toolbar { 41 44 42 background-image: linear-gradient(to bottom, hsl(0, 0%, 92%), hsl(0, 0%, 87%)); 45 43 box-shadow: inset hsla(0, 0%, 100%, 0.5) 0 1px 1px; … … 117 115 } 118 116 119 body.legacy-mac .toolbar .item.button, 120 body.legacy-mac .toolbar .search-bar > input[type="search"], 121 body.legacy-mac .toolbar .dashboard-container { 122 background-color: hsl(0, 0%, 99%); 123 border: 1px solid transparent; 124 border-top-color: hsl(0, 0%, 100%); 125 box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0; 126 border-radius: 4px; 127 } 128 129 body.legacy-mac .toolbar .search-bar > input[type="search"] { 130 box-shadow: 0 0 0 7px hsla(211, 96%, 48%, 0); 131 transition: box-shadow .25s cubic-bezier(0.165, 0.840, 0.440, 1) /* easeOutQuart */; 132 } 133 134 body.legacy-mac .toolbar .search-bar > input[type="search"]:focus { 135 box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0, 0 0 0 3px hsla(211, 96%, 48%, 0.4); 136 } 137 138 body.legacy-mac .toolbar .item.button:active { 139 border-top-color: hsl(0, 0%, 94%); 140 background-color: hsl(0, 0%, 89%); 141 } 142 143 body.window-inactive.legacy-mac .toolbar .item.button, 144 body.window-inactive.legacy-mac .toolbar .search-bar > input[type="search"], 145 body.window-inactive.legacy-mac .toolbar .dashboard-container { 146 border: 1px solid hsl(0, 0%, 86%); 147 background-color: hsl(0, 0%, 96%); 148 box-shadow: none; 149 } 150 151 body.latest-mac .toolbar .item.button, 152 body.latest-mac .toolbar .search-bar > input[type="search"], 153 body.latest-mac .toolbar .dashboard-container { 117 .toolbar .item.button, 118 .toolbar .search-bar > input[type="search"], 119 .toolbar .dashboard-container { 154 120 background-image: linear-gradient(hsl(0, 0%, 99%), var(--panel-background-color)); 155 121 box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px; … … 161 127 } 162 128 163 body.latest-mac.toolbar .search-bar > input[type="search"] {129 .toolbar .search-bar > input[type="search"] { 164 130 box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px, 0 0 0 7px hsla(211, 96%, 48%, 0); 165 131 transition: box-shadow .25s cubic-bezier(0.165, 0.840, 0.440, 1) /* easeOutQuart */; 166 132 } 167 133 168 body.latest-mac.toolbar .search-bar > input[type="search"]:focus {134 .toolbar .search-bar > input[type="search"]:focus { 169 135 box-shadow: hsla(0, 0%, 0%, 0.15) 0 1px 0, 0 0 0 3px hsla(211, 96%, 48%, 0.4); 170 136 } 171 137 172 138 @media (-webkit-min-device-pixel-ratio: 2) { 173 body.latest-mac.toolbar .item.button,174 body.latest-mac.toolbar .search-bar > input[type="search"],175 body.latest-mac.toolbar .dashboard-container {139 .toolbar .item.button, 140 .toolbar .search-bar > input[type="search"], 141 .toolbar .dashboard-container { 176 142 border: 0.5px solid hsl(0, 0%, 78%); 177 143 border-top-color: hsl(0, 0%, 80%); … … 180 146 } 181 147 182 body.latest-mac.toolbar .item.button:active {148 .toolbar .item.button:active { 183 149 background-image: linear-gradient(hsl(0, 0%, 89%), hsl(0, 0%, 86%)); 184 150 box-shadow: hsla(0, 0%, 0%, 0.3) 0 1px 1px -1px, inset 0 1px 1px -1px white; 185 151 } 186 152 187 body. latest-mac.window-inactive .toolbar .item.button,188 body. latest-mac.window-inactive .toolbar .search-bar > input[type="search"],189 body. latest-mac.window-inactive .toolbar .dashboard-container {153 body.window-inactive .toolbar .item.button, 154 body.window-inactive .toolbar .search-bar > input[type="search"], 155 body.window-inactive .toolbar .dashboard-container { 190 156 opacity: 0.65; 191 157 border-color: hsla(0, 0%, 0%, 0.15); … … 195 161 196 162 @media (-webkit-min-device-pixel-ratio: 2) { 197 body. latest-mac.window-inactive .toolbar .item.button,198 body. latest-mac.window-inactive .toolbar .search-bar > input[type="search"],199 body. latest-mac.window-inactive .toolbar .dashboard-container {163 body.window-inactive .toolbar .item.button, 164 body.window-inactive .toolbar .search-bar > input[type="search"], 165 body.window-inactive .toolbar .dashboard-container { 200 166 box-shadow: inset 0 0 1px 0 hsla(0, 0%, 0%, 0.1); 201 167 } … … 209 175 210 176 @media (prefers-color-scheme: dark) { 211 body.toolbar {177 .toolbar { 212 178 background-image: linear-gradient(to bottom, hsl(0, 0%, 26%), hsl(0, 0%, 23%)); 213 179 box-shadow: none; … … 218 184 } 219 185 220 body.latest-mac.toolbar .item.button,221 body.latest-mac.toolbar .search-bar > input[type="search"] {186 .toolbar .item.button, 187 .toolbar .search-bar > input[type="search"] { 222 188 background-image: none; 223 189 background-color: var(--button-background-color); … … 227 193 } 228 194 229 body.latest-mac.toolbar .search-bar > input[type="search"] {195 .toolbar .search-bar > input[type="search"] { 230 196 color: var(--text-color); 231 197 } 232 198 233 body.latest-mac.toolbar .search-bar > input[type="search"]:focus {199 .toolbar .search-bar > input[type="search"]:focus { 234 200 color: var(--text-color-active); 235 201 … … 241 207 } 242 208 243 body.latest-mac.toolbar .search-bar > input[type="search"]::placeholder {209 .toolbar .search-bar > input[type="search"]::placeholder { 244 210 color: var(--text-color-secondary); 245 211 } 246 212 247 body. latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::placeholder {213 body.window-inactive .toolbar .search-bar > input[type="search"]::placeholder { 248 214 color: var(--text-color-tertiary); 249 215 } 250 216 251 body. latest-mac.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button {217 body.window-inactive .toolbar .search-bar > input[type="search"]::-webkit-search-results-button { 252 218 /* Setting `color` has no effect on the magnifying glass icon. */ 253 219 opacity: 0.5; 254 220 } 255 221 256 body.latest-mac.toolbar .dashboard-container {222 .toolbar .dashboard-container { 257 223 background-image: none; 258 224 background-color: var(--dashboard-background-color); … … 262 228 } 263 229 264 body.latest-mac.toolbar .item.button:active {230 .toolbar .item.button:active { 265 231 background-image: none; 266 232 border-top-color: hsla(0, 100%, 100%, 0.2); … … 268 234 } 269 235 270 body. latest-mac.window-inactive .toolbar .item.button,271 body. latest-mac.window-inactive .toolbar .search-bar > input[type="search"],272 body. latest-mac.window-inactive .toolbar .dashboard-container {236 body.window-inactive .toolbar .item.button, 237 body.window-inactive .toolbar .search-bar > input[type="search"], 238 body.window-inactive .toolbar .dashboard-container { 273 239 opacity: 1; 274 240 color: var(--glyph-color);
Note: See TracChangeset
for help on using the changeset viewer.