Sha256: 68b95069ad30d7a08b78b1a70587128dbc3eef4f995e6bbc67a7101b6d3580ff

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

(function($) {

    $.noty.layouts.bottomRight = {
        name     : 'bottomRight',
        options  : { // overrides options

        },
        container: {
            object  : '<ul id="noty_bottomRight_layout_container" />',
            selector: 'ul#noty_bottomRight_layout_container',
            style   : function() {
                $(this).css({
                    bottom       : 20,
                    right        : 20,
                    position     : 'fixed',
                    width        : '310px',
                    height       : 'auto',
                    margin       : 0,
                    padding      : 0,
                    listStyleType: 'none',
                    zIndex       : 10000000
                });

                if(window.innerWidth < 600) {
                    $(this).css({
                        right: 5
                    });
                }
            }
        },
        parent   : {
            object  : '<li />',
            selector: 'li',
            css     : {}
        },
        css      : {
            display: 'none',
            width  : '310px'
        },
        addClass : ''
    };

})(jQuery);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noty-rails-2.2.9 vendor/assets/javascripts/noty/layouts/bottomRight.js