feat(shortcode): add link shortcode (#179)

* feat(shortcode): add link shortcode

* docs: add docs for link shortcode

* docs: fix 'mailto' in link shortcode docs error
This commit is contained in:
Dillon
2020-03-17 21:16:04 +08:00
committed by GitHub
parent f9dba2e36c
commit 6b03c711ac
30 changed files with 375 additions and 252 deletions

View File

@@ -1,6 +1,4 @@
/** Home **/
@import "../_partial/_home/summary";
@mixin page-home($profile, $posts) {
.home {
@if $profile {

View File

@@ -26,21 +26,7 @@
color: $global-font-secondary-color-dark;
}
a {
color: $single-link-color;
.dark-theme & {
color: $global-link-color-dark;
}
&:hover {
color: $single-link-hover-color;
.dark-theme & {
color: $global-link-hover-color-dark;
}
}
}
@include link(false, true);
.author {
font-size: 1.05rem;
@@ -102,22 +88,19 @@
}
}
@include link(false, false);
a {
word-break: break-all;
word-break: break-word;
color: $single-link-color;
.dark-theme &, .dark-theme & b, .dark-theme & strong {
.dark-theme & b, .dark-theme & strong {
color: $single-link-color-dark;
}
}
a:hover {
color: $single-link-hover-color;
.dark-theme &, .dark-theme & b, .dark-theme & strong {
color: $single-link-hover-color-dark;
}
.dark-theme a:hover b, .dark-theme a:hover strong {
color: $single-link-hover-color-dark;
}
ul {