source: trip-planner-front/node_modules/stylehacks/dist/plugins/trailingSlashComma.js@ 76712b2

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

initial commit

  • Property mode set to 100644
File size: 1000 bytes
RevLine 
[6a3a178]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _plugin = _interopRequireDefault(require("../plugin"));
9
10var _isMixin = _interopRequireDefault(require("../isMixin"));
11
12var _browsers = require("../dictionary/browsers");
13
14var _identifiers = require("../dictionary/identifiers");
15
16var _postcss = require("../dictionary/postcss");
17
18function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
20var _default = (0, _plugin.default)([_browsers.IE_5_5, _browsers.IE_6, _browsers.IE_7], [_postcss.RULE], function (rule) {
21 if ((0, _isMixin.default)(rule)) {
22 return;
23 }
24
25 const {
26 selector
27 } = rule;
28 const trim = selector.trim();
29
30 if (trim.lastIndexOf(',') === selector.length - 1 || trim.lastIndexOf('\\') === selector.length - 1) {
31 this.push(rule, {
32 identifier: _identifiers.SELECTOR,
33 hack: selector
34 });
35 }
36});
37
38exports.default = _default;
39module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.