From 13566667005e5ef785e235b123a1b5d1076578c9 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 19 Apr 2022 18:16:20 +0200 Subject: [PATCH] fix(core): update --- ts/domtools.css.breakpoints.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ts/domtools.css.breakpoints.ts b/ts/domtools.css.breakpoints.ts index 891fc75..3687800 100644 --- a/ts/domtools.css.breakpoints.ts +++ b/ts/domtools.css.breakpoints.ts @@ -10,6 +10,17 @@ export const phone = 400; export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone'; +export const cssForDesktop = (cssArg: CSSResult) => { + return unsafeCSS(` + @container wccToolsViewport (min-width: ${desktop}px) { + ${cssArg.cssText} + } + @media (min-width: ${desktop}px) { + ${cssArg.cssText} + } + `); +}; + export const cssForNotebook = (cssArg: CSSResult) => { return unsafeCSS(` @container wccToolsViewport (max-width: ${notebook}px) {