source: frontend/node_modules/stylehacks/src/plugins/mediaSlash0.js

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: 677 bytes
Line 
1'use strict';
2const BasePlugin = require('../plugin');
3const { IE_8 } = require('../dictionary/browsers');
4const { MEDIA_QUERY } = require('../dictionary/identifiers');
5const { ATRULE } = require('../dictionary/postcss');
6
7module.exports = class MediaSlash0 extends BasePlugin {
8 /** @param {import('postcss').Result} result */
9 constructor(result) {
10 super([IE_8], [ATRULE], result);
11 }
12 /**
13 * @param {import('postcss').AtRule} rule
14 * @return {void}
15 */
16 detect(rule) {
17 const params = rule.params.trim();
18
19 if (params.toLowerCase() === '\\0screen') {
20 this.push(rule, {
21 identifier: MEDIA_QUERY,
22 hack: params,
23 });
24 }
25 }
26};
Note: See TracBrowser for help on using the repository browser.