Compare commits

...

15 Commits

Author SHA1 Message Date
b436fe77b0 2.0.7 2022-04-19 18:13:26 +02:00
3de788bb75 fix(core): update 2022-04-19 18:13:26 +02:00
d50e320f17 2.0.6 2022-04-14 16:42:52 +02:00
a7532c8816 fix(core): update 2022-04-14 16:42:51 +02:00
2d5944cdd7 2.0.5 2022-03-29 15:54:06 +02:00
5a8527068a fix(core): update 2022-03-29 15:54:06 +02:00
ffd0bb925a 2.0.4 2022-03-25 16:03:40 +01:00
4a5fb3ef4b fix(core): update 2022-03-25 16:03:40 +01:00
a059c268af 2.0.3 2022-03-25 14:01:44 +01:00
714aa77839 fix(core): update 2022-03-25 14:01:44 +01:00
2527e6e586 2.0.2 2022-03-25 02:28:39 +01:00
88f7f20b6f fix(core): update 2022-03-25 02:28:39 +01:00
8e23b7ebec 2.0.1 2022-03-18 14:26:31 +01:00
b3d12c39bf fix(core): update 2022-03-18 14:26:31 +01:00
d102d5a7e6 2.0.0 2022-03-16 13:42:30 +01:00
4 changed files with 1477 additions and 1528 deletions

2959
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.115",
"version": "2.0.7",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",
@ -14,27 +14,27 @@
"format": "(gitzone format)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.56",
"@gitzone/tsbundle": "^1.0.98",
"@gitzone/tstest": "^1.0.68",
"@pushrocks/tapbundle": "^5.0.2",
"@types/node": "^17.0.21",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.102",
"@gitzone/tstest": "^1.0.70",
"@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.23",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@apiglobal/typedrequest": "^1.0.65",
"@designestate/dees-comms": "^1.0.16",
"@apiglobal/typedrequest": "^2.0.3",
"@designestate/dees-comms": "^1.0.22",
"@pushrocks/lik": "^5.0.4",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartrouter": "^1.0.12",
"@pushrocks/smartrx": "^2.0.25",
"@pushrocks/smartstate": "^1.0.23",
"@pushrocks/webrequest": "^2.0.15",
"@pushrocks/smartstate": "^2.0.0",
"@pushrocks/webrequest": "^3.0.3",
"@pushrocks/websetup": "^3.0.16",
"@pushrocks/webstore": "^1.0.18",
"lit": "^2.2.1",
"lit": "^2.2.2",
"sweet-scroll": "^4.0.0"
},
"files": [

View File

@ -43,10 +43,6 @@ export const globalBaseStyles: string = css`
format('woff2');
}
/* Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100;300;400');
/* global body styles */
body {
margin: 0px;

View File

@ -2,16 +2,28 @@ import { DomTools } from './domtools.classes.domtools.js';
import { CSSResult, unsafeCSS } from 'lit';
export const desktop = 1240;
export const desktop = 1600;
export const notebook = 1240;
export const tablet = 1024;
export const phablet = 600;
export const phone = 400;
export type TViewport = 'native' | 'desktop' | 'tablet' | 'phablet' | 'phone';
export const cssForNotebook = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport (max-width: ${notebook}px) {
${cssArg.cssText}
}
@media (max-width: ${notebook}px) {
${cssArg.cssText}
}
`);
};
export const cssForTablet = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport size(max-width: ${tablet}px) {
@container wccToolsViewport (max-width: ${tablet}px) {
${cssArg.cssText}
}
@media (max-width: ${tablet}px) {
@ -22,7 +34,7 @@ export const cssForTablet = (cssArg: CSSResult) => {
export const cssForPhablet = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport size(max-width: ${phablet}px) {
@container wccToolsViewport (max-width: ${phablet}px) {
${cssArg.cssText}
}
@media (max-width: ${phablet}px) {
@ -33,7 +45,7 @@ export const cssForPhablet = (cssArg: CSSResult) => {
export const cssForPhone = (cssArg: CSSResult) => {
return unsafeCSS(`
@container wccToolsViewport size(max-width: ${phone}px) {
@container wccToolsViewport (max-width: ${phone}px) {
${cssArg.cssText}
}
@media (max-width: ${phone}px) {