Skip to content

Commit

Permalink
Fix several bugs reported in v7.3 (theme-next#1060)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Aug 9, 2019
1 parent 8aa162c commit f98ce5f
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
10 changes: 5 additions & 5 deletions source/css/_common/components/highlight/copy-code.styl
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ if (hexo-config('codeblock.copy_button.style') == 'mac') {
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, .4);
margin-bottom: 1.6em;
padding-top: 30px;
}

.highlight {
// border-radius: 0 0 5px 5px;
margin: 0 !important;

&::before {
background: #fc625d;
Expand All @@ -68,4 +63,9 @@ if (hexo-config('codeblock.copy_button.style') == 'mac') {
width: 12px;
}
}

.highlight {
// border-radius: 0 0 5px 5px;
margin: 0 !important;
}
}
1 change: 1 addition & 0 deletions source/css/_common/components/highlight/highlight.styl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pre {
code {
background: none;
color: $highlight-foreground;
font-size: $table-font-size;
padding: 0;
text-shadow: none;
}
Expand Down
1 change: 1 addition & 0 deletions source/css/_common/components/post/post-title.styl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
color: #bbb;
display: inline-block;
float: right;
font-size: $font-size-larger;
the-transition-ease-in();
margin-left: -1.2em;

Expand Down
12 changes: 6 additions & 6 deletions source/css/_common/components/sidebar/sidebar-button.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
margin-top: 10px;

a {
border: 1px solid rgb(252, 100, 35) !important;
border: 1px solid $orange !important;
border-radius: 4px;
color: rgb(252, 100, 35);
color: $orange;
display: inline-block;
padding: 0 15px;

i {
color: rgb(252, 100, 35);
.fa {
margin-right: 5px;
}

&:hover {
background: rgb(252, 100, 35);
background: $orange;
color: white;

i {
.fa {
color: white;
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/css/_schemes/Pisces/_sidebar.styl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
background: none;
color: darken($orange, 20%);

i {
.fa {
color: darken($orange, 20%);
}
}
Expand Down
4 changes: 3 additions & 1 deletion source/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ NexT.utils = {
registerActiveMenuItem: function() {
$('.menu-item').each(function() {
var target = $(this).find('a[href]')[0];
if (target.hostname === location.hostname && (target.pathname === location.pathname || target.pathname === location.pathname.replace('index.html', '', 'g'))) {
var isSamePath = target.pathname === location.pathname || target.pathname === location.pathname.replace('index.html', '');
var isSubPath = target.pathname !== '/' && location.pathname.indexOf(target.pathname) === 0;
if (target.hostname === location.hostname && (isSamePath || isSubPath)) {
$(this).addClass('menu-item-active');
} else {
$(this).removeClass('menu-item-active');
Expand Down

0 comments on commit f98ce5f

Please sign in to comment.