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 (yay!)

@karlitschek @ringmaster @butonic @DeepDiver1975 please review