Open front-endian opened 8 years ago
@mjgiarlo Bootstrap 4 is going from Less to Sass. One thing that I've experienced so far is trying to override specificity and had to follow Bootstrap syntax over BEM. For example:
@cbeer Yeah, man!
This ticket is too big to be useful to developers. Nice conversation and all, but I would recommend piecing it out and closing this one.
This one is for discussion only. I believe @justcolin was going to take a gander at the UI changes we've been making the past few weeks (and possibly submit a PR). We may take up this work at the May Hydra Dev Congress in Ann Arbor. I'd like to leave it open for now, and leave it on the backlog, until we've ticketized the work here or punted it.
@mjgiarlo: I've been looking at the UI changes and have some comments, but since you all are moving so fast pushing 7.0 out the door I haven't really have the chance to get any comments or PR's in. I am waiting until the Dev Congress or after 7.0 is out the door.
Sounds like a plan. At a macro level, would you say the changes you've seen are a step in the right direction or digging a deeper hole?
There is a good amount of positive movement going on, and some lateral movement which is understandable. My primary concerns currently are sustainability and the designs, but that is a longer conversation.
@justcolin @mtribone As we start to clarify the paths forward for Sufia and Hyrax, I want to make sure we don't lose the good discussions here. Are there any bits from the above discussion that we should write up as actionable issues?
Keep specificity low where we can, but overriding Bootstrap makes for very specific code. Use classes over IDs to gradually add granular styling. For example .btn
.btn-alert
.btn-lg
I've also been using this guide as a reference: http://codeguide.co/#css
See this comment for a suggestion on how we could make it easier to make this issue actionable.
@justcolin Looks good.
@mtribone Would documenting that or similar practices in our Dev Guide (or elsewhere in our docs) be sufficient?
@mjgiarlo Yeah the Dev Guide is a good idea!
@justcolin @mtribone are either of you inclined to start building out a new section of the dev guide about this?
@mjgiarlo I certainly don't mind contributing to the Dev Guide, but it might be a bit of a slow burn while we crank out ScholarSphere. Are we at a point with Sufia that it is default enough?
@mjgiarlo I can contribute to it and may be a bit faster since I am not currently working on any Sufia projects.
@justcolin You have a good chunk of recommendations here: https://github.com/projecthydra/sufia/issues/1608#issue-137125284
@mtribone I am also looking into automating a lot of those recommendations and the recommendations in here using a linter.
@justcolin @mtribone Sounds good, y'all. Once you add the new recommendations to the wiki, hit me up and I'll be happy to review. Feel free to close this issue when that's ready. Thanks!
@justcolin @mtribone FWIW, the folks at UW have been keeping some somewhat related notes on their own wiki. I link that here in case there are interesting tidbits to repurpose for the Sufia Dev Guide: https://bitbucket.org/uwlib/druw/wiki/User%20Interface%20Customization%20in%20Sufia.md
HT: @metageeky & @younga3
@mjgiarlo The work from UW looks pretty good. I think we have several things to outline, if I'm following the conversations correctly
@mtribone @justcolin Solid! Thanks, you two.
Summary
While working on U-M's beta interface for our repository based on Sufia 7 we had a lot of trouble working with Sufia's current stylesheets. The following suggestions are centered around simplifying maintenance and making it easier for groups to customize Sufia's views as much or as little as they see fit.
Note: This issue should probably be dealt with as part of implementing whatever the UI working group comes up with instead of working on the current interface.
Suggestions
:hover
and:focus
actions, etc.Related
See #1594 for the start of this discussion See #1608 for the discussion of front-end development best practices