From 893de7a3ced72d37347f0095e59558dc5a1969b1 Mon Sep 17 00:00:00 2001 From: noellabo Date: Tue, 10 Aug 2021 13:40:05 +0900 Subject: [PATCH] Add Fedibird plugin for Mastodon Material --- .../mastodon-material/plugins/fedibird.scss | 63 +++++++++++++++++++ .../profiles/default/plugins.scss | 1 + .../plugins.scss | 1 + .../plugins.scss | 1 + .../plugins.scss | 1 + .../mastodon-material-v1-black/plugins.scss | 1 + .../mastodon-material-v1-dark/plugins.scss | 1 + .../mastodon-material-v2-dark/plugins.scss | 1 + .../mastodon-material-v2-light/plugins.scss | 1 + 9 files changed, 71 insertions(+) create mode 100644 app/javascript/styles/mastodon-material/plugins/fedibird.scss diff --git a/app/javascript/styles/mastodon-material/plugins/fedibird.scss b/app/javascript/styles/mastodon-material/plugins/fedibird.scss new file mode 100644 index 000000000..66131ed25 --- /dev/null +++ b/app/javascript/styles/mastodon-material/plugins/fedibird.scss @@ -0,0 +1,63 @@ +$name: "Fedibird"; +$plugin-version: "1.0.0"; +$target-version: "1.0.0"; +$website: ""; +@include version-check($name, $plugin-version, $target-version, $website); + +.drawer__tab { + flex: unset; + height: unset; + width: unset; + text-align: center; +} + +.tabs-bar__wrapper .tabs-bar__link .fa { + &.fa-list-ul { + &.fa-fw { vertical-align: text-bottom } + } +} + +@media screen and (max-width: 600px - 1px) { + .tabs-bar__wrapper .tabs-bar__link .fa { + &.fa-home, + &.fa-list-ul, + &.fa-bell, + &.fa-users, + &.fa-globe, + &.fa-search { + &.fa-fw { vertical-align: baseline } + } + } + + .tabs-bar__link span { + margin-left: unset; + } +} + +@media screen and (max-width: 600px + (285px * 2) + (10px * 2)) { + .tabs-bar__wrapper .tabs-bar.bottom-bar { + width: 100%; + } +} + +.account__action-bar { + width: 48px; + top: 66px; + left: 16px; +} + +.status__action-bar-button { + flex: 0 0 auto; +} + +.status__action-bar-dropdown { + flex: 0 0 auto; + margin-right: 4px; +} + +body.rtl { + .status__action-bar-dropdown { + margin-right: 0; + margin-left: 4px; + } +} diff --git a/app/javascript/styles/mastodon-material/profiles/default/plugins.scss b/app/javascript/styles/mastodon-material/profiles/default/plugins.scss index cf6ff3fc1..100c514bd 100644 --- a/app/javascript/styles/mastodon-material/profiles/default/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/default/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-google-plus/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-google-plus/plugins.scss index d7faee2b7..3ad0f4808 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-google-plus/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-google-plus/plugins.scss @@ -1,5 +1,6 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; @import '../../plugins/plus'; \ No newline at end of file diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-dark/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-dark/plugins.scss index be31d9dba..0012c744b 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-dark/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-dark/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; \ No newline at end of file diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-light/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-light/plugins.scss index be31d9dba..0012c744b 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-light/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-mastodon-light/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; \ No newline at end of file diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-black/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-black/plugins.scss index be31d9dba..0012c744b 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-black/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-black/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; \ No newline at end of file diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-dark/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-dark/plugins.scss index cf6ff3fc1..100c514bd 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-dark/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v1-dark/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-dark/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-dark/plugins.scss index be31d9dba..0012c744b 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-dark/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-dark/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; \ No newline at end of file diff --git a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-light/plugins.scss b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-light/plugins.scss index be31d9dba..0012c744b 100644 --- a/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-light/plugins.scss +++ b/app/javascript/styles/mastodon-material/profiles/mastodon-material-v2-light/plugins.scss @@ -1,4 +1,5 @@ //@import '../../plugins/cards'; //@import '../../plugins/dense'; //@import '../../plugins/plus'; +@import '../../plugins/fedibird'; @import '../../plugins/quote'; \ No newline at end of file