Skip to content

Commit

Permalink
fix #142847
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Feb 11, 2022
1 parent 5245ce3 commit f1bd49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/vs/workbench/contrib/terminal/browser/media/terminal.css
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,6 @@
}

.terminal-command-decoration {
transition: opacity 0.5s;
transition: all .2s ease-in-out;
margin-left: -1%;
width: 50%;
}

.terminal-command-decoration:hover {
transform: scale(2, 1);
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export class DecorationAddon extends Disposable implements ITerminalAddon {
}

registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
const commandDecorationSuccessColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationSuccessColor ? commandDecorationSuccessColor.toString() : ''}; }`);
const commandDecorationDefaultColor = theme.getColor(TERMINAL_COMMAND_DECORATION_DEFAULT_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration} { background-color: ${commandDecorationDefaultColor ? commandDecorationDefaultColor.toString() : ''}; }`);
const commandDecorationErrorColor = theme.getColor(TERMINAL_COMMAND_DECORATION_ERROR_BACKGROUND_COLOR);
collector.addRule(`.${DecorationSelector.CommandDecoration}.${DecorationSelector.Error} { background-color: ${commandDecorationErrorColor ? commandDecorationErrorColor.toString() : ''}; }`);
});

0 comments on commit f1bd49e

Please sign in to comment.