source: trip-planner-front/node_modules/stylehacks/dist/plugins/important.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 762 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _plugin = _interopRequireDefault(require("../plugin"));
9
10var _browsers = require("../dictionary/browsers");
11
12var _postcss = require("../dictionary/postcss");
13
14function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
16var _default = (0, _plugin.default)([_browsers.IE_5_5, _browsers.IE_6, _browsers.IE_7], [_postcss.DECL], function (decl) {
17 const match = decl.value.match(/!\w/);
18
19 if (match) {
20 const hack = decl.value.substr(match.index, decl.value.length - 1);
21 this.push(decl, {
22 identifier: '!important',
23 hack
24 });
25 }
26});
27
28exports.default = _default;
29module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.