-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support share on socials (#62)
* Add:Article sharing function * Add:Article sharing function-style revise(样式调整) * Mod:remove: share on google,add: share on telegram * mod:add config.toml-ShareTelegram * fix:telegram icon class * style: delete some spaces, rename some params ... adjust some positions, fix some typos * refactor: use flexbox layout * feat: support `share` in Front Matter * i18n * refactor: post-share.html * feat: support douban, qzone * feat: add brand color * feat: support qrcode Co-authored-by: reuixiy <reuixiy@gmail.com>
- Loading branch information
1 parent
05dbf27
commit eae4359
Showing
15 changed files
with
369 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
.post-share { | ||
font-size: 90%; | ||
margin-top: ($fontSize * 5); | ||
color: alpha(var(--color-contrast-medium), 0.8); | ||
a { | ||
color: alpha(var(--color-contrast-medium), 0.8); | ||
&:hover { | ||
color: inherit; | ||
} | ||
} | ||
} | ||
|
||
.share-text { | ||
float: left; | ||
} | ||
|
||
.share-items { | ||
text-align: right; | ||
} | ||
|
||
.share-item { | ||
display: inline-block; | ||
margin-left: 1em; | ||
.icon { | ||
transition: fill $duration; | ||
} | ||
} | ||
|
||
.twitter-icon { | ||
&:hover { | ||
fill: #1DA1F2; | ||
} | ||
} | ||
|
||
.facebook-icon { | ||
&:hover { | ||
fill: #1877F2; | ||
} | ||
} | ||
|
||
.linkedin-icon { | ||
&:hover { | ||
fill: #0077B5; | ||
} | ||
} | ||
|
||
.telegram-icon { | ||
&:hover { | ||
fill: #2CA5E0; | ||
} | ||
} | ||
|
||
.weibo-icon { | ||
&:hover { | ||
fill: #E6162D; | ||
} | ||
} | ||
|
||
.douban-icon { | ||
&:hover { | ||
fill: #007722; | ||
} | ||
} | ||
|
||
.qq-icon { | ||
&:hover { | ||
fill: #12B7F5; | ||
} | ||
} | ||
|
||
.qzone-icon { | ||
&:hover { | ||
fill: #FECE00; | ||
} | ||
} | ||
|
||
.qrcode-icon { | ||
&:hover { | ||
fill: var(--color-primary); | ||
} | ||
} | ||
|
||
#qrcode-img { | ||
opacity: 0; | ||
position: absolute; | ||
transform: translateX(-80%) translateY(-125%); | ||
transition: all $duration; | ||
img { | ||
display: none; | ||
border: 1px solid var(--color-contrast-lower); | ||
} | ||
} | ||
|
||
.qrcode-container { | ||
&:hover #qrcode-img { | ||
opacity: 1; | ||
img { | ||
display: inline; | ||
} | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...leSite/resources/_gen/assets/scss/scss/main.scss_b04c21e44835e7dcdc8cb03d103b5ef1.content
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
exampleSite/resources/_gen/assets/scss/scss/main.scss_b04c21e44835e7dcdc8cb03d103b5ef1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"Target":"css/meme.min.1cd65e86662c3df5c9137d0984d1cd8635333e017884484b0dfbe582fd97c479.css","MediaType":"text/css","Data":{"Integrity":"sha256-HNZehmYsPfXJE30JhNHNhjUzPgF4hEhLDfvlgv2XxHk="}} | ||
{"Target":"css/meme.min.8e38992d675856a19b5107ab37885c6bbedb4c439491257f2c6f25889296fa03.css","MediaType":"text/css","Data":{"Integrity":"sha256-jjiZLWdYVqGbUQerN4hca77bTEOUkSV/LG8liJKW+gM="}} |
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
Oops, something went wrong.