HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Adding User-Agents to the Body Class

phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP
edited August 2015 in Feedback

Hi all,

I'm working for quiet some years with Contao (www.contao.org). It has a feature which implementation would be a good add in Vanilla. Adding all the Agents information like Browsername, Browserversion, Devicename and so on to the Body Class. In Contao it looks like this.

Still some browser have a different rendering and that makes it helpfull to write specific fixes for certain browsers.

body {border-top: 10px solid #DDD;}
body.firefox {border-top: 11px solid #DDD;}

.crazyMenuNotEasyToStyle {margin: 4px;}
.mac.firefox.gecko.fx39 .crazyMenuNotEasyToStyle {margin: 5px;}

Here a screen what it looks like in Contao.

What do you think?!

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Tagged:

Comments

Sign In or Register to comment.