rafaelp / css_browser_selector

A very small javascript library that allows you to create browser specific CSS to be merged into your normal classes. No more hacks or mischievous code in your CSS code.
http://rafael.adm.br/css_browser_selector/
626 stars 168 forks source link

New UA string for Windows 8.1 #28

Open ninapavlich opened 10 years ago

ninapavlich commented 10 years ago

Hi,

Windows 8.1 user the user agent string now reads "Windows NT 6.3..."

I think this can be addressed by changing line 110 of css_browser_selector_dev.js to say: (is('windows nt 6.2') || is('windows nt 6.3')?' win8'

Thanks!

isarmstrong commented 10 years ago

Win 8.1 is a significant enough point release that I prefer to give it a new line. Good post though. We should really create a maintained fork of this project somewhere.

(is('windows nt 6.3')?' win8.1'
                    :is('windows nt 6.2')?' win8'
                    :is('windows nt 6.1')?' win7'
                    :is('windows nt 6.0')?' vista'
                    :is('windows nt 5.2') || is('windows nt 5.1') ? ' win_xp' 
                    :is('windows nt 5.0')?' win_2k'
                    :is('windows nt 4.0') || is('WinNT4.0') ?' win_nt'
                    : ''
                    )