Skip to content

Commit

Permalink
Merge pull request #41496 from usernamehw/zebra_for_running
Browse files Browse the repository at this point in the history
Remove hard-coded zebra in running extensions Fixes #40432
  • Loading branch information
isidorn authored Jan 16, 2018
2 parents 1eca6b9 + eff686f commit 7d34e22
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

.runtime-extensions-editor .monaco-list .monaco-list-rows > .monaco-list-row.odd {
background-color: #f5f5f5;
}

.runtime-extensions-editor .monaco-list .monaco-list-rows > .monaco-list-row:hover:not(.odd) {
background-color: transparent;
.runtime-extensions-editor .monaco-list .monaco-list-rows > .monaco-list-row:nth-child(even):not(:hover):not(.focused) {
background-color: rgba(130, 130, 130, 0.08);
}

.runtime-extensions-editor .extension {
Expand Down Expand Up @@ -86,11 +82,6 @@
background: url('save-inverse.svg') center center no-repeat;
}

.vs-dark .runtime-extensions-editor .monaco-list .monaco-list-rows > .monaco-list-row.odd,
.hc-black .runtime-extensions-editor .monaco-list .monaco-list-rows > .monaco-list-row.odd {
background-color: #262829;
}

.runtime-extensions-editor .monaco-action-bar {
padding-top: 21px;
flex-shrink: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ export class RuntimeExtensionsEditor extends BaseEditor {

data.elementDisposables = dispose(data.elementDisposables);

toggleClass(data.root, 'odd', index % 2 === 1);

data.name.textContent = element.marketplaceInfo ? element.marketplaceInfo.displayName : element.description.displayName;

const activationTimes = element.status.activationTimes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,6 @@ class KeybindingItemRenderer implements IRenderer<IKeybindingItemEntry, Keybindi
}

renderElement(keybindingEntry: IKeybindingItemEntry, index: number, template: KeybindingItemTemplate): void {
DOM.toggleClass(template.parent, 'even', index % 2 === 0);
template.actions.render(keybindingEntry);
template.command.render(keybindingEntry);
template.keybinding.render(keybindingEntry);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
display: flex;
}

.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list-row.even:not(.focused):not(.selected):not(:hover),
.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list:not(:focus) .monaco-list-row.focused.even:not(.selected):not(:hover),
.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list:not(.focused) .monaco-list-row.focused.even:not(.selected):not(:hover) {
.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list-row:nth-child(even):not(.focused):not(.selected):not(:hover),
.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list:not(:focus) .monaco-list-row.focused:nth-child(even):not(.selected):not(:hover),
.keybindings-editor > .keybindings-body > .keybindings-list-container .monaco-list:not(.focused) .monaco-list-row.focused:nth-child(even):not(.selected):not(:hover) {
background-color: rgba(130, 130, 130, 0.04);
}

Expand Down

0 comments on commit 7d34e22

Please sign in to comment.