rolle, to mastodon
@rolle@mementomori.social avatar

It seems my ideas about Mastodon layout have been receiving some love: Re-think the overall layout design to more natural direction https://github.com/mastodon/mastodon/issues/27102

ixi, to mastodon
@ixi@mastodon.online avatar

The latest nightly build of Mastodon changed the visibility of 'activated' boost indicators from bold to a mere subtle colour change in the Web View.

Using 'Dark Reader' in full greyscale mode for that neat monochrome look is now off the table, I guess :(

https://github.com/mastodon/mastodon/issues/27887

renchap, to random
@renchap@oisaur.com avatar

We just merged a large change in Mastodon's UI, upgrading the icons from FontAwesome to Material Icons, and switching from loading them as a font to inline SVGs.

This is probably a large change for people maintaining alternative themes, please send your feedback if it makes things easier or harder for you! (cc @nileane / @rolle)

rolle,
@rolle@mementomori.social avatar

@renchap I'd REALLY like to completely refactor everything under app/javascript/styles as SCSS and CSS are something I do for a living. However, I have too much things on my plate right now so it would be impossible. But I can help any way I can in between, like in form of this discussion, perhaps PRs, testing and such.

I don't see it as a bad idea to start changing it to more CSS-friendly approach while still retaining a structure of a maintainable SCSS framework. After all, more maintainable, better (S)CSS structure in Mastodon core is a great ground for themers like me to work with. I'd be happy to refactor to work with the new Mastodon core theme.

I would start by adding stylelint tools for CSS and SCSS (at least stylelint-config-standard, stylelint-config-standard-scss), here's a .stylelintrc I myself use: https://github.com/digitoimistodude/devpackages/blob/master/.stylelintrc - I would change it to more strict, and keep it like 2-3 levels nesting max.

Then, variables dir and defining the variables as CSS vars there would be a great start. We do it like this: https://github.com/digitoimistodude/air-light/tree/master/sass/variables

Every single thing should be added to a CSS variable, colors, font-families, font-sizes, breakpoints, background-images, border-radiuses, form factors, aspect-ratios, hovers, active states, UI states, etc. so they can be worked and manipulated with on the theme side.

After this, I'd refactor each file line after line and move every bit as smaller components under their respective directories. I would follow a back end structure there, for example:

features/account/components/header.jsx

That means structure in SCSS:

app/javascript/styles/mastodon/features/account/components/_header.scss

And so on. Not sure how the templates actually are placed in the back-end but you get the picture. Every piece has its style equivalent.

After the SCSS has been refactored, a sample theme can be made very easily just using CSS variables and some of the components.

I hope this gives the idea. This is what I'd do.

og, to random

Wow this is actually really pleasing. I love the color orange so its fitting.....

@nileane

antonpodolsky, to random
@antonpodolsky@mastodon.social avatar

I realized that the was the main reason the platform didn't appeal to me much.

Here's a first attempt at decluttering it a bit, tweaking the colors and reversing the layout.

writeblankspace, to fediverse
@writeblankspace@fosstodon.org avatar

How do you make a poll in elk.zone?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • osvaldo12
  • ngwrru68w68
  • GTA5RPClips
  • provamag3
  • InstantRegret
  • everett
  • Durango
  • cisconetworking
  • khanakhh
  • ethstaker
  • tester
  • anitta
  • Leos
  • normalnudes
  • modclub
  • megavids
  • lostlight
  • All magazines