Skip to content

Commit

Permalink
better fix to wildcard selector that change font
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 3, 2018
1 parent 18a9c5c commit c815694
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* fix keep focus into cursor feature added in 2.0 (up arrow was causing scroll to top) report in firebase chat
* don't add empty string to history
* fix bottom padding in FireFox
* don't overwrite wildcard selector that change font with wildcard selector (reported by @ovk on gitter)

## 2.0.0
### Breaking
Expand Down
18 changes: 15 additions & 3 deletions css/jquery.terminal-2.0.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl>
* Released under the MIT license
*
* Date: Sat, 03 Nov 2018 07:46:19 +0000
* Date: Sat, 03 Nov 2018 07:55:09 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
Expand Down Expand Up @@ -183,7 +183,13 @@ body.full-screen-terminal .terminal {
.cmd .prompt > span {
float: left;
}
.terminal, .terminal-wrapper *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-family: monospace;
/*font-family: FreeMono, monospace; this don't work on Android */
color: #aaa;
Expand Down Expand Up @@ -591,7 +597,13 @@ terminal .terminal-output > div {
width: calc(var(--length, 1) * var(--char-width, 7.23438) * 1px);
display: inline-block;
}
.terminal, .terminal *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-size: calc(var(--size, 1) * 12px);
line-height: calc(var(--size, 1) * 15px);
}
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal-2.0.0.min.css

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions css/jquery.terminal-src.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,13 @@ body.full-screen-terminal .terminal {
.cmd .prompt > span {
float: left;
}
.terminal, .terminal-wrapper *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-family: monospace;
/*font-family: FreeMono, monospace; this don't work on Android */
color: #aaa;
Expand Down Expand Up @@ -591,7 +597,13 @@ terminal .terminal-output > div {
width: calc(var(--length, 1) * var(--char-width, 7.23438) * 1px);
display: inline-block;
}
.terminal, .terminal *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-size: calc(var(--size, 1) * 12px);
line-height: calc(var(--size, 1) * 15px);
}
Expand Down
18 changes: 15 additions & 3 deletions css/jquery.terminal.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Copyright (c) 2011-2018 Jakub Jankiewicz <http://jcubic.pl>
* Released under the MIT license
*
* Date: Sat, 03 Nov 2018 07:46:19 +0000
* Date: Sat, 03 Nov 2018 07:55:09 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd .prompt, .cmd .prompt div, .terminal .terminal-output div div{
Expand Down Expand Up @@ -183,7 +183,13 @@ body.full-screen-terminal .terminal {
.cmd .prompt > span {
float: left;
}
.terminal, .terminal-wrapper *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-family: monospace;
/*font-family: FreeMono, monospace; this don't work on Android */
color: #aaa;
Expand Down Expand Up @@ -591,7 +597,13 @@ terminal .terminal-output > div {
width: calc(var(--length, 1) * var(--char-width, 7.23438) * 1px);
display: inline-block;
}
.terminal, .terminal *, .cmd, .cmd * {
.terminal,
.terminal-wrapper > :not(.raw) span,
.terminal-wrapper > :not(.raw) a,
.terminal-wrapper > :not(.raw) div,
.cmd,
.cmd span,
.cmd div {
font-size: calc(var(--size, 1) * 12px);
line-height: calc(var(--size, 1) * 15px);
}
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.

0 comments on commit c815694

Please sign in to comment.