News for hackers. Stuff that matters.

redmaniack

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @11:32AM (#17859583)
Thank you :)
Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @11:31AM (#17859578)
Well, english is my second language.

Besides that, what I was really trying to say was that a tool like Normalize.css or Bootstrap's Reboot may be more helpful than the classic CSS reset.

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @08:38AM (#17858300)
Well, I also somehow expected this kind of feedback too.

I agree my findings are far far away from a specialized audit, but nor did I intended to do one.

I just wanted to check out some of the best practices & stuff, based on my daily experience as a web user and developer.

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:58AM (#17858102)
Please read my comment above, also here's how the above "nesting" compiles to:

.compose-form .compose-form__modifiers .compose-form__upload-description input::placeholder { opacity: 1; }

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:54AM (#17858082)
I'm not saying using BEM is a bad thing. Not at all, I'm using it too and like how it plays with Sass/scss.

e.g. I do like how Sass makes it easier to write BEM-like code similar to the below:

// style.scss .btn { ... &--success { ... . } }

// style.css .btn {...} .btn-success {...}

But when abusing Sass nesting and choosing a weak naming convention, the resulted CSS selectors can go wild. Here's an example: https://github.com/tootsuite/mastodon/blob/995f8b389a66ab76e...

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:44AM (#17858037)
Glad you found it interesting. I enjoy to dig into this kind of analysis stuff from time to time:

A while ago I made an HTML study on around 8 million web pages: https://www.advancedwebranking.com/html/

Also, I wrote about this journey on CSS-Tricks: 1. https://css-tricks.com/average-web-page-data-analyzing-8-mil... 2. https://css-tricks.com/random-interesting-facts-htmlsvg-usag...

On accessibility, I'd have loved to try out some screen readers but at the moment I write this article, I thought this accessibility analysis would deserve its own separate topic/article. A11Y is always hard.

https://catalin.red/thoughts-on-accessibility/

Sorry for all these plugs.

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:36AM (#17857992)
To be honest, I blame myself for not opening some pull requests yet, considering the project is open-source.

I'd love to contribute and try to improve things but this task might become gigantic on long-term, as the Mastodon project itself :)

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:33AM (#17857982)
Thank you very much ;)
Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:30AM (#17857959)
The thumbs down was meant to be for the use of an icon font nowadays, in this case, FontAwesome. Don't get me wrong, I'm still using FontAwesome for many projects.

The thing is there are so many good reasons to use an SVG icon font system nowadays: pure vector, control over the individual shape symbols, positioning is easier thanks to knowing its exact size etc.

Re:I inspected the mastodon.social website on Tuesday August 28, 2018 @07:19AM (#17857911)
Hehe, just let me know!

Older ยป