Sha256: 186713063b647525ba871d4f97b0f17535b1d88d420641e951f53aa3594beeff

Contents?: true

Size: 1.37 KB

Versions: 18

Compression:

Stored size: 1.37 KB

Contents

(function() {
  var BlockLogical, Declaration,
    extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
    hasProp = {}.hasOwnProperty;

  Declaration = require('../declaration');

  BlockLogical = (function(superClass) {
    extend(BlockLogical, superClass);

    function BlockLogical() {
      return BlockLogical.__super__.constructor.apply(this, arguments);
    }

    BlockLogical.names = ['border-block-start', 'border-block-end', 'margin-block-start', 'margin-block-end', 'padding-block-start', 'padding-block-end', 'border-before', 'border-after', 'margin-before', 'margin-after', 'padding-before', 'padding-after'];

    BlockLogical.prototype.prefixed = function(prop, prefix) {
      return prefix + (prop.indexOf('-start') !== -1 ? prop.replace('-block-start', '-before') : prop.replace('-block-end', '-after'));
    };

    BlockLogical.prototype.normalize = function(prop) {
      if (prop.indexOf('-before') !== -1) {
        return prop.replace('-before', '-block-start');
      } else {
        return prop.replace('-after', '-block-end');
      }
    };

    return BlockLogical;

  })(Declaration);

  module.exports = BlockLogical;

}).call(this);

Version data entries

18 entries across 18 versions & 8 rubygems

Version Path
ilog-0.4.1 node_modules/autoprefixer/lib/hacks/block-logical.js
ilog-0.4.0 node_modules/autoprefixer/lib/hacks/block-logical.js
ilog-0.3.3 node_modules/autoprefixer/lib/hacks/block-logical.js
optimacms-0.4.3 spec/dummy/node_modules/autoprefixer/lib/hacks/block-logical.js
optimacms-0.4.2 spec/dummy/node_modules/autoprefixer/lib/hacks/block-logical.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/autoprefixer/lib/hacks/block-logical.js
lux_assets-0.2.11 ./node_modules/autoprefixer/lib/hacks/block-logical.js
lux_assets-0.2.9 ./node_modules/autoprefixer/lib/hacks/block-logical.js
lux_assets-0.2.4 ./node_modules/autoprefixer/lib/hacks/block-logical.js
lux_assets-0.2.2 ./node_modules/autoprefixer/lib/hacks/block-logical.js
lux_assets-0.2.1 ./node_modules/autoprefixer/lib/hacks/block-logical.js
locomotivecms-3.4.0 app/javascript/node_modules/autoprefixer/lib/hacks/block-logical.js
cortex-0.1.3 spec/dummy/node_modules/cssnano/node_modules/autoprefixer/lib/hacks/block-logical.js
lanes-0.8.0 node_modules/autoprefixer/lib/hacks/block-logical.js
blackboard-3.1.9 lib/site_template/node_modules/autoprefixer/lib/hacks/block-logical.js
gulp_assets-1.0.0.pre.5 template/node_modules/autoprefixer/lib/hacks/block-logical.js
gulp_assets-1.0.0.pre.4 template/node_modules/autoprefixer/lib/hacks/block-logical.js
gulp_assets-1.0.0.pre.3 template/node_modules/autoprefixer/lib/hacks/block-logical.js