Hacker Newsnew | past | comments | ask | show | jobs | submit | jaseflow's commentslogin

I like most of these except the one about not using !important.

I use .flat { margin-bottom: 0 !important } to remove the default bottom margin from certain typographical elements (ie. h1,p,ul). In this case where I absolutely know that I mean what I say when I apply that class, it works great.


In the future, try using:

    .flat.flat.flat.flat { margin-bottom: 0; }
It gives you the specificity to override most things, and still leaves you the "nuclear option" of `!important` if you ever need it.


I'd rather see !important instead of this. This rule would call for quite a lengthy comment explaining just what in the hell the repeated .flat rules are for, and what other rules it's attempting to pave over such that you know when you need to add a 5th .flat as a "fix'.


That seems frighteningly unclear. If you do need the "nuclear" option, why not have that be the case where you get into weird specificity hacks (flat.flat !important /hack/) and leave the common style clear in its intention (.flat !important)?


People who work in a team have a harder time absolutely knowing what's in their team's heads, though.


If you use em for say the bottom margin on a heading, it is going to be relative to the font size of that heading (if specified).

Where as a rem would always be relative to the root of the document, which is not always the desired effect when it comes to responsive typography.


I'm sure grandparent knows that. The problem with cascadingly using em is that you cannot easily deduce the derived em-value on the nth level (e.g. header > nav > div > a, each with their own em-based font-size; good luck reasoning about a's em-value).


My wife and I both quit after reading this book.


I love reading this kind of stuff. Can anyone recommend any similar resources?


Awesome but did you need to blatantly rip the Medium design?


Wasn't there recently an open-sourced Medium clone? This probably used that.


Exactly what I was thinking, it's pretty much a direct clone.


The typefaces are completely different as is the whitespace.


More thoughts on the idea here:

http://i.imgur.com/6B3hgaX.png


This info should really be on that page... Still if you want to enter this market I hope you will do better because I am afraid that those features and way more are already implemented in sites that do that.


I will be adding this content to the page tomorrow, I just wanted to get something up tonight.

I've had a good look around and am still yet to find a good end to end experience that allows you to easily swap used games.


It would of been nice if there more apps that were empowered by Glass. These apps are all just the same as any app I can get on my phone.


For me shame.css doesn't necessarily contain hacks. In mine you will find less thought out selectors that are added in haste and anything else that doesn't conform to the high standard I set myself.


This is very cool! Things like this are what's going to allow CSS to become the design language of future UI.

I can see this being used in a car where an interface is displayed over the top corner of a screen.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: