[Sugar-devel] browser detection

Sebastian Silva sebastian at fuentelibre.org
Sun May 21 16:01:54 EDT 2017


Hi Tim,

Sugar web uses the following conditional css link to include styles for
the XO:

    <link rel="stylesheet" media="screen and (device-width: 1200px) and
(device-height: 900px)"
            href="lib/sugar-web/graphics/css/sugar-200dpi.css">

I haven't run into other devices with this particular screen size, I
think it's a safe bet to try.

Regards
Sebastian


On 21/05/17 12:56, Tim Moody wrote:
> we are including xo-common.css for all user agents to internet in a
> box.  is there  a browser detection scheme I can use for an xo,
> especially one that I can use in javascript so we only include this
> css if the user has an xo?
>
> Thanks.
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20170521/00c0b358/attachment.html>


More information about the Sugar-devel mailing list