Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion class/loos_hcb.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static function get_inline_style() {

// Code Lang (Default)
if ( 'off' === $HCB['show_lang'] ) {
$inline_css .= '.hcb_wrap{--hcb--data-label: none;--hcb--btn-offset: 0px;}';
$inline_css .= '.hcb_wrap>pre{--hcb--data-label: none;}.hcb_wrap{--hcb--btn-offset: 0px;}';
}

// Font smoothing
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--hcb--pX: 1.5em;
--hcb--radius: 3px;
--hcb--linenumW: 3.5ch; // It works if the line number is less than or equal to 999
--hcb--data-label: attr(data-lang);
--hcb--data-label: none;
--hcb--btn-offset: 20px;

// デフォルトカラー
Expand Down
6 changes: 5 additions & 1 deletion src/scss/editor/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@


// Lang Name
.hcb_wrap > pre,
.hcb-block {
--hcb--data-label: attr(data-lang);
}

.hcb_wrap > pre::before, // for Classic
.hcb-block::before {
position: absolute;
Expand Down Expand Up @@ -182,4 +187,3 @@
// .hcb-block[data-show-lang="0"]:not([data-file])::before {
// content: none;
// }

4 changes: 4 additions & 0 deletions src/scss/front/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@


// Lang Name, File Name
.hcb_wrap > pre {
--hcb--data-label: attr(data-lang);
}

.hcb_wrap > pre::before {
position: absolute;
top: 0;
Expand Down