ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

RTL and styling roots #450

Closed svoop closed 5 years ago

svoop commented 5 years ago

Two little commits:

To explain the latter, here's a copy from the commit message:

To restyle different parts of the application with a custom stylesheet, it's necessary to have elements to root your custom styles to.

This commit adds the two classes to the body tag:

  • - (e.g. "tickets-new")
  • "user-signed-in" if a use has previously authenticated himself

Say, you want to include the public new tickets form into another website by use of an iframe, you can match the styling by rooting your custom styles to "body.tickets-new:not(.user-signed-in)".

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-4.2%) to 90.583% when pulling 54b43e96b3acdfdcaae404287f454cee5a090f56 on svoop:rtl_and_styling_roots into 86ebaa8fcc06cc44335d7d864e57485bb9b07c71 on ivaldi:master.