Skip to content
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

New Admin table styles #2159

Merged
merged 16 commits into from
Aug 17, 2017
Merged

Conversation

jhawthorn
Copy link
Contributor

This is a rebase of #2092 (with @tvdeyen's changes included)

@jhawthorn jhawthorn added this to the 2.4.0 milestone Aug 16, 2017
@jhawthorn jhawthorn added changelog:solidus_backend Changes to the solidus_backend gem UI labels Aug 16, 2017
jhawthorn and others added 16 commits August 17, 2017 12:53
Bootstap handles the bulk of the styling and we no longer need these extra
styles.
This increases data scanability.
Now that we have new table styles where table headings are aligned to
the left by default we want our table cells to follow suit.
These no longer apply any styles. If striping is desired this can be
much more easily accomplish by using nth-child in your CSS.
Now that we are using Bootstrap table styles we no longer need to push
around pixels like this.
This was necessary before switching to Bootstrap table styles but this
class now has no effect.
This will make sure that the table headers properly line up with their
content below.
Now that the majority of text is left aligned this will make multi-line
table cells easier to read.
The table cell for the sortable handle of the options types
form was not present for newly builded records. The cell should
always be present only the handle should be hidden.
The stock management table still had a lot of redundant styles.
Bootstrap already declares taht all table cells are vertically top aligned
The handle of sortable tables did not correctly align to the text content of the other table cells. Because of the new vertical alignment of our new table style we need to adjust this.

Also removes a duplicate `table td .handle` declaration.
Our new table style vertically top aligns all table cells. Sortable tables are one liners and often have input fields in them. In conjuntion with the sortable handle this leads to erroneous looking UI.
@jhawthorn jhawthorn force-pushed the admin-new-table-styles branch from eced77d to f772767 Compare August 17, 2017 19:54
Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the hard work everyone involved

@jhawthorn jhawthorn merged commit 1a82b1b into solidusio:master Aug 17, 2017
@tvdeyen
Copy link
Member

tvdeyen commented Aug 17, 2017

🎉 🎊 💪

@jhawthorn jhawthorn mentioned this pull request Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_backend Changes to the solidus_backend gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants