source: frontend/node_modules/tailwindcss/src/util/buildMediaQuery.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: 560 bytes
RevLine 
[9af201e]1export default function buildMediaQuery(screens) {
2 screens = Array.isArray(screens) ? screens : [screens]
3
4 return screens
5 .map((screen) => {
6 let values = screen.values.map((screen) => {
7 if (screen.raw !== undefined) {
8 return screen.raw
9 }
10
11 return [
12 screen.min && `(min-width: ${screen.min})`,
13 screen.max && `(max-width: ${screen.max})`,
14 ]
15 .filter(Boolean)
16 .join(' and ')
17 })
18
19 return screen.not ? `not all and ${values}` : values
20 })
21 .join(', ')
22}
Note: See TracBrowser for help on using the repository browser.