@leuffen/themejs1 1.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo_styles.scss +6 -0
- package/dist/helper/mouse-to-css.d.ts +1 -0
- package/dist/helper/mouse-to-css.js +20 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.module.js +1 -2
- package/package.json +10 -5
- package/src/default/loader.scss +53 -0
- package/src/helper/mouse-to-css.ts +11 -0
- package/src/index.ts +1 -2
- package/src/vendor/bootstrap-icons.scss +4022 -0
- package/src/vendor/ubuntu.scss +38 -0
- package/theme1.scss +0 -0
- package/dist/template/hero/hero1.d.ts +0 -20
- package/dist/template/hero/hero1.js +0 -77
- package/dist/template/navbar/navbar.d.ts +0 -16
- package/dist/template/navbar/navbar.js +0 -122
- package/src/template/_variables.scss +0 -29
- package/src/template/hero/hero1.scss +0 -73
- package/src/template/hero/hero1.ts +0 -78
- package/src/template/navbar/navbar.scss +0 -133
- package/src/template/navbar/navbar.ts +0 -137
- package/style.scss +0 -4
- package/style_embed.scss +0 -1
- package/style_late.scss +0 -2
package/demo_styles.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const embed_1 = require("@kasimirjs/embed");
|
|
13
|
+
let d = new embed_1.Debouncer(10);
|
|
14
|
+
window.addEventListener("mousemove", (e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
yield d.debounce();
|
|
16
|
+
document.body.style.setProperty("--mouse-x", (e.clientX / window.innerWidth) * 100 + "");
|
|
17
|
+
document.body.style.setProperty("--mouse-y", (e.clientY / window.innerHeight) * 100 + "");
|
|
18
|
+
}));
|
|
19
|
+
document.body.style.setProperty("--mouse-x", 1 + "");
|
|
20
|
+
document.body.style.setProperty("--mouse-y", 1 + "");
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.module.js
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leuffen/themejs1",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.module.js",
|
|
7
7
|
"directories": {
|
|
8
8
|
"doc": "docs",
|
|
9
|
-
"
|
|
9
|
+
"themes": "themes"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"/dist",
|
|
13
13
|
"/src",
|
|
14
|
+
"/templates",
|
|
14
15
|
"*.scss"
|
|
15
16
|
],
|
|
16
17
|
"workspaces": [
|
|
@@ -18,15 +19,19 @@
|
|
|
18
19
|
],
|
|
19
20
|
"author": "",
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@leuffen/jodastyle": "^1.0
|
|
22
|
+
"@leuffen/jodastyle": "^1.0",
|
|
23
|
+
"@kasimirjs/embed": "^1.0.8"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
+
"bootstrap": "^5.3.0",
|
|
27
|
+
"markdown-it": "^13.0.1",
|
|
28
|
+
"markdown-it-attrs": "^4.1.6",
|
|
26
29
|
"css-loader": "^6.7.1",
|
|
30
|
+
"dart-sass": "^1.25.0",
|
|
27
31
|
"esbuild-loader": "^2.20.0",
|
|
28
32
|
"mini-css-extract-plugin": "^2.6.1",
|
|
29
33
|
"raw-loader": "^4.0.2",
|
|
34
|
+
"sass": "^1.56.1",
|
|
30
35
|
"sass-loader": "^13.0.2",
|
|
31
36
|
"style-loader": "^3.3.1",
|
|
32
37
|
"webpack": "^5.75.0",
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
html.loader::before {
|
|
2
|
+
content: "";
|
|
3
|
+
font-family: sans-serif;
|
|
4
|
+
font-size: 12px;
|
|
5
|
+
line-height: 10px;
|
|
6
|
+
position: fixed;
|
|
7
|
+
text-align: center;
|
|
8
|
+
color: white;
|
|
9
|
+
margin-top: 1px;
|
|
10
|
+
z-index: 2;
|
|
11
|
+
-webkit-animation: leu--site-loader 60s ease-out;
|
|
12
|
+
animation: leu--site-loader 30s ease-out;
|
|
13
|
+
display: block;
|
|
14
|
+
background-color: indianred;
|
|
15
|
+
height: 3px;
|
|
16
|
+
width: 35%;
|
|
17
|
+
top: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
html.loader::after {
|
|
21
|
+
content: "";
|
|
22
|
+
font-family: sans-serif;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
line-height: 10px;
|
|
25
|
+
position: fixed;
|
|
26
|
+
text-align: center;
|
|
27
|
+
color: white;
|
|
28
|
+
margin-top: 1px;
|
|
29
|
+
-webkit-animation: leu--site-loader 60s ease-out;
|
|
30
|
+
animation: leu--site-loader 60s ease-out;
|
|
31
|
+
display: block;
|
|
32
|
+
background-color: darkgray;
|
|
33
|
+
height: 3px;
|
|
34
|
+
top: 0;
|
|
35
|
+
width: 100%;
|
|
36
|
+
right: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes leu--site-loader {
|
|
40
|
+
3% {
|
|
41
|
+
width: 75%;
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
5% {
|
|
45
|
+
width: 90%;
|
|
46
|
+
}
|
|
47
|
+
10% {
|
|
48
|
+
width: 95%;
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {Debouncer} from "@kasimirjs/embed";
|
|
2
|
+
|
|
3
|
+
let d = new Debouncer(10);
|
|
4
|
+
window.addEventListener("mousemove", async (e) => {
|
|
5
|
+
await d.debounce()
|
|
6
|
+
document.body.style.setProperty("--mouse-x", (e.clientX / window.innerWidth) * 100 + "");
|
|
7
|
+
document.body.style.setProperty("--mouse-y", (e.clientY / window.innerHeight) * 100 + "");
|
|
8
|
+
});
|
|
9
|
+
document.body.style.setProperty("--mouse-x", 1 + "");
|
|
10
|
+
document.body.style.setProperty("--mouse-y", 1 + "");
|
|
11
|
+
|
package/src/index.ts
CHANGED