Skip to content

[table] CSS refactor #425

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

Merged
merged 9 commits into from
May 19, 2017
Merged

[table] CSS refactor #425

merged 9 commits into from
May 19, 2017

Conversation

tmorehouse
Copy link
Member

When b-table had prop small, the arrows were not aligned top to bottom correctly (up to high).

Also removed erroneous . from table-responsive class

Coerce slide nodelist into an Array
When `b-table` had prop `small`, the arrows were not aligned top to bottom correctly (up to high).

Also removed erroneous `.` from `table-responsive` class
@tmorehouse tmorehouse requested a review from pi0 May 19, 2017 19:04
@@ -318,6 +320,29 @@
opacity: 0.3;
}

table.table-sm thead .sorting:before,
Copy link
Member

Choose a reason for hiding this comment

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

Can't we refactor it into a generalized prop selector? This is a LOT! :D

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I was thinking the same.

Maybe making asc/desc their own class, and maybe making disabled its own class.

Copy link
Member Author

Choose a reason for hiding this comment

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

so have the following classes:

  • sorting
  • asc
  • desc
  • disabled

Copy link
Member Author

Choose a reason for hiding this comment

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

I can try and refactor before the merge.

Refactored CSS to reduce footprint

Removed unused CSS
@tmorehouse
Copy link
Member Author

tmorehouse commented May 19, 2017

CSS has been refactored for much smaller footprint

Hopefully it should work ;-)

@tmorehouse tmorehouse changed the title [table] CSS for arrows on table-sm [table] CSS refactor May 19, 2017
@pi0
Copy link
Member

pi0 commented May 19, 2017

Nice +1

@pi0 pi0 merged commit e2f813f into bootstrap-vue:master May 19, 2017
@tmorehouse tmorehouse deleted the table-css branch May 20, 2017 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants