source: frontend/node_modules/tailwindcss/lib/util/parseObjectStyles.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.0 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", {
3 value: true
4});
5Object.defineProperty(exports, "default", {
6 enumerable: true,
7 get: function() {
8 return parseObjectStyles;
9 }
10});
11const _postcss = /*#__PURE__*/ _interop_require_default(require("postcss"));
12const _postcssnested = /*#__PURE__*/ _interop_require_default(require("postcss-nested"));
13const _postcssjs = /*#__PURE__*/ _interop_require_default(require("postcss-js"));
14function _interop_require_default(obj) {
15 return obj && obj.__esModule ? obj : {
16 default: obj
17 };
18}
19function parseObjectStyles(styles) {
20 if (!Array.isArray(styles)) {
21 return parseObjectStyles([
22 styles
23 ]);
24 }
25 return styles.flatMap((style)=>{
26 return (0, _postcss.default)([
27 (0, _postcssnested.default)({
28 bubble: [
29 "screen"
30 ]
31 })
32 ]).process(style, {
33 parser: _postcssjs.default
34 }).root.nodes;
35 });
36}
Note: See TracBrowser for help on using the repository browser.