Sha256: ca61512a0250d2e7bab3b4e16140985c7cf3a4dd8875bb0f72be8f051c7adc35

Contents?: true

Size: 982 Bytes

Versions: 4

Compression:

Stored size: 982 Bytes

Contents

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

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

            $(this).css({
                left: ($(window).width() - $(this).outerWidth(false)) / 2 + 'px'
            });
        }
    },
    parent   : {
        object  : '<li />',
        selector: 'li',
        css     : {}
    },
    css      : {
        display: 'none',
        width  : '310px'
    },
    addClass : ''
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
noty-rails-2.3.8 vendor/assets/javascripts/noty/layouts/topCenter.js
noty-rails-2.3.7 vendor/assets/javascripts/noty/layouts/topCenter.js
noty-rails-2.3.5 vendor/assets/javascripts/noty/layouts/topCenter.js
noty-rails-2.3.4 vendor/assets/javascripts/noty/layouts/topCenter.js