Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1000 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = void 0;
|
---|
7 |
|
---|
8 | var _plugin = _interopRequireDefault(require("../plugin"));
|
---|
9 |
|
---|
10 | var _isMixin = _interopRequireDefault(require("../isMixin"));
|
---|
11 |
|
---|
12 | var _browsers = require("../dictionary/browsers");
|
---|
13 |
|
---|
14 | var _identifiers = require("../dictionary/identifiers");
|
---|
15 |
|
---|
16 | var _postcss = require("../dictionary/postcss");
|
---|
17 |
|
---|
18 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
19 |
|
---|
20 | var _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 |
|
---|
38 | exports.default = _default;
|
---|
39 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.