diff --git a/scripts/tags/link.js b/scripts/tags/link.js
index 3954c90..a6ce540 100644
--- a/scripts/tags/link.js
+++ b/scripts/tags/link.js
@@ -34,14 +34,14 @@ hexo.extend.tag.register('link', function(args) {
return '' + args.title + '';
}
function loadDesc() {
- return '' + (args.description || args.url) + '';
+ return '' + (args.description || full_url_for(args.url)) + '';
}
if (args.description) {
// top
el += '
';
el += loadIcon();
- el += '' + full_url_for(args.url) + '';
+ el += '' + full_url_for(args.url) + '';
el += '
';
// bottom
el += '';
diff --git a/source/css/_common/highlight.styl b/source/css/_common/highlight.styl
index 773ae49..0c263f0 100644
--- a/source/css/_common/highlight.styl
+++ b/source/css/_common/highlight.styl
@@ -88,6 +88,7 @@ article.md .highlight
padding: 4px 0.5rem
opacity: .25
font-weight: 700
+ color: var(--theme)
&.yaml .code:before
content: "YAML"
diff --git a/source/css/_layout/partial/navbar.styl b/source/css/_layout/partial/navbar.styl
index 74e8428..0b70b62 100644
--- a/source/css/_layout/partial/navbar.styl
+++ b/source/css/_layout/partial/navbar.styl
@@ -21,11 +21,10 @@ nav.cap
display: flex
overflow: scroll visible
scrollbar(0, 0)
- padding-left: .25rem
>p
margin: 0
a
- padding: .25rem .75rem
+ padding: .25rem 1rem
margin: 10px 0 8px 0
line-height: 2
color: var(--text-p3)
@@ -35,11 +34,11 @@ nav.cap
position: relative
z-index: 1
&:after
- width: 'calc(100% - 2 * %s)' % .5rem
height: 2px
position: absolute
bottom: -8px
- left: .5rem
+ left: 1rem
+ right: 1rem
background: $color-theme
border-radius: 2px
pointer-events: none
diff --git a/source/css/_layout/tag-plugins/link.styl b/source/css/_layout/tag-plugins/link.styl
index d469ffc..42d52b4 100644
--- a/source/css/_layout/tag-plugins/link.styl
+++ b/source/css/_layout/tag-plugins/link.styl
@@ -51,7 +51,7 @@
background-repeat: no-repeat
background-size: contain
background-position: left center
- .url
+ .desc
opacity: .75
line-height: 1.5
span
@@ -73,8 +73,8 @@
margin: .5rem 0 .5rem 1rem
.title
font-size: $fs-14
- margin: 4px 0
- .url
+ margin: 1px 0 5px 0
+ .desc
flex-shrink: 0
txt-ellipsis()
span
@@ -83,5 +83,5 @@
span.title
font-weight: 500
color: var(--text-p1)
- span.url
+ span.desc
color: var(--text-p3)
diff --git a/source/css/_layout/tag-plugins/tabs.styl b/source/css/_layout/tag-plugins/tabs.styl
index ec6e183..1c50da2 100644
--- a/source/css/_layout/tag-plugins/tabs.styl
+++ b/source/css/_layout/tag-plugins/tabs.styl
@@ -64,10 +64,10 @@
z-index: 1
position: absolute
background: $color-theme
- width: 'calc(100% - 2 * %s)' % .5rem
height: 2px
bottom: -8px
- left: .5rem
+ left: .75rem
+ right: .75rem
border-radius: 2px
.tab-content