Live data from Hacker News

Show HN: Mimic – class-fied inline CSS

peterchon.github.io

51–60 of 74 posts

Re: Show HN: Mimic – class-fied inline CSS

#52

Earlier quoted context omitted.

Sure, the row and col stuff makes sense ... which makes it all the more bizarre that the terrible inline-as-classname stuff is included. I fear it might be more a 'troll' than a joke; either that or this person has really got the wrong end of the stick.

Thanks for taking a look, I appreciate everyone's opinion on things. Could you share why you think this way?

Because why wouldn't you just use inline styles if you really wanted to do this kind of thing?

Re: Show HN: Mimic – class-fied inline CSS

#53

Brilliant!

Doesn't anyone get that this is a joke?!?

Thanks for taking a look. I appreciate everyone's feedback. I understand that it looks redundant and unorthodox, but this way of writing css does help me when I need to add a quick style fix here and there without having to change my main style sheet.

Re: Show HN: Mimic – class-fied inline CSS

#55
post #19
post #11

I feel like this is akin to "killing the patient to cure the disease." In the uses I can see for this, the way this framework solves the problem, to me, seems to be worse than any problem itself. Namely, I would like to know how this is any better than !important on your CSS properties. Firstly, you're messing up your separation of concerns, you're also messing up an attribute with values that other developers will p…

I'm assuming the whole thing is a (pretty non-obvious) parody. If so, kudos to the creator – they had me for a moment there. EDIT just actually read the post properly "More to come, including jQuery-less js components. Please stay tuned!" :-)

Hey, thanks for taking a look. I'm sorry that it wasn't a parody. It's something that's helped me make quick small style changes without having to make more css classes.

Re: Show HN: Mimic – class-fied inline CSS

#56

It's sad that this reminds me to the worst CSS framework I've ever used (and was forced to use): https://github.com/EasyBoxModel/EBM Check https://github.com/EasyBoxModel/EBM/blob/master/app/assets/c... to get the idea.

Hey sorry that you were stuck with a framework. It's not a framework, it's meant to be a quick way to add styles without having to make more css classes.

Re: Show HN: Mimic – class-fied inline CSS

#58

Going to be honest.. this doesn't look too well thought out. Something like z-index you have a class for values of 0 up to 100. Not necessary IMO. I'd recommend taking a look at Basscss for some inspiration. From my perspective, you're trying to create something similar to Basscss.

Perhaps, which is why I appreciate everyone's feedback.

Re: Show HN: Mimic – class-fied inline CSS

#59

Earlier quoted context omitted.

Thanks for taking a look, I appreciate everyone's opinion on things. Could you share why you think this way?

Because why wouldn't you just use inline styles if you really wanted to do this kind of thing?

There's nothing stopping you from using inline-styles. It's another approach.

Re: Show HN: Mimic – class-fied inline CSS

#60

That's the equivalent of a front-end developper going into back-end, saying "screw this!" and hardcoding everything. Urgh. Also, you cannot use numbers as classes. That's not allowed and may mess up some browsers / devices.

Hi thanks for looking. Could you elaborate on your last statement?

Sorry, I was wrong. It seem that they cannot start with a number but you can use a number in them so long as your class start with a valid character. I'm however worried at the use of the : character.

The style definition might be ignored in some browsers. Some other might break when they see an invalid character and stop parsing your styles.

That being said, most modern browser will be able to parse the CSS without you needing to escape any characters.

Post reply on HN