RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Protozaur. CSS framework for RoR

I happy to introduce small but very usefull tool for building prototypes. Protozaur is a set of CSS classes which can be used to increase productivity when you working with RoR frontend. Learn more about Protozaur.CSS

Comments

Is setting !important on every class really a great idea?

Please, stop writing shitware like this!

First of all: read the definition of “Framework”. Excerption from wikipedia: “In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software.” You do not have a real application layer, you have a css that gets included by your library.

Second: learn css best practices. Two-dash names, !important-s everywhere and overwriting defaults mean you have no clue how good CSS gets written.

Third: the performance! Only this piece of shit.scss (https://github.com/the-teacher/protozaur/blob/2120f007026d869f3ac5fb6662e56df98401c345/app/assets/stylesheets/ptz/framework.css.scss#L5-L20) creates 2,000 CSS classes!

This is like going back to the 90s and styling the page with the style attribute! You should use CSS classes to create component abstractions not to style the document!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in