-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons #46
Comments
I'd like to support the bootstrap styntax (not use their framework but keep their classing schema supported with out stuff )
would make a large green primary button.. |
+1 to andyfitz |
ok so the class .btn will do the obvious
the other classes like .btn-success will just do colours and text-shadows .btn-small and .btn-large will alter the padding with potential consideration for font-size and line-height basically all bootstrap classes should be supported and we'll add the conditionals like .icon which would add padding-left: 3em; as a placeholder for icon classes like .icon-star to create :before pseudo element insertions of icons. I'll write this stuff up in a code pen. |
Will .btn be generically supported? There are instances where using the |
We'll have to define the generic styles in the cascading order before we define the btn-* syntax style classes classes; otherwise using .btn-* wont overwrite the defaults . One thing to note is that the more base-level rules we write, the less DRY this becomes. we'll effectively be rendering the defauly background-color of an input[type="submit"] and then overwriting it with background-color: $rh-green; when we add the class .btn-success To answer your original question . yes We could write our code in a way that restricts our classes to set html elements but it would slow down client processing and make our sass a little more complex (because we would be constantly defining the safe elements for a given rule ) |
Is .btn in leiu of .button ? We already have a .button so wondering why we need to switch to this other format? |
We could keep it the same. I understand hungarian notation is not everyone's favourite (we can afford the extra bytes) Supporting both is fine but we should keep it to just the two (.button .btn) |
You will always find me leaning towards as being explicit as possible. That being said, I can understand how both using de-facto standards and Hungarian notation that is quite evident have their uses. |
I'm very much with you on that I reckon it's worth it for us to support bootstrap classes 1:1 but also add in our own full-named classes as a safeguard. Just keep it to the two and no more agreed? |
Is having Also keep in mind that it's not possible to use pseudo elements (such as |
You're quite right. good catch! generic styles opens a whole can of worms which we are really not ready to deal with. not all form elements allow pseudo elements leaving the default as unstyled might motivate us to fix the haml. you can use the failover background-image icon method but that would really suck to write a massive exceptions list just for the use case.... input[type=submit]{} should either have a single specific rule that is visually distinct. or preferably un-styled completely. What worries me is that we shouldn't be specifying a.btn, button.btn{} rules but rather just .btn and documenting which elements it is supported for. Element prefixed CSS rules are slower in the browser and it just makes for uglier selector code for us. |
So I guess this is a write a style rule for |
https://www.redhat.com/archives/converge-ui-devel/2012-September/msg00002.html - discussion happening on the mailing list |
Closing due to acceptance of https://github.com/Katello/converge-ui/pull/73 |
This is to track the discussion and design of buttons.
The text was updated successfully, but these errors were encountered: