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

spacing and presentation enhancements of gridfield #122

Open
sunnysideup opened this issue Jul 23, 2018 · 2 comments
Open

spacing and presentation enhancements of gridfield #122

sunnysideup opened this issue Jul 23, 2018 · 2 comments

Comments

@sunnysideup
Copy link
Contributor

Affected Version

SS4

Description

image

There seems to be too much spacing here in places where things should be tight (e.g. too much spacing between headers and rows) and perhaps also vice versa.

This is of course part of the core GridField, but it may be an idea to at least let the sortable gridfield do it a little better?

@sunnysideup
Copy link
Contributor Author

here is what can be achieved in a few minutes with CSS (and my limited abilities):

image

@sunnysideup
Copy link
Contributor Author

sunnysideup commented Jul 23, 2018

This is the CSS I added:

table.grid-field__table  .sortablerowsheading {
  padding-top: 0!important; padding-bottom: 0!important; background-color: #ddd;
  border-bottom: 1px solid #aaa;
}

table.grid-field__table th.main {
  border-bottom: 1px solid #aaa;
  background-color: #ccc;
}

OR

table.grid-field__table  .sortablerowsheading {
  padding-top: 0!important; padding-bottom: 0!important; 
  background-color: #dbe0e9;
  border-bottom: 1px solid #aaa;
}

table.grid-field__table th.main {
  border-bottom: 1px solid #bbb;
  background-color: #ced5e1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants