Skip to content

Commit

Permalink
Use rgba as background color for selection to fix chrome transpa
Browse files Browse the repository at this point in the history
rent selection issue
  • Loading branch information
jcubic committed Feb 5, 2017
1 parent dd3b235 commit fd06c5a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
10 changes: 7 additions & 3 deletions css/jquery.terminal-0.11.23.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2017 Jakub Jankiewicz <http://jcubic.pl>
* Released under the MIT license
*
* Date: Sun, 05 Feb 2017 15:12:40 +0000
* Date: Sun, 05 Feb 2017 16:36:46 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
Expand Down Expand Up @@ -359,7 +359,11 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: #aaa;
/*
* use rgba to fix transparent selection in chrome
* http://stackoverflow.com/questions/7224445/css3-selection-behaves-differently-in-ff-chrome
*/
background-color: rgba(170, 170, 170, 0.99);
color: #000;
}
.terminal .terminal-output div.error, .terminal .terminal-output div.error div {
Expand Down Expand Up @@ -455,7 +459,7 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: var(--color, #aaa);
background-color: var(--color, rgba(170, 170, 170, 0.99));
color: var(--background, #000);
}
@-webkit-keyframes terminal-blink {
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal-0.11.23.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions css/jquery.terminal-src.css
Expand Up @@ -359,7 +359,11 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: #aaa;
/*
* use rgba to fix transparent selection in chrome
* http://stackoverflow.com/questions/7224445/css3-selection-behaves-differently-in-ff-chrome
*/
background-color: rgba(170, 170, 170, 0.99);
color: #000;
}
.terminal .terminal-output div.error, .terminal .terminal-output div.error div {
Expand Down Expand Up @@ -455,7 +459,7 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: var(--color, #aaa);
background-color: var(--color, rgba(170, 170, 170, 0.99));
color: var(--background, #000);
}
@-webkit-keyframes terminal-blink {
Expand Down
10 changes: 7 additions & 3 deletions css/jquery.terminal.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2017 Jakub Jankiewicz <http://jcubic.pl>
* Released under the MIT license
*
* Date: Sun, 05 Feb 2017 15:12:40 +0000
* Date: Sun, 05 Feb 2017 16:36:46 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
Expand Down Expand Up @@ -359,7 +359,11 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: #aaa;
/*
* use rgba to fix transparent selection in chrome
* http://stackoverflow.com/questions/7224445/css3-selection-behaves-differently-in-ff-chrome
*/
background-color: rgba(170, 170, 170, 0.99);
color: #000;
}
.terminal .terminal-output div.error, .terminal .terminal-output div.error div {
Expand Down Expand Up @@ -455,7 +459,7 @@
.cmd > div::selection,
.cmd > div span::selection,
.cmd .prompt span::selection {
background-color: var(--color, #aaa);
background-color: var(--color, rgba(170, 170, 170, 0.99));
color: var(--background, #000);
}
@-webkit-keyframes terminal-blink {
Expand Down

0 comments on commit fd06c5a

Please sign in to comment.