Skip to content

Commit

Permalink
fix formatting colors and --glow #725
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 24, 2021
1 parent 50270b5 commit 7d45e71
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
### Bugfix
* fix prompt that return string or promise (in animation and set_prompt) [#724](https://github.com/jcubic/jquery.terminal/issues/724)
* fix formatting in typing animation [#721](https://github.com/jcubic/jquery.terminal/issues/721)
* fix formatting colors and `--glow` [#725](https://github.com/jcubic/jquery.terminal/issues/725)

## 2.30.2
### Bugfix
Expand Down
16 changes: 10 additions & 6 deletions css/jquery.terminal-2.30.2.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2021 Jakub Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Fri, 24 Dec 2021 14:41:18 +0000
* Date: Fri, 24 Dec 2021 21:53:37 +0000
*/

.terminal .terminal-output .format, .cmd .format,
Expand Down Expand Up @@ -136,9 +136,15 @@ body.full-screen-terminal .terminal {
.cmd a[href]:not(.terminal-inverted),
.terminal .terminal-output > :not(.raw) a[href]:not(.terminal-inverted) {
--color: var(--link-color, #3377FF);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) a[href].terminal-inverted {
background: var(--color, #ccc);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--background, #000);
}
.terminal .terminal-output > :not(.raw) a[href]:hover, .cmd a[href]:hover {
background-color: #3377FF;
Expand Down Expand Up @@ -381,7 +387,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand All @@ -397,7 +402,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand Down Expand Up @@ -718,9 +722,6 @@ terminal .terminal-output > div {
/* padding added as margin to .cmd to fix FireFox bug see: https://stackoverflow.com/q/29986977/387194 */
.terminal {
padding-bottom: 0;
/* conditionals in CSS ref: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) .error,
.terminal .terminal-output > :not(.raw) .error * {
Expand All @@ -746,6 +747,9 @@ terminal .terminal-output > div {
.cmd div {
color: var(--color, #aaa);
background-color: var(--background, #000);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal span[style*="--length"] {
/*
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal-2.30.2.min.css

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions css/jquery.terminal-src.css
Expand Up @@ -136,9 +136,15 @@ body.full-screen-terminal .terminal {
.cmd a[href]:not(.terminal-inverted),
.terminal .terminal-output > :not(.raw) a[href]:not(.terminal-inverted) {
--color: var(--link-color, #3377FF);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) a[href].terminal-inverted {
background: var(--color, #ccc);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--background, #000);
}
.terminal .terminal-output > :not(.raw) a[href]:hover, .cmd a[href]:hover {
background-color: #3377FF;
Expand Down Expand Up @@ -381,7 +387,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand All @@ -397,7 +402,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand Down Expand Up @@ -718,9 +722,6 @@ terminal .terminal-output > div {
/* padding added as margin to .cmd to fix FireFox bug see: https://stackoverflow.com/q/29986977/387194 */
.terminal {
padding-bottom: 0;
/* conditionals in CSS ref: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) .error,
.terminal .terminal-output > :not(.raw) .error * {
Expand All @@ -746,6 +747,9 @@ terminal .terminal-output > div {
.cmd div {
color: var(--color, #aaa);
background-color: var(--background, #000);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal span[style*="--length"] {
/*
Expand Down
16 changes: 10 additions & 6 deletions css/jquery.terminal.css
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2021 Jakub Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Fri, 24 Dec 2021 14:41:18 +0000
* Date: Fri, 24 Dec 2021 21:53:37 +0000
*/

.terminal .terminal-output .format, .cmd .format,
Expand Down Expand Up @@ -136,9 +136,15 @@ body.full-screen-terminal .terminal {
.cmd a[href]:not(.terminal-inverted),
.terminal .terminal-output > :not(.raw) a[href]:not(.terminal-inverted) {
--color: var(--link-color, #3377FF);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) a[href].terminal-inverted {
background: var(--color, #ccc);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--background, #000);
}
.terminal .terminal-output > :not(.raw) a[href]:hover, .cmd a[href]:hover {
background-color: #3377FF;
Expand Down Expand Up @@ -381,7 +387,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand All @@ -397,7 +402,6 @@ terminal .terminal-output > div {
background-color: var(--original-color, #aaa);
color: #000;
color: var(--background, #000);
box-shadow: 0 0 calc(var(--glow) * 3px) #aaa;
-webkit-box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
box-shadow: 0 0 calc(var(--glow) * 3px) var(--color, #aaa);
}
Expand Down Expand Up @@ -718,9 +722,6 @@ terminal .terminal-output > div {
/* padding added as margin to .cmd to fix FireFox bug see: https://stackoverflow.com/q/29986977/387194 */
.terminal {
padding-bottom: 0;
/* conditionals in CSS ref: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal .terminal-output > :not(.raw) .error,
.terminal .terminal-output > :not(.raw) .error * {
Expand All @@ -746,6 +747,9 @@ terminal .terminal-output > div {
.cmd div {
color: var(--color, #aaa);
background-color: var(--background, #000);
/* conditionals: https://www.kizu.ru/conditions-for-css-variables/ */
/* --glow: 0; */
text-shadow: 0 0 calc(var(--glow) * 5px) var(--color, #ccc);
}
.terminal span[style*="--length"] {
/*
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/jquery.terminal.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal-2.30.2.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Fri, 24 Dec 2021 21:38:03 +0000
* Date: Fri, 24 Dec 2021 21:53:36 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5130,7 +5130,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 24 Dec 2021 21:38:03 +0000',
date: 'Fri, 24 Dec 2021 21:53:36 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.30.2.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Fri, 24 Dec 2021 21:38:03 +0000
* Date: Fri, 24 Dec 2021 21:53:36 +0000
*/
/* global define, Map */
/* eslint-disable */
Expand Down Expand Up @@ -5130,7 +5130,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Fri, 24 Dec 2021 21:38:03 +0000',
date: 'Fri, 24 Dec 2021 21:53:36 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit 7d45e71

Please sign in to comment.