Fixed table grid styles for IE8

The selector :not() isn't supported in IE8, replaced it with the "grid"
class.

- Fixes the log table style in IE8 (#5057)
- Fixes the users table layout bug in IE8
Merge pull request #5299 from owncloud/settings-ie8-tablegridstyles

Fixed table grid styles for IE8