[openstreetmap/openstreetmap-website] Use bootstrap for striped tables (#2561)

Andy Allan notifications at github.com
Wed Mar 18 10:40:12 UTC 2020


This PR depends on #2511 being merged first.

This PR refactors the table striping, to use the built-in pure-CSS striping from bootstrap. Using the `cycle` function in views is no longer required with modern CSS and the nth-child selector has widespread support. https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/2561

-- Commit Summary --

  * Enable remaining bootstrap components
  * Use bootstrap table striping to replace hand-cycled table stripes

-- File Changes --

    D app/assets/stylesheets/_bootstrap-custom.scss (44)
    M app/assets/stylesheets/common.scss (15)
    M app/views/diary_entries/comments.html.erb (5)
    M app/views/traces/_trace.html.erb (5)
    M app/views/traces/index.html.erb (2)
    M app/views/user_blocks/_block.html.erb (18)
    M app/views/user_blocks/_blocks.html.erb (2)
    M app/views/users/_user.html.erb (4)
    M app/views/users/index.html.erb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/2561.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2561.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2561
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200318/892f23f9/attachment.htm>


More information about the rails-dev mailing list