v2.0.0 (Mastodon 4.3)
- I have partially rewriten the style! The CSS should be much cleaner and smaller + Some issues have been fixed + Some things are styled differently but it isn't a lot - Alt text modal has been styled - Height of hidden media is collapsed + styled hide media button - Avatars in replies on mobile are slightly smaller - Mobile no longer has scrolling topbar, labels are removed to fit all icons - Fixes issue on iOS where the bottombar wouldn't be shown - Is also more convenient than scrolling - Some stuff is now customizable in the UserStyle's options ADMINS: This and the previous version is meant for Mastodon 4.3.0+, please do not update until your server has updated.
29
README.md
@@ -1,19 +1,22 @@
|
||||
# Mastodon Modern <a href="https://nogithub.codeberg.page"><img src="https://nogithub.codeberg.page/badge.svg" alt="Please don't upload to GitHub"></a>
|
||||
A UserStyle & theme that drastically improves the look & feel of Mastodon. Can be used with other themes that only change colors.
|
||||
A UserStyle & theme that improves the look & feel of Mastodon. Can be used with other themes that only change colors.
|
||||
|
||||
|  |  |  |
|
||||
| --- | --- | --- | --- |
|
||||
|  |  |  |  |
|
||||
| --- | --- | --- | --- | --- |
|
||||
|
||||
### **[Use with the Stylus browser extension!](https://userstyles.world/style/4773)**
|
||||
## **[Install with the Stylus browser extension!](https://userstyles.world/style/4773)**
|
||||
Please do not use the "Stylish" browser extension: https://robertheaton.com/2018/07/02/stylish-browser-extension-steals-your-internet-history/
|
||||
|
||||
## Example for adding to your own instance:
|
||||
## Instance Admins:
|
||||
|
||||
https://github.com/Coffeedon/Cofffee-Assets#to-use-a-pre-made-theme
|
||||
> Previous instructions/example were outdated, I may need help with instructions here as I am not able to run my own instance to test atm.<br>[The Chuckya Mastodon fork has implemented the style here](https://github.com/TheEssem/mastodon/tree/main/app/javascript/styles)
|
||||
|
||||
For now, here are some notes:
|
||||
- **Make sure to use the compiled code from [this repo's `modern.css`](modern.css)**
|
||||
- **For light theme, you may need to include `@import 'mastodon-light/diff';`**
|
||||
- **Same goes for the High Contrast theme `@import 'contrast/diff';`**
|
||||
- While not tested thoroughly, could work well with other color themes, as well.
|
||||
- **The default Mastodon theme needs to be imported**
|
||||
- **For light theme, include `@import 'mastodon-light/diff';`**
|
||||
- **For High Contrast theme `@import 'contrast/diff';`**
|
||||
- While not tested thoroughly, can work well with other color themes.
|
||||
|
||||
**Note:** The UserStyle usually receives updates earlier to make sure everything is ready for the compiled CSS.
|
||||
|
||||
@@ -29,12 +32,10 @@ Make sure to see the license below for more details:
|
||||
|
||||
<br><br>
|
||||
<div align="center">
|
||||
<details>
|
||||
<summary>🍓</summary>
|
||||
Although I'm definitely lower priority than some others...<br>If you support my work and can actually afford to,
|
||||
<img src="https://git.gay/Freeplay/pages/raw/branch/waf/assets/blobfox/blobfoxnomstrawberry.svg" width="42">
|
||||
|
||||
If you support my work and can afford to,<br>
|
||||
[**you can donate to me here :)**](https://www.buymeacoffee.com/freeplay)
|
||||
|
||||
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
145
glitch-fixes.css
@@ -1,3 +1,6 @@
|
||||
:root {
|
||||
--background-color-alt: transparent;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .compose-form__autosuggest-wrapper > :last-child {
|
||||
padding-bottom: 2em !important;
|
||||
}
|
||||
@@ -37,6 +40,7 @@ body.app-body.flavour-glitch > #mastodon .compose-form__submit button {
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed .status__content {
|
||||
height: auto !important;
|
||||
overflow: visible;
|
||||
mask: unset !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed .status__content .status__content__text {
|
||||
mask: linear-gradient(to bottom, #000 50px, transparent) !important;
|
||||
@@ -55,32 +59,36 @@ body.app-body.flavour-glitch > #mastodon .collapsed .status__content::after {
|
||||
body.app-body.flavour-glitch > #mastodon .collapsed.muted .status__content__text ~ * {
|
||||
display: none;
|
||||
}
|
||||
@media (pointer: coarse) {
|
||||
body.app-body.flavour-glitch > #mastodon .status__info {
|
||||
align-items: center;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__info__icons {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status {
|
||||
isolation: isolate;
|
||||
overflow: hidden;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__info {
|
||||
pointer-events: none;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__avatar,
|
||||
body.app-body.flavour-glitch > #mastodon .status__info__icons {
|
||||
pointer-events: all;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status > :not(.status__content):not(.status__line) {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status:not(.status-direct) > .status__content {
|
||||
margin-block: -90px -100px !important;
|
||||
margin-block: -100px !important;
|
||||
padding-block: 100px !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status:not(.status-direct) > .status__content .status__content__text {
|
||||
margin-top: 0px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status:not(.status-direct) > .status__content > :last-child:not(.status__content__text) {
|
||||
margin-bottom: 5px !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status .full-width {
|
||||
body.app-body.flavour-glitch > #mastodon .full-width {
|
||||
margin-inline: 0 !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status .status__action-bar {
|
||||
position: static;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__info .notification__message {
|
||||
padding-top: 0 !important;
|
||||
padding-inline-start: 0 !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__display-name {
|
||||
line-height: 22px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .display-name__account {
|
||||
font-size: 15px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .media-gallery__item > .media-gallery__preview {
|
||||
display: unset;
|
||||
}
|
||||
@@ -93,6 +101,7 @@ body.app-body.flavour-glitch > #mastodon .status__relative-time {
|
||||
flex-grow: 0 !important;
|
||||
min-width: 5ch !important;
|
||||
max-width: unset !important;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .status__relative-time time {
|
||||
display: inline !important;
|
||||
@@ -100,8 +109,10 @@ body.app-body.flavour-glitch > #mastodon .status__relative-time time {
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar {
|
||||
width: unset;
|
||||
margin-top: 8px;
|
||||
pointer-events: none;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar button {
|
||||
pointer-events: all;
|
||||
border-radius: 6px !important;
|
||||
padding-block: 2px;
|
||||
border: 1px solid var(--border-color-2);
|
||||
@@ -116,69 +127,61 @@ body.app-body.flavour-glitch > #mastodon .reactions-bar button:not(.active) {
|
||||
body.app-body.flavour-glitch > #mastodon .reactions-bar:empty {
|
||||
display: none;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .notification__message {
|
||||
padding-top: 15px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .notification__message + .status {
|
||||
padding-top: 0 !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .notification > .notification__message {
|
||||
padding-inline: 15px !important;
|
||||
padding-top: 18px !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .notification__favourite-icon-wrapper {
|
||||
position: static;
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .notification__favourite-icon-wrapper i {
|
||||
width: 1.28571429em !important;
|
||||
text-align: center;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .detailed-status__wrapper .focusable:not(.status)::before {
|
||||
content: unset !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .setting-text {
|
||||
border-radius: 0 !important;
|
||||
margin: 4px;
|
||||
width: calc(100% - 8px);
|
||||
padding-top: 5px !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .column-settings__pillbar {
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .pillbar-button {
|
||||
border-radius: 0 !important;
|
||||
padding: 6px;
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account__header__account-note:focus-within {
|
||||
border-radius: var(--radius) !important;
|
||||
body.app-body.flavour-glitch > #mastodon .column-header__notif-cleaning-buttons {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account__header__account-note__header {
|
||||
align-items: center;
|
||||
body.app-body.flavour-glitch > #mastodon .column-header__notif-cleaning-buttons button {
|
||||
min-width: 50% !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account__header__account-note__header button {
|
||||
display: flex;
|
||||
gap: 0.2em;
|
||||
body.app-body.flavour-glitch > #mastodon .notification__dismiss-overlay {
|
||||
position: absolute !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account__header__account-note__content {
|
||||
body.app-body.flavour-glitch > #mastodon .notification__dismiss-overlay .wrappy {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
border-top: 0;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings {
|
||||
max-height: 700px !important;
|
||||
width: 100%;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account-card .media-modal__close {
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
body.app-body.flavour-glitch > #mastodon .glitch.local-settings__page {
|
||||
padding: 20px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .account-card .media-modal__close::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -60px -30px;
|
||||
background: linear-gradient(to right, #000, transparent);
|
||||
transform: rotate(45deg);
|
||||
z-index: -1;
|
||||
opacity: 0.5;
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings__navigation {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 8px;
|
||||
background: none;
|
||||
border-right: 1px solid var(--border-color);
|
||||
width: auto;
|
||||
}
|
||||
.layout-multiple-columns.flavour-glitch .drawer {
|
||||
flex-grow: 0.2;
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings__navigation .local-settings__navigation__item:not(.close):not(.active) {
|
||||
background: none;
|
||||
}
|
||||
.layout-multiple-columns.flavour-glitch .drawer__inner {
|
||||
margin-top: -20px;
|
||||
max-height: unset !important;
|
||||
min-height: calc(100% + 40px);
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings__navigation .local-settings__navigation__item {
|
||||
border: 0;
|
||||
flex-direction: column;
|
||||
padding-inline: 8px;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings__navigation .local-settings__navigation__item span {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
body.app-body.flavour-glitch > #mastodon .local-settings__navigation [href="/settings/preferences"] {
|
||||
margin-block: auto 10px;
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
BIN
images/mastomodern-advanced-view.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
images/mastomodern-mobile-profile.png
Normal file
|
After Width: | Height: | Size: 205 KiB |
BIN
images/mastomodern-post.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
images/mastomodern-preview.png
Normal file
|
After Width: | Height: | Size: 910 KiB |
|
Before Width: | Height: | Size: 364 KiB |
|
Before Width: | Height: | Size: 1021 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 729 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |