fix(core): update
This commit is contained in:
parent
b70077c43f
commit
0bb66e8221
@ -11,7 +11,7 @@ export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
|
|||||||
|
|
||||||
export const cssForTablet = (cssArg: CSSResult) => {
|
export const cssForTablet = (cssArg: CSSResult) => {
|
||||||
return unsafeCSS(`
|
return unsafeCSS(`
|
||||||
@container wccToolsViewport (max-width: ${tablet}px) {
|
@container wccToolsViewport size(max-width: ${tablet}px) {
|
||||||
${cssArg.cssText}
|
${cssArg.cssText}
|
||||||
}
|
}
|
||||||
@media (max-width: ${tablet}px) {
|
@media (max-width: ${tablet}px) {
|
||||||
@ -22,7 +22,7 @@ export const cssForTablet = (cssArg: CSSResult) => {
|
|||||||
|
|
||||||
export const cssForPhablet = (cssArg: CSSResult) => {
|
export const cssForPhablet = (cssArg: CSSResult) => {
|
||||||
return unsafeCSS(`
|
return unsafeCSS(`
|
||||||
@container wccToolsViewport (max-width: ${phablet}px) {
|
@container wccToolsViewport size(max-width: ${phablet}px) {
|
||||||
${cssArg.cssText}
|
${cssArg.cssText}
|
||||||
}
|
}
|
||||||
@media (max-width: ${phablet}px) {
|
@media (max-width: ${phablet}px) {
|
||||||
@ -33,7 +33,7 @@ export const cssForPhablet = (cssArg: CSSResult) => {
|
|||||||
|
|
||||||
export const cssForPhone = (cssArg: CSSResult) => {
|
export const cssForPhone = (cssArg: CSSResult) => {
|
||||||
return unsafeCSS(`
|
return unsafeCSS(`
|
||||||
@container wccToolsViewport (max-width: ${phone}px) {
|
@container wccToolsViewport size(max-width: ${phone}px) {
|
||||||
${cssArg.cssText}
|
${cssArg.cssText}
|
||||||
}
|
}
|
||||||
@media (max-width: ${phone}px) {
|
@media (max-width: ${phone}px) {
|
||||||
|
Loading…
Reference in New Issue
Block a user