Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
a1bd7f74a7 | |||
6ff89390b7 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@designestate/dees-domtools",
|
||||
"version": "1.0.97",
|
||||
"version": "1.0.98",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@designestate/dees-domtools",
|
||||
"version": "1.0.97",
|
||||
"version": "1.0.98",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@apiglobal/typedrequest": "^1.0.65",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@designestate/dees-domtools",
|
||||
"version": "1.0.97",
|
||||
"version": "1.0.98",
|
||||
"private": false,
|
||||
"description": "tools to simplify complex css structures",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { DomTools } from './domtools.classes.domtools';
|
||||
|
||||
import { CSSResult } from 'lit-element';
|
||||
import { CSSResult, unsafeCSS } from 'lit-element';
|
||||
|
||||
export const desktop = 1240;
|
||||
export const tablet = 1024;
|
||||
@ -10,34 +10,34 @@ export const phone = 400;
|
||||
export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
|
||||
|
||||
export const cssForTablet = (cssArg: CSSResult) => {
|
||||
return `
|
||||
return unsafeCSS(`
|
||||
@container wccToolsViewport (min-width: ${tablet}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
@media (min-width: ${tablet}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
`;
|
||||
`);
|
||||
};
|
||||
|
||||
export const cssForPhablet = (cssArg: CSSResult) => {
|
||||
return `
|
||||
return unsafeCSS(`
|
||||
@container wccToolsViewport (min-width: ${phablet}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
@media (min-width: ${phablet}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
`;
|
||||
`);
|
||||
};
|
||||
|
||||
export const cssForPhone = (cssArg: CSSResult) => {
|
||||
return `
|
||||
return unsafeCSS(`
|
||||
@container wccToolsViewport (min-width: ${phone}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
@media (min-width: ${phone}px) {
|
||||
${cssArg.cssText}
|
||||
}
|
||||
`;
|
||||
`);
|
||||
};
|
||||
|
Reference in New Issue
Block a user