From f627b49f14be0f9f1283a1d4ed3df60a666a0a50 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 18 Mar 2024 01:52:59 +0100 Subject: [PATCH] GH Pages site: improve styling mastodon button --- docs/_layouts/default.html | 6 +++--- docs/assets/css/style.scss | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 9169256d..7cdfaae9 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -49,15 +49,15 @@

{{ site.title | default: site.github.repo

-

+
diff --git a/docs/assets/css/style.scss b/docs/assets/css/style.scss index 582c75ac..8e6c4129 100644 --- a/docs/assets/css/style.scss +++ b/docs/assets/css/style.scss @@ -110,6 +110,40 @@ header .install pre.highlight { padding-top: 1em; } +.mastodon-share-button { + font-size: 80%; + margin: 0 1em 0 0; +} + +.mastodon-share-button .btn { + display: inline-block; + text-align: center; + vertical-align: middle; + padding: .25em 1em; + border-radius: 1rem; + transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out; + color: #ffffff; + background-color: #007bff; +} +.mastodon-share-button .btn:before { + content: url('data:image/svg+xml;charset=UTF-8,'); +} + +#modal { + clear: both; + margin: 10px 0; +} + +#modal #msb-share { + text-align: center; + vertical-align: middle; + padding: .25em 1em; + border-radius: 1rem; + transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out; + color: #ffffff; + background-color: #007bff; +} + /* General space usage/layout */ .wrapper{ width:100%;