jongacnik / gr8

Customizable, functional css utilities
MIT License
174 stars 11 forks source link

text methods #2

Closed jondashkyle closed 7 years ago

jondashkyle commented 7 years ago

added two new utils.

text-overflow

.toi{text-overflow:initial}
.toc{text-overflow:clip}
.toe{text-overflow:ellipsis}

white-space

.wsn{white-space:normal}
.wsn{white-space:nowrap}
.wsp{white-space:pre}
.wsi{white-space:inherit}
jondashkyle commented 7 years ago

noticing now there is a naming conflict between .wsn{white-space:normal} and .wsn{white-space:nowrap}. is there a built in method of avoiding this, or is it something which requires custom naming by using an obj/key?

jondashkyle commented 7 years ago

noticed that the key/obj convention is used elsewhere in these cases, so went ahead and followed that rule.

jongacnik commented 7 years ago

these look good. and re: naming, yep, exactly. no built-in way to handle that atm, I think the little extra diligence to manually avoid isn't too bad.