Changeset 281182 in webkit
- Timestamp:
- Aug 17, 2021 11:50:16 PM (11 months ago)
- Location:
- trunk/Source
- Files:
-
- 9 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/inspector/InspectorFrontendHost.cpp (modified) (1 diff)
-
WebInspectorUI/ChangeLog (modified) (1 diff)
-
WebInspectorUI/UserInterface/Base/Main.js (modified) (1 diff)
-
WebInspectorUI/UserInterface/Views/Main.css (modified) (2 diffs)
-
WebInspectorUI/UserInterface/Views/TabBar.css (modified) (16 diffs)
-
WebInspectorUI/UserInterface/Views/TabBar.js (modified) (11 diffs)
-
WebInspectorUI/UserInterface/Views/TabBarItem.js (modified) (1 diff)
-
WebInspectorUI/UserInterface/Views/Variables.css (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r281157 r281182 1 2021-08-17 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: match the undocked tab bar style when docked bottom/side 4 https://bugs.webkit.org/show_bug.cgi?id=212398 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/InspectorFrontendHost.cpp: 9 (WebCore::InspectorFrontendHost::platformVersionName const): 10 Add macOS Monterey. 11 1 12 2021-08-17 Jer Noble <jer.noble@apple.com> 2 13 -
trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp
r279645 r281182 394 394 String InspectorFrontendHost::platformVersionName() const 395 395 { 396 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000 396 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 397 return "monterey"_s; 398 #elif PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000 397 399 return "big-sur"_s; 398 400 #elif PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 -
trunk/Source/WebInspectorUI/ChangeLog
r281139 r281182 1 2021-08-17 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: match the undocked tab bar style when docked bottom/side 4 https://bugs.webkit.org/show_bug.cgi?id=212398 5 6 Reviewed by Timothy Hatcher. 7 8 This will avoid confusion when switching from docked to undocked (and vice versa) as the tab 9 bar UI will no longer be significantly different. 10 11 * UserInterface/Views/TabBar.js: 12 (WI.TabBar): 13 (WI.TabBar.prototype.layout): 14 (WI.TabBar.prototype.layout.measureWidth): 15 (WI.TabBar.prototype._recordTabBarItemSizesAndPositions): 16 (WI.TabBar.prototype._applyTabBarItemSizesAndPositions): 17 (WI.TabBar.prototype._clearTabBarItemSizesAndPositions): 18 (WI.TabBar.prototype._handleMouseDown): 19 (WI.TabBar.prototype._handleMouseMoved): 20 (WI.TabBar.get horizontalPadding): Deleted. 21 (WI.TabBar.prototype._recordTabBarItemSizesAndPositions.add): Deleted. 22 * UserInterface/Views/TabBar.css: 23 (.tab-bar): 24 (body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar): Added. 25 (body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar): Added. 26 (body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar, body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar): Added. 27 (.tab-bar > .tabs > .item): 28 (body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item): Added. 29 (body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item): Added. 30 (.tab-bar > .tabs:not(.calculate-width) > .item:not(.pinned)): 31 (.tab-bar > .tabs > .item:nth-child(n + 2 of :not(.hidden)), .tab-bar > .tabs:not(.hide-border-start) > .item:nth-child(1 of :not(.hidden)), .tab-bar > .tabs.dragging-tab > .item.selected): 32 (.tab-bar > .tabs:not(.hide-border-end) > .item:nth-last-child(1 of :not(.hidden))): 33 (body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected): Added. 34 (body:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected): Added. 35 (body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected): Added. 36 (body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Added. 37 (body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Added. 38 (.tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover, .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover + .item): 39 (.tab-bar > .tabs:not(.animating) > .item:last-child:not(.selected, .disabled):hover): 40 (body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item, body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item): Added. 41 (body.window-inactive .tab-bar > .tabs > .item): 42 (body.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): 43 (.tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected): 44 (body.window-inactive .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, body.window-inactive .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), body.window-inactive .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected): 45 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar, body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar): Added. 46 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar): Added. 47 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar): Added. 48 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item): Added. 49 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected): Added. 50 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected): Added. 51 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Added. 52 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Added. 53 (@media (prefers-color-scheme: dark) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover > .icon): 54 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar, body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar): Added. 55 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item): Added. 56 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item): Added. 57 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Added. 58 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Added. 59 (body.big-sur .tab-bar): Deleted. 60 (body:not(.docked) .tab-bar): Deleted. 61 (body.big-sur:not(.docked) .tab-bar): Deleted. 62 (body:not(.big-sur):not(.docked) .tab-bar): Deleted. 63 (body.big-sur:not(.docked).window-inactive .tab-bar, body:not(.big-sur):not(.docked).window-inactive .tab-bar): Deleted. 64 (body.docked.window-inactive .tab-bar): Deleted. 65 (body.docked.bottom .tab-bar > .border.top): Deleted. 66 (body.big-sur.docked .tab-bar > .border.bottom): Deleted. 67 (body.docked .tab-bar .tabs): Deleted. 68 (body.docked .tab-bar > .tabs > .flexible-space): Deleted. 69 (body.docked.bottom .tab-bar > .tabs > .flexible-space): Deleted. 70 (body:not(.docked) .tab-bar > .tabs > .item): Deleted. 71 (body.big-sur:not(.docked) .tab-bar > .tabs > .item): Deleted. 72 (body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item): Deleted. 73 (body:not(.docked) .tab-bar > .tabs:not(.calculate-width) > .item:not(.pinned)): Deleted. 74 (body.docked .tab-bar > .tabs > .item): Deleted. 75 (body:not(.docked) .tab-bar > .tabs > .item:nth-child(n + 3 of :not(.hidden)), body:not(.docked) .tab-bar > .tabs:not(.hide-border-start) > .item:nth-child(2 of :not(.hidden)), .tab-bar > .tabs.dragging-tab > .item.selected): Deleted. 76 (body:not(.docked) .tab-bar > .tabs:not(.hide-border-end) > .item:nth-last-child(1 of :not(.hidden))): Deleted. 77 (body.docked .tab-bar > .tabs > .item.pinned): Deleted. 78 (body.big-sur:not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 79 (body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 80 (body.docked .tab-bar > .tabs > .item:not(.disabled):matches(.selected, :hover)): Deleted. 81 (body.docked .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 82 (body.big-sur:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 83 (body:not(.big-sur):not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 84 (body.docked .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 85 (body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover, body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover + .item): Deleted. 86 (body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:last-child:not(.selected, .disabled):hover): Deleted. 87 (body:not(.docked).window-inactive .tab-bar > .tabs > .item): Deleted. 88 (body.big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item, body:not(.big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item): Deleted. 89 (body:not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 90 (body.docked.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 91 (body:not(.docked) .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, body:not(.docked) .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), body:not(.docked) .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected): Deleted. 92 (body:not(.docked).window-inactive .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, body:not(.docked).window-inactive .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), body:not(.docked).window-inactive .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected): Deleted. 93 (@media (prefers-color-scheme: dark) body.big-sur .tab-bar, body:not(.big-sur) .tab-bar): Deleted. 94 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked) .tab-bar): Deleted. 95 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked) .tab-bar): Deleted. 96 (@media (prefers-color-scheme: dark) body.docked .tab-bar): Deleted. 97 (@media (prefers-color-scheme: dark) body.docked.bottom .tab-bar > .border.top): Deleted. 98 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item): Deleted. 99 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 100 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 101 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 102 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 103 (@media (prefers-color-scheme: dark) body.docked .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover): Deleted. 104 (@media (prefers-color-scheme: dark) body.docked .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 105 (@media (prefers-color-scheme: dark) body.docked.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 106 (@media (prefers-color-scheme: dark) body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover > .icon): Deleted. 107 (@media (prefers-color-scheme: dark) body:not(.docked).window-inactive .tab-bar): Deleted. 108 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked).window-inactive .tab-bar, body:not(.big-sur):not(.docked).window-inactive .tab-bar): Deleted. 109 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item): Deleted. 110 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item): Deleted. 111 (@media (prefers-color-scheme: dark) body.big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 112 (@media (prefers-color-scheme: dark) body:not(.big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected): Deleted. 113 * UserInterface/Views/TabBarItem.js: 114 (WI.TabBarItem.get horizontalMargin): Deleted. 115 - remove the flexible space filler elements (and associated CSS) before and after the tabs 116 - remove any `.docked` CSS 117 - remove the (now unnecessary) `:not(.docked)` from all CSS related to the `WI.TabBar` 118 - replace `.big-sur` with `.mac-platform.big-sur` for clarity 119 - add `.mac-platform.monterey` alongside any `.mac-platform.big-sur` 120 121 * UserInterface/Base/Main.js: 122 (WI.undockedTitleAreaHeight): 123 * UserInterface/Views/Main.css: 124 (body:is(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area): Added. 125 (body:not(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area): Added. 126 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area): Added. 127 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area): Added. 128 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive #undocked-title-area): Added. 129 (@media (prefers-color-scheme: dark) body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive #undocked-title-area): Added. 130 (body.big-sur #undocked-title-area): Deleted. 131 (body:not(.big-sur) #undocked-title-area): Deleted. 132 (@media (prefers-color-scheme: dark) body.big-sur #undocked-title-area): Deleted. 133 (@media (prefers-color-scheme: dark) body:not(.big-sur) #undocked-title-area): Deleted. 134 (@media (prefers-color-scheme: dark) body.big-sur.window-inactive #undocked-title-area): Deleted. 135 (@media (prefers-color-scheme: dark) body:not(.big-sur).window-inactive #undocked-title-area): Deleted. 136 * UserInterface/Views/Variables.css: 137 (body:is(.mac-platform.monterey, .mac-platform.big-sur)): Added. 138 (body:not(.mac-platform.monterey, .mac-platform.big-sur):not(.docked)): Added. 139 (body:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked)): Added. 140 (@media (prefers-color-scheme: dark) body:is(.mac-platform.monterey, .mac-platform.big-sur)): Added. 141 (body.big-sur): Deleted. 142 (body.mac-platform:not(.big-sur):not(.docked)): Deleted. 143 (body.mac-platform.big-sur:not(.docked)): Deleted. 144 (@media (prefers-color-scheme: dark) body.big-sur): Deleted. 145 Add support for macOS Monterey. 146 1 147 2021-08-17 Razvan Caliman <rcaliman@apple.com> 2 148 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r276714 r281182 2910 2910 if (WI.Platform.name === "mac") { 2911 2911 switch (WI.Platform.version.name) { 2912 case "monterey": 2912 2913 case "big-sur": 2913 /* keep in sync with `body.mac-platform.big-sur:not(.docked)`*/2914 /* Keep in sync with `--undocked-title-area-height` CSS variable. */ 2914 2915 return 27 / WI.getZoomFactor(); 2915 2916 2916 2917 case "catalina": 2917 2918 case "mojave": 2918 /* keep in sync with `body.mac-platform:not(.big-sur):not(.docked)`*/2919 /* Keep in sync with `--undocked-title-area-height` CSS variable. */ 2919 2920 return 22 / WI.getZoomFactor(); 2920 2921 } -
trunk/Source/WebInspectorUI/UserInterface/Views/Main.css
r279510 r281182 119 119 } 120 120 121 body .big-sur#undocked-title-area {121 body:is(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area { 122 122 --undocked-title-area-background: white; 123 123 } 124 124 125 body:not(. big-sur) #undocked-title-area {125 body:not(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area { 126 126 --undocked-title-area-background: linear-gradient(to bottom, hsl(0, 0%, 92%), hsl(0, 0%, 87%)); 127 127 box-shadow: inset hsla(0, 0%, 100%, 0.5) 0 1px 1px; … … 591 591 } 592 592 593 body .big-sur#undocked-title-area {594 --undocked-title-area-background: hsl(0, 0%, 19%);595 } 596 597 body:not(. big-sur) #undocked-title-area {593 body:is(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area { 594 --undocked-title-area-background: var(--background-color-content); 595 } 596 597 body:not(.mac-platform.monterey, .mac-platform.big-sur) #undocked-title-area { 598 598 --undocked-title-area-background: linear-gradient(to bottom, hsl(0, 0%, 26%), hsl(0, 0%, 23%)); 599 599 } 600 600 601 body .big-sur.window-inactive #undocked-title-area {601 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive #undocked-title-area { 602 602 --undocked-title-area-background: hsl(0, 0%, 11%); 603 603 } 604 604 605 body:not(. big-sur).window-inactive #undocked-title-area {605 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive #undocked-title-area { 606 606 --undocked-title-area-background: hsl(0, 0%, 19%); 607 607 } -
trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.css
r269166 r281182 25 25 26 26 .tab-bar { 27 display: flex; 27 28 position: absolute; 28 29 top: var(--undocked-title-area-height); … … 30 31 right: 0; 31 32 height: var(--tab-bar-height); 32 33 display: flex; 33 background: var(--tab-bar-background); 34 34 35 35 --tab-item-dark-border-color: hsl(0, 0%, 59%); … … 42 42 } 43 43 44 body.big-sur .tab-bar { 44 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar { 45 --tab-bar-background: hsl(0, 0%, 90%); 46 45 47 --tab-item-light-border-color: hsl(0, 0%, 85%); 46 48 --tab-item-medium-border-color: hsl(0, 0%, 85%); … … 48 50 } 49 51 50 body:not(.docked) .tab-bar { 51 background: var(--tab-bar-background); 52 } 53 54 body.big-sur:not(.docked) .tab-bar { 55 --tab-bar-background: hsl(0, 0%, 90%); 56 } 57 58 body:not(.big-sur):not(.docked) .tab-bar { 52 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar { 59 53 background-size: 100% 200%; 60 54 --tab-bar-background: linear-gradient(to bottom, hsl(0, 0%, 78%), hsl(0, 0%, 72%)); 61 55 } 62 56 63 body .big-sur:not(.docked).window-inactive .tab-bar,64 body:not(. big-sur):not(.docked).window-inactive .tab-bar {57 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar, 58 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar { 65 59 --tab-bar-background: hsl(0, 0%, 92%); 66 }67 68 body.docked.window-inactive .tab-bar {69 background-color: var(--background-color-unfocused);70 60 } 71 61 … … 88 78 } 89 79 90 body.docked.bottom .tab-bar > .border.top {91 filter: brightness(80%);92 }93 94 body.big-sur.docked .tab-bar > .border.bottom {95 background-color: var(--border-color);96 }97 98 80 body.window-inactive .tab-bar > .border { 99 81 background-color: var(--tab-item-light-border-color); … … 135 117 } 136 118 137 body.docked .tab-bar .tabs {138 justify-content: space-around;139 padding: 0 4px; /* Keep in sync with `WI.TabBar.horizontalPadding` */140 }141 142 body.docked .tab-bar > .tabs > .flexible-space {143 flex-grow: 1;144 }145 146 body.docked.bottom .tab-bar > .tabs > .flexible-space {147 cursor: row-resize;148 }149 150 119 .tab-bar > .tabs > .item { 151 120 display: flex; … … 164 133 line-height: 15px; 165 134 outline: none; 135 136 border-top: var(--tab-item-medium-border-style); 137 border-bottom: var(--tab-item-medium-border-style); 138 background: var(--tab-item-background); 166 139 167 140 /* FIXME: These cause noticeable transitions when focusing the window. Fix that with JavaScript? */ … … 173 146 } 174 147 175 body:not(.docked) .tab-bar > .tabs > .item { 176 border-top: var(--tab-item-medium-border-style); 177 border-bottom: var(--tab-item-medium-border-style); 178 background: var(--tab-item-background); 179 } 180 181 body.big-sur:not(.docked) .tab-bar > .tabs > .item { 148 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item { 182 149 --tab-item-background: var(--tab-bar-background); 183 150 } 184 151 185 body:not(. big-sur):not(.docked) .tab-bar > .tabs > .item {152 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item { 186 153 background-size: 100% 200%; 187 154 … … 189 156 } 190 157 191 body:not(.docked).tab-bar > .tabs:not(.calculate-width) > .item:not(.pinned) {158 .tab-bar > .tabs:not(.calculate-width) > .item:not(.pinned) { 192 159 flex-grow: 1; 193 }194 195 body.docked .tab-bar > .tabs > .item {196 margin: var(--tab-bar-item-vertical-margin) 2px 0; /* Keep in sync with `WI.TabBarItem.horizontalMargin` */197 198 --tab-bar-item-height: calc(var(--tab-bar-height) - (2 * var(--tab-bar-item-vertical-margin)));199 --tab-bar-item-vertical-margin: 4px;200 160 } 201 161 … … 204 164 } 205 165 206 body:not(.docked) .tab-bar > .tabs > .item:nth-child(n + 3of :not(.hidden)),207 body:not(.docked) .tab-bar > .tabs:not(.hide-border-start) > .item:nth-child(2of :not(.hidden)),208 body:not(.docked).tab-bar > .tabs.dragging-tab > .item.selected {166 .tab-bar > .tabs > .item:nth-child(n + 2 of :not(.hidden)), 167 .tab-bar > .tabs:not(.hide-border-start) > .item:nth-child(1 of :not(.hidden)), 168 .tab-bar > .tabs.dragging-tab > .item.selected { 209 169 border-inline-start: var(--tab-item-medium-border-style); 210 170 } 211 171 212 body:not(.docked).tab-bar > .tabs:not(.hide-border-end) > .item:nth-last-child(1 of :not(.hidden)) {172 .tab-bar > .tabs:not(.hide-border-end) > .item:nth-last-child(1 of :not(.hidden)) { 213 173 border-inline-end: var(--tab-item-medium-border-style); 214 174 } … … 221 181 } 222 182 223 body .docked .tab-bar > .tabs > .item.pinned {224 width: var(--tab-bar-item-height); /* Make pinned tabs square */225 } 226 227 body .big-sur:not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected {183 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected { 184 --tab-item-background: white; 185 } 186 187 body:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected { 228 188 border-top-color: var(--tab-item-background); 229 230 --tab-item-background: white; 231 } 232 233 body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected { 189 } 190 191 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected { 234 192 --tab-item-background: linear-gradient(to bottom, hsl(0, 0%, 87%), hsl(0, 0%, 82%)); 235 193 background-size: 100% 100%; 236 194 } 237 195 238 body.docked .tab-bar > .tabs > .item:not(.disabled):matches(.selected, :hover) { 239 border-radius: var(--tab-bar-item-vertical-margin); 240 } 241 242 body.docked .tab-bar > .tabs > .item:not(.disabled).selected { 243 background-color: lightgrey; 244 } 245 246 body.big-sur:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 196 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 247 197 --tab-item-background: hsl(0, 0%, 84%); 248 198 } 249 199 250 body:not(. big-sur):not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover {200 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 251 201 --tab-item-background: linear-gradient(to bottom, hsl(0, 0%, 67%), hsl(0, 0%, 64%)); 252 202 } 253 203 254 body.docked .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 255 background-color: hsl(0, 0%, 95%); 256 } 257 258 body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover, 259 body:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover + .item { 204 .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover, 205 .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover + .item { 260 206 border-inline-start-color: var(--tab-item-dark-border-color); 261 207 } 262 208 263 body:not(.docked).tab-bar > .tabs:not(.animating) > .item:last-child:not(.selected, .disabled):hover {209 .tab-bar > .tabs:not(.animating) > .item:last-child:not(.selected, .disabled):hover { 264 210 border-inline-end-color: var(--tab-item-dark-border-color); 265 211 } 266 212 267 body:not(.docked).window-inactive .tab-bar > .tabs > .item { 213 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item, 214 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item { 268 215 border-top-color: var(--tab-item-light-border-color); 269 216 border-bottom-color: var(--tab-item-light-border-color); … … 274 221 } 275 222 276 body.big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item, 277 body:not(.big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item { 223 body.window-inactive .tab-bar > .tabs > .item { 278 224 --tab-item-background: hsl(0, 0%, 92%); 279 225 } 280 226 281 body :not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected {227 body.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected { 282 228 --tab-item-background: hsl(0, 0%, 96%); 283 }284 285 body.docked .tab-bar > .tabs > .item:not(.disabled):matches(.selected, :hover) {286 box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.15) inset;287 }288 289 body.docked.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected {290 background-color: hsl(0, 0%, 90%);291 229 } 292 230 … … 395 333 } 396 334 397 body:not(.docked).tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected,398 body:not(.docked).tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)),399 body:not(.docked).tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected {335 .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, 336 .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), 337 .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected { 400 338 border-right: var(--tab-item-medium-border-style); 401 339 } 402 340 403 body :not(.docked).window-inactive .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected,404 body :not(.docked).window-inactive .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)),405 body :not(.docked).window-inactive .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected {341 body.window-inactive .tab-bar > .tabs.dragging-tab > .item:not(.disabled).selected, 342 body.window-inactive .tab-bar > .tabs.static-layout:not(.animating.inserting-tab):not(.dragging-tab) > .item:nth-last-child(1 of :not(.pinned)), 343 body.window-inactive .tab-bar > .tabs.animating.closing-tab > .item:not(.disabled).selected { 406 344 border-right-color: var(--tab-item-light-border-color); 407 345 } … … 413 351 414 352 @media (prefers-color-scheme: dark) { 415 body .big-sur.tab-bar,416 body:not(. big-sur) .tab-bar {353 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar, 354 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar { 417 355 /* FIXME: <https://webkit.org/b/189769> Dark Mode: use semantic color names */ 418 356 --tab-item-dark-border-color: var(--tab-item-border-color); … … 422 360 } 423 361 424 body .big-sur:not(.docked) .tab-bar {362 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar { 425 363 --tab-bar-background: hsl(0, 0%, 8%); 426 364 } 427 365 428 body:not(. big-sur):not(.docked) .tab-bar {366 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar { 429 367 background-image: linear-gradient(to bottom, hsl(0, 0%, 12%), hsl(0, 0%, 10%)); 430 368 } 431 369 432 body.docked .tab-bar { 433 background-color: hsl(0, 0%, 10%); 434 } 435 436 body.docked.bottom .tab-bar > .border.top { 437 filter: brightness(120%); 438 } 439 440 body:not(.big-sur):not(.docked) .tab-bar > .tabs > .item { 370 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item { 441 371 --tab-item-background: linear-gradient(to bottom, hsl(0, 0%, 12%), hsl(0, 0%, 10%)); 442 372 } 443 373 444 body .big-sur:not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected {445 --tab-item-background: hsl(0, 0%, 19%);446 } 447 448 body:not(. big-sur):not(.docked) .tab-bar > .tabs > .item:not(.disabled).selected {374 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected { 375 --tab-item-background: var(--background-color-content); 376 } 377 378 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs > .item:not(.disabled).selected { 449 379 --tab-item-background: linear-gradient(to bottom, hsl(0, 0%, 23%), hsl(0, 0%, 21%)); 450 380 } 451 381 452 body .big-sur:not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover {382 body:is(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 453 383 --tab-item-background: hsl(0, 0%, 7%); 454 384 } 455 385 456 body:not(. big-sur):not(.docked) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover {386 body:not(.mac-platform.monterey, .mac-platform.big-sur) .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover { 457 387 --tab-item-background: linear-gradient(to bottom, hsl(0, 0%, 11%), hsl(0, 0%, 9%)); 458 }459 460 body.docked .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover {461 background-color: hsl(0, 0%, 15%);462 }463 464 body.docked .tab-bar > .tabs > .item:not(.disabled).selected {465 background-color: var(--background-color);466 }467 468 body.docked.window-inactive .tab-bar > .tabs > .item:not(.disabled).selected {469 background-color: hsl(0, 0%, 20%);470 388 } 471 389 … … 474 392 } 475 393 476 body:not(.docked).tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover > .icon {394 .tab-bar > .tabs:not(.animating) > .item:not(.selected, .disabled):hover > .icon { 477 395 opacity: 0.6; 478 396 } 479 397 480 body:not(.docked).window-inactive .tab-bar { 398 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar, 399 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar { 400 --tab-bar-background: hsl(0, 0%, 7%); 481 401 --tab-item-border-color: hsl(0, 0%, 34%); 482 402 } 483 403 484 body.big-sur:not(.docked).window-inactive .tab-bar, 485 body:not(.big-sur):not(.docked).window-inactive .tab-bar { 486 --tab-bar-background: hsl(0, 0%, 7%); 487 } 488 489 body.big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item { 404 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item { 490 405 --tab-item-background: hsl(0, 0%, 7%); 491 406 } 492 407 493 body:not(. big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item {408 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item { 494 409 --tab-item-background: hsl(0, 0%, 13%); 495 410 } 496 411 497 body .big-sur:not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected {412 body:is(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected { 498 413 --tab-item-background: hsl(0, 0%, 11%); 499 414 } 500 415 501 body:not(. big-sur):not(.docked).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected {416 body:not(.mac-platform.monterey, .mac-platform.big-sur).window-inactive .tab-bar > .tabs > .item:not(.disabled).selected { 502 417 --tab-item-background: hsl(0, 0%, 19%); 503 418 } -
trunk/Source/WebInspectorUI/UserInterface/Views/TabBar.js
r265682 r281182 47 47 this._tabContainer.addEventListener("contextmenu", this._handleTabContainerContextMenu.bind(this)); 48 48 49 this._flexibleSpaceBeforeElement = this._tabContainer.appendChild(document.createElement("div"));50 this._flexibleSpaceBeforeElement.className = "flexible-space";51 52 this._flexibleSpaceAfterElement = this._tabContainer.appendChild(document.createElement("div"));53 this._flexibleSpaceAfterElement.className = "flexible-space";54 55 49 const navigationBarAfterElement = null; 56 50 this._navigationBarAfter = new WI.NavigationBar(navigationBarAfterElement, {sizesToFit: true}); … … 73 67 } 74 68 75 // Static76 77 static get horizontalPadding()78 {79 return (WI.dockConfiguration === WI.DockConfiguration.Undocked) ? 0 : 8; // Keep in sync with `body.docked .tab-bar .tabs`80 }81 82 69 // Public 83 70 … … 142 129 143 130 if (this._tabContainer.contains(nextSibling.element)) { 144 if (!(tabBarItem instanceof WI.PinnedTabBarItem) && nextSibling instanceof WI.PinnedTabBarItem && nextSibling !== this._tabPickerTabBarItem)145 this._tabContainer.insertBefore(tabBarItem.element, this._ flexibleSpaceAfterElement);131 if (!(tabBarItem instanceof WI.PinnedTabBarItem) && nextSibling instanceof WI.PinnedTabBarItem) 132 this._tabContainer.insertBefore(tabBarItem.element, this._tabPickerTabBarItem.element); 146 133 else 147 134 this._tabContainer.insertBefore(tabBarItem.element, nextSibling.element); 148 135 } else { 149 if (tabBarItem instanceof WI.PinnedTabBarItem && tabBarItem !== this._tabPickerTabBarItem)136 if (tabBarItem instanceof WI.PinnedTabBarItem) 150 137 this._tabContainer.appendChild(tabBarItem.element); 151 138 else 152 this._tabContainer.insertBefore(tabBarItem.element, this._ flexibleSpaceAfterElement);139 this._tabContainer.insertBefore(tabBarItem.element, this._tabPickerTabBarItem.element); 153 140 } 154 141 … … 443 430 return; 444 431 445 const tabBarHorizontalPadding = WI.TabBar.horizontalPadding;446 const tabBarItemHorizontalMargin = WI.TabBarItem.horizontalMargin;447 448 432 let undocked = WI.dockConfiguration === WI.DockConfiguration.Undocked; 449 433 450 434 function measureWidth(tabBarItem) { 451 435 if (!tabBarItem[WI.TabBar.CachedWidthSymbol]) 452 tabBarItem[WI.TabBar.CachedWidthSymbol] = tabBarItem.element.realOffsetWidth + tabBarItemHorizontalMargin;436 tabBarItem[WI.TabBar.CachedWidthSymbol] = tabBarItem.element.realOffsetWidth; 453 437 return tabBarItem[WI.TabBar.CachedWidthSymbol]; 454 438 } 455 439 456 let availableSpace = this._tabContainer.realOffsetWidth - tabBarHorizontalPadding;440 let availableSpace = this._tabContainer.realOffsetWidth; 457 441 458 442 this._tabContainer.classList.add("calculate-width"); … … 553 537 _recordTabBarItemSizesAndPositions() 554 538 { 555 const tabBarItemLeftMargin = WI.TabBarItem.horizontalMargin / 2;556 557 539 var tabBarItemSizesAndPositions = new Map; 558 540 559 541 let barRect = this._tabContainer.getBoundingClientRect(); 560 542 561 function add(key, element, leftMargin) { 562 let boundingRect = element.getBoundingClientRect(); 563 tabBarItemSizesAndPositions.set(key, { 564 left: boundingRect.left - barRect.left - leftMargin, 543 for (let tabBarItem of this._tabBarItems) { 544 if (tabBarItem.hidden) 545 continue; 546 547 let boundingRect = tabBarItem.element.getBoundingClientRect(); 548 tabBarItemSizesAndPositions.set(tabBarItem, { 549 left: boundingRect.left - barRect.left, 565 550 width: boundingRect.width, 566 551 }); 567 552 } 568 553 569 add(this._flexibleSpaceBeforeElement, this._flexibleSpaceBeforeElement, 0);570 add(this._flexibleSpaceAfterElement, this._flexibleSpaceAfterElement, 0);571 for (let tabBarItem of this._tabBarItems) {572 if (tabBarItem.hidden)573 continue;574 575 add(tabBarItem, tabBarItem.element, tabBarItemLeftMargin);576 }577 578 554 return tabBarItemSizesAndPositions; 579 555 } … … 585 561 continue; 586 562 587 let isFlexibleSpace = tabBarItem === this._flexibleSpaceBeforeElement || tabBarItem === this._flexibleSpaceAfterElement; 588 589 let element = isFlexibleSpace ? tabBarItem : tabBarItem.element; 590 element.style.left = sizeAndPosition.left + "px"; 591 element.style.width = sizeAndPosition.width + "px"; 563 tabBarItem.element.style.left = sizeAndPosition.left + "px"; 564 tabBarItem.element.style.width = sizeAndPosition.width + "px"; 592 565 } 593 566 } … … 595 568 _clearTabBarItemSizesAndPositions(skipTabBarItem) 596 569 { 597 this._flexibleSpaceBeforeElement.style.left = null;598 this._flexibleSpaceBeforeElement.style.width = null;599 600 this._flexibleSpaceAfterElement.style.left = null;601 this._flexibleSpaceAfterElement.style.width = null;602 603 570 for (var tabBarItem of this._tabBarItems) { 604 571 if (skipTabBarItem && tabBarItem === skipTabBarItem) … … 664 631 return; 665 632 666 if (event.target !== this.element && event.target !== this._flexibleSpaceBeforeElement && event.target !== this._flexibleSpaceAfterElement)633 if (event.target !== this.element) 667 634 return; 668 635 … … 808 775 } 809 776 810 const tabBarLeftPadding = WI.TabBar.horizontalPadding / 2;811 const tabBarItemHorizontalMargin = WI.TabBarItem.horizontalMargin;812 813 777 event.preventDefault(); 814 778 event.stopPropagation(); … … 827 791 this._selectedTabBarItem.element.style.left = newLeft + "px"; 828 792 829 let selectedTabMidX = containerOffset + newLeft + ( (this._selectedTabBarItem.element.realOffsetWidth + tabBarItemHorizontalMargin)/ 2);793 let selectedTabMidX = containerOffset + newLeft + (this._selectedTabBarItem.element.realOffsetWidth / 2); 830 794 831 795 var currentIndex = this._tabBarItems.indexOf(this._selectedTabBarItem); … … 863 827 // FIXME: Animate the tabs that move to make room for the selected tab. This was causing me trouble when I tried. 864 828 865 let isLTR = WI.resolvedLayoutDirection() === WI.LayoutDirection.LTR;866 867 829 function inlineStyleValue(element, property) { 868 830 return element.style.getPropertyCSSValue(property).getFloatValue(CSSPrimitiveValue.CSS_PX) || 0; 869 831 } 870 832 871 let offsetAfter = inlineStyleValue(this._flexibleSpaceAfterElement, "width"); 872 873 let accumulatedLeft = isLTR ? (inlineStyleValue(this._flexibleSpaceBeforeElement, "width") + inlineStyleValue(this._flexibleSpaceBeforeElement, "left")) : tabBarLeftPadding; 833 let accumulatedLeft = 0; 874 834 for (let tabBarItem of this._tabBarItemsFromLeftToRight()) { 875 835 if (tabBarItem.hidden) 876 836 continue; 877 837 878 if (tabBarItem !== this._selectedTabBarItem && inlineStyleValue(tabBarItem.element, "left") !== accumulatedLeft) { 879 let left = accumulatedLeft; 880 if (isLTR) { 881 if (tabBarItem instanceof WI.PinnedTabBarItem && tabBarItem !== this._tabPickerTabBarItem) 882 left += offsetAfter; 883 } else { 884 if (!(tabBarItem instanceof WI.PinnedTabBarItem) || tabBarItem === this._tabPickerTabBarItem) 885 left += offsetAfter; 886 } 887 tabBarItem.element.style.left = left + "px"; 888 } 889 890 accumulatedLeft += inlineStyleValue(tabBarItem.element, "width") + tabBarItemHorizontalMargin; 838 if (tabBarItem !== this._selectedTabBarItem && inlineStyleValue(tabBarItem.element, "left") !== accumulatedLeft) 839 tabBarItem.element.style.left = accumulatedLeft + "px"; 840 841 accumulatedLeft += inlineStyleValue(tabBarItem.element, "width"); 891 842 } 892 843 } -
trunk/Source/WebInspectorUI/UserInterface/Views/TabBarItem.js
r260108 r281182 49 49 this.title = title; 50 50 this.image = image; 51 }52 53 // Static54 55 static get horizontalMargin()56 {57 return (WI.dockConfiguration === WI.DockConfiguration.Undocked) ? 0 : 4; // Keep in sync with `body.docked .tab-bar > .tabs > .item`58 51 } 59 52 -
trunk/Source/WebInspectorUI/UserInterface/Views/Variables.css
r272371 r281182 231 231 } 232 232 233 body .big-sur{233 body:is(.mac-platform.monterey, .mac-platform.big-sur) { 234 234 --text-color: hsl(0, 0%, 15%); 235 235 … … 247 247 } 248 248 249 body .mac-platform:not(.big-sur):not(.docked) {249 body:not(.mac-platform.monterey, .mac-platform.big-sur):not(.docked) { 250 250 /* keep in sync with `WI.undockedTitleAreaHeight` */ 251 251 --undocked-title-area-height: calc(22px / var(--zoom-factor)); 252 252 } 253 253 254 body .mac-platform.big-sur:not(.docked) {254 body:is(.mac-platform.monterey, .mac-platform.big-sur):not(.docked) { 255 255 /* keep in sync with `WI.undockedTitleAreaHeight` */ 256 256 --undocked-title-area-height: calc(27px / var(--zoom-factor)); … … 385 385 } 386 386 387 body.big-sur {388 --glyph-color: hsl(0, 0%, 69%);389 --glyph-color-pressed: hsl(0, 0%, 100%);390 }391 387 392 388 body.window-inactive { … … 399 395 } 400 396 401 body .big-sur{397 body:is(.mac-platform.monterey, .mac-platform.big-sur) { 402 398 --text-color: hsl(0, 0%, 85%); 403 399 … … 408 404 --background-color-content: hsl(0, 0%, 17%); 409 405 --background-color-intermediate: hsl(0, 0%, 19%); 406 407 --glyph-color: hsl(0, 0%, 69%); 408 --glyph-color-pressed: hsl(0, 0%, 100%); 410 409 411 410 --panel-background-color: hsl(0, 0%, 20%);
Note: See TracChangeset
for help on using the changeset viewer.