-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from EvanNotFound/dev
v0.4.4
- Loading branch information
Showing
19 changed files
with
240 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
disable-user-select() { | ||
-moz-user-select none | ||
-ms-user-select none | ||
-webkit-user-select none | ||
user-select none | ||
} | ||
|
||
.highlight-container[data-rel]{ | ||
position relative | ||
} | ||
|
||
.highlight-container:hover .copy-btn, .highlight-container .copy-btn:focus { | ||
opacity 1 | ||
} | ||
|
||
.copy-btn { | ||
cursor pointer | ||
display inline-block | ||
font-weight bold | ||
line-height 1.8 | ||
opacity 0 | ||
outline 0 | ||
padding 2px 6px | ||
position absolute | ||
vertical-align middle | ||
white-space nowrap | ||
font-size 1rem | ||
color var(--default-text-color) | ||
disable-user-select() | ||
transition-t("opacity", "0", "0.2", "ease-in-out") | ||
|
||
|
||
background var(--background-color) | ||
border 0 | ||
right 0 | ||
top 0 | ||
} | ||
|
||
|
||
if (hexo-config('code_block.style') == 'mac') { | ||
.highlight-container[data-rel]{ | ||
background var(--second-background-color) | ||
border-radius 14px | ||
box-shadow var(--shadow-color-2) 0px 6px 24px 0px, var(--shadow-color-1) 0px 0px 0px 1px | ||
padding-top 20px | ||
margin-top 10px | ||
|
||
&::before { | ||
position absolute | ||
content:attr(data-rel) | ||
line-height 38px | ||
border-radius 50% | ||
box-shadow none | ||
height 12px | ||
left 12px | ||
position absolute | ||
width auto | ||
margin-left 80px | ||
top 0 | ||
color var(--default-text-color) | ||
font-weight bold | ||
font-size 16px | ||
} | ||
|
||
&::after{ | ||
content ' ' | ||
position absolute | ||
-webkit-border-radius 50% | ||
border-radius 50% | ||
background #fc625d | ||
width 12px | ||
height 12px | ||
top 0 | ||
left 20px | ||
margin-top 13px | ||
-webkit-box-shadow 20px 0px #fdbc40, 40px 0px #35cd4b | ||
box-shadow 20px 0px #fdbc40, 40px 0px #35cd4b | ||
z-index 3 | ||
} | ||
} | ||
} else { | ||
.highlight-container[data-rel]{ | ||
background var(--highlight-background) | ||
border-radius 18px | ||
padding-top 20px | ||
margin-top 10px | ||
|
||
&::before { | ||
position absolute | ||
content:attr(data-rel) | ||
line-height 42px | ||
border-radius 18px | ||
box-shadow none | ||
height 12px | ||
left 4px | ||
position absolute | ||
width auto | ||
margin-left 15px | ||
top 2px | ||
color var(--default-text-color) | ||
font-weight bold | ||
font-size 16px | ||
} | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.