Re:Semantic UI – A language for sharing UI
by donpark on Friday September 13, 2013 @12:25PM
(#6381458)
I wouldn't call writing "ui large red labeled icon button" in HTML semantic anything. I'd called it confusing orgy of style and content.
[ Parent
| on HN ]
Re:Semantic UI – A language for sharing UI
by hablahaha on Friday September 13, 2013 @12:43PM
(#6381569)
I agree. First of all, why is a ui class necessary? Second, what's large? The icon, the button, the label? All of it? What's red, the icon or the button? Certainly not both. There's a reason we have classes like "btn btn-small icon-* icon-2x". A large icon in a small button. I think those names are more 'semantic'.
Re:Semantic UI – A language for sharing UI
by jonny_eh on Friday September 13, 2013 @03:06PM
(#6382462)
I assume the ui class is there for namespacing, which I think is a good idea.
Re:Semantic UI – A language for sharing UI
by derefr on Friday September 13, 2013 @12:57PM
(#6381644)
I don't see any content; those are all stylistic properties.
Re:Semantic UI – A language for sharing UI
by nnash on Friday September 13, 2013 @01:10PM
(#6381722)
Yeah that one was too specific for my liking I don't think you should use colors names like 'red' as a class. What if you decide you don't want it to be red?
Re:Semantic UI – A language for sharing UI
by lowboy on Friday September 13, 2013 @01:39PM
(#6381895)
Remove the "red" class from the element?
I used to eschew any and all presentational classes, but it makes development quicker for me to use them occasionally, esp with css frameworks.
Re:Semantic UI – A language for sharing UI
by nnash on Saturday September 14, 2013 @06:51PM
(#6387372)
I guess my point was you'd have to refactor your html and css as well as the property itself
Re:Semantic UI – A language for sharing UI
by superluminary on Friday September 13, 2013 @02:54PM
(#6382383)
Use a SASS mixin instead? @include red;