Merge pull request #2676 from jeffbaier/master
Add _terminalClass identifier to cursor blink animation css
This commit is contained in:
@@ -173,13 +173,13 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|||||||
`}`;
|
`}`;
|
||||||
// Blink animation
|
// Blink animation
|
||||||
styles +=
|
styles +=
|
||||||
`@keyframes blink_box_shadow {` +
|
`@keyframes blink_box_shadow` + `_` + this._terminalClass + ` {` +
|
||||||
` 50% {` +
|
` 50% {` +
|
||||||
` box-shadow: none;` +
|
` box-shadow: none;` +
|
||||||
` }` +
|
` }` +
|
||||||
`}`;
|
`}`;
|
||||||
styles +=
|
styles +=
|
||||||
`@keyframes blink_block {` +
|
`@keyframes blink_block` + `_` + this._terminalClass + ` {` +
|
||||||
` 0% {` +
|
` 0% {` +
|
||||||
` background-color: ${this._colors.cursor.css};` +
|
` background-color: ${this._colors.cursor.css};` +
|
||||||
` color: ${this._colors.cursorAccent.css};` +
|
` color: ${this._colors.cursorAccent.css};` +
|
||||||
@@ -196,10 +196,10 @@ export class DomRenderer extends Disposable implements IRenderer {
|
|||||||
` outline-offset: -1px;` +
|
` outline-offset: -1px;` +
|
||||||
`}` +
|
`}` +
|
||||||
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_BLINK_CLASS}:not(.${CURSOR_STYLE_BLOCK_CLASS}) {` +
|
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_BLINK_CLASS}:not(.${CURSOR_STYLE_BLOCK_CLASS}) {` +
|
||||||
` animation: blink_box_shadow 1s step-end infinite;` +
|
` animation: blink_box_shadow` + `_` + this._terminalClass + ` 1s step-end infinite;` +
|
||||||
`}` +
|
`}` +
|
||||||
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_BLINK_CLASS}.${CURSOR_STYLE_BLOCK_CLASS} {` +
|
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_BLINK_CLASS}.${CURSOR_STYLE_BLOCK_CLASS} {` +
|
||||||
` animation: blink_block 1s step-end infinite;` +
|
` animation: blink_block` + `_` + this._terminalClass + ` 1s step-end infinite;` +
|
||||||
`}` +
|
`}` +
|
||||||
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_STYLE_BLOCK_CLASS} {` +
|
`${this._terminalSelector} .${ROW_CONTAINER_CLASS}.${FOCUS_CLASS} .${CURSOR_CLASS}.${CURSOR_STYLE_BLOCK_CLASS} {` +
|
||||||
` background-color: ${this._colors.cursor.css};` +
|
` background-color: ${this._colors.cursor.css};` +
|
||||||
|
|||||||
Reference in New Issue
Block a user