-
Notifications
You must be signed in to change notification settings - Fork 27
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
Bigger buttons #76
base: master
Are you sure you want to change the base?
Bigger buttons #76
Conversation
Looks like the right way to do it with CSS styles. But this is almost the same code just copied 2x into different parts of the To accommodate that it might be better to put these styles into a new .btn |
This is one of those tickets where doing a set of buttons that look nice in context of where they're placed is going to be difficult. On the sidenav specifically, there is limited room horizontally; any text that wraps due to the buttons will have lines spaced too far apart. It looks mostly okay for a "create" button (as you've implemented) because none of the text wraps, but it would look bad if this was done on any of the show pages where there are multiple actions. I'm also not sure that this ticket is necessary once there's a subnav row for navigation similar to what calagator.org has. This navigation was started as part of commit c2dab8d but later reverted as feedback suggested additional UI design was necessary and I ran out of creative momentum (see the with_subnav branch). Technical Feedback
@mbijon The way I structured the CSS and views does not really lend itself well to global CSS classes that tag elements for styles (i.e. "add .btn to make it look like a button"). It's structured so the classes and IDs help describe the structure of the document. The reasoning behind this was so that we could more easily reuse view files across multiple themes by only overriding the CSS which is an asset, packaged and delivered separately to the HTML / view code. In this case, another theme (i.e. calagator) might not want the links to look like buttons, which would require knowing and overriding all of the button props to undo the styling. The equivalent of what you're suggesting could be done with sass/scss mixins though. I did not make very good use of mixins when building out the CSS; this is something that could definitely be improved on. |
@dhedlund, I agree with your goal of abstracting appearance and structure. That would support distribution of theme-like CSS bundles so people can customize & share frontend UI better. ...but I'm not sure How about?
Any thoughts @MBSchneider? I think the 2nd option would just mean renaming one of your styles & get this done faster. |
@mbijon Sounds good to me. |
Thanks for all the feedback! This sounds good - I think I know what you're getting at. I'll be in with On Thu, Apr 10, 2014 at 9:30 PM, Daniel Hedlund [email protected]:
Matthew Schneider |
Lindsay had wanted the links to display as buttons for:
My thought was just to classes in the Sass files to style like buttons - let me know if that's a good way to go, or if there is a better way to do it.