Skip to content

Commit

Permalink
Merge pull request #57 from KevinBatdorf/release/1.7.0
Browse files Browse the repository at this point in the history
Release 1.7.0
  • Loading branch information
KevinBatdorf committed Nov 10, 2022
2 parents e112fa9 + 85b68c2 commit ca8bb55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code-block-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Code highlighting powered by the VS Code engine
* Requires at least: 6.0
* Requires PHP: 7.0
* Version: 1.6.0
* Version: 1.7.0
* Author: Kevin Batdorf
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
5 changes: 3 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Code Block Pro ===
Contributors: kbat82
Tags: block, code, syntax, highlighting, snippet
Tags: block, code, syntax, highlighting, snippet, highlighter, JavaScript, php, vs code, editor
Tested up to: 6.1
Stable tag: 1.6.0
Stable tag: 1.7.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -220,6 +220,7 @@ Look under the "Styling" tab and turn on "Clamp Values", which will compute the

== Changelog ==

= 1.7.0 - 2022-11-09 =
- Feature: Add line number support

= 1.6.0 - 2022-09-09 =
Expand Down
4 changes: 2 additions & 2 deletions src/front/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
counter-increment: step calc(var(--cbp-line-number-start, 1) - 1);
}
.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line::before {
@apply inline-block text-right opacity-30;
@apply inline-block text-right opacity-30 transition-opacity duration-500;
margin-right: 12px;
content: counter(step);
color: var(--cbp-line-number-color, #999);
Expand All @@ -46,7 +46,7 @@
counter-increment: step;
}
.wp-block-kevinbatdorf-code-block-pro.cbp-has-line-numbers:not(.code-block-pro-editor) pre code .line:hover::before {
@apply opacity-70 transition-opacity duration-200
@apply opacity-70;
}
.wp-block-kevinbatdorf-code-block-pro:not(.code-block-pro-editor) pre * {
font-family: inherit;
Expand Down

0 comments on commit ca8bb55

Please sign in to comment.