|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
706 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 | const BasePlugin = require('../plugin');
|
|---|
| 3 | const { IE_5_5, IE_6, IE_7 } = require('../dictionary/browsers');
|
|---|
| 4 | const { MEDIA_QUERY } = require('../dictionary/identifiers');
|
|---|
| 5 | const { ATRULE } = require('../dictionary/postcss');
|
|---|
| 6 |
|
|---|
| 7 | module.exports = class MediaSlash9 extends BasePlugin {
|
|---|
| 8 | /** @param {import('postcss').Result} result */
|
|---|
| 9 | constructor(result) {
|
|---|
| 10 | super([IE_5_5, IE_6, IE_7], [ATRULE], result);
|
|---|
| 11 | }
|
|---|
| 12 |
|
|---|
| 13 | /**
|
|---|
| 14 | * @param {import('postcss').AtRule} rule
|
|---|
| 15 | * @return {void}
|
|---|
| 16 | */
|
|---|
| 17 | detect(rule) {
|
|---|
| 18 | const params = rule.params.trim();
|
|---|
| 19 |
|
|---|
| 20 | if (params.toLowerCase() === 'screen\\9') {
|
|---|
| 21 | this.push(rule, {
|
|---|
| 22 | identifier: MEDIA_QUERY,
|
|---|
| 23 | hack: params,
|
|---|
| 24 | });
|
|---|
| 25 | }
|
|---|
| 26 | }
|
|---|
| 27 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.