2.0.4 • Published 9 years ago

yoso-browsehappy v2.0.4

Weekly downloads
24
License
none
Repository
github
Last release
9 years ago

Yoso Browsehappy

wercker status

An angular js directive for detect browser capabilities and show warning on missed app requirements.
If the browser missed required capabilities the user get a link to outdatedbrowser where he can update.
The browser capabilities are detected using Modernirz, which must be already implemented inside the project. All browser capabilities Modernitz detect can be used inside yoso browsehappy. To enable detetection add the required feature as parameter inside the directive tag.

alt example image

Install

$ npm install --save yoso-browsehappy

Usage

Inject directive to your model:

    angular.module('app.common.directives', [])
  .directive('yosoBrowsehappy', require('yoso-browsehappy'));

Insert into your template:

    <yoso-browsehappy rgba svg touch></yoso-browsehappy>

Add required feature as parameter inside the directive tag to enable detection for it.

Customize design

The colors are specified as SCSS variables, which can be simple overwritten/redefined. Following variables are available:

Variabledescriptiondefault value
$browsehappy--font-colorThe block font colorrgb(0, 0, 0)
$browsehappy--background-colorThe block background color. The block goes over the full viewport.rgb(255, 255, 255)
$browsehappy__message--font-colorParagraph font color. Is used for the message description.rgba(0, 0, 0, 0.6)
$browsehappy__signal--background-colorThe signal (opps) background color. Is also used as link font color and invalid list item background color.rgb(211, 61, 57)
$browsehappy__signal--font-colorThe signal (opps) font color. Is also used as list item font color.rgb(255, 255, 255)
$browsehappy__success--background-colorIs used for list success item background color.rgb(145, 205, 0)
$browsehappy__success--font-colorIs used for list success item font color.rgb(255, 255, 255)
2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago