mirror of https://gitlab.com/curben/blog
fix(css): hide share button by default
This commit is contained in:
parent
ed521ca896
commit
b72ffb1c39
|
@ -746,11 +746,14 @@ unhide (via JS) if Web Share API is supported */
|
|||
.article .article-entry a.headerlink,
|
||||
.article-title a#btnshare {
|
||||
margin-left: 0.5em;
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
.article .article-entry a.headerlink {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.article-title {
|
||||
font-size: 1.8rem;
|
||||
|
|
|
@ -1066,11 +1066,14 @@ unhide (via JS) if Web Share API is supported */
|
|||
.article .article-entry a.headerlink,
|
||||
.article-title a#btnshare {
|
||||
margin-left: 0.5em;
|
||||
display: inline-block;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
.article .article-entry a.headerlink {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.article-title {
|
||||
font-size: 1.8rem;
|
||||
|
|
|
@ -32,7 +32,7 @@ if (navigator.share && document.location.protocol === 'https:') {
|
|||
const shareBtn = document.getElementById('btnshare')
|
||||
|
||||
// Unhide share-button if supported
|
||||
shareBtn.style.display = 'initial'
|
||||
shareBtn.style.display = 'inline-block'
|
||||
|
||||
shareBtn.addEventListener('click', async () => {
|
||||
const query = (selector) => {
|
||||
|
|
Loading…
Reference in New Issue