diff --git a/src/xterm.css b/src/xterm.css index c6ac50d9ff..89daf9e3e1 100644 --- a/src/xterm.css +++ b/src/xterm.css @@ -93,7 +93,7 @@ position: relative; } -.terminal.xterm-cursor-style-block:not(.focus) .terminal-cursor { +.terminal:not(.focus) .terminal-cursor { outline: 1px solid #fff; outline-offset: -1px; } @@ -103,21 +103,21 @@ color: #000; } -.terminal.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before, -.terminal.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { +.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before, +.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { content: ''; position: absolute; background-color: #fff; } -.terminal.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before { +.terminal.focus.xterm-cursor-style-bar:not(.xterm-cursor-blink-on) .terminal-cursor::before { top: 0; left: 0; bottom: 0; width: 1px; } -.terminal.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { +.terminal.focus.xterm-cursor-style-underline:not(.xterm-cursor-blink-on) .terminal-cursor::before { bottom: 0; left: 0; right: 0;