@itrocks/menu 0.1.2 → 0.2.0
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/package.json +3 -3
- package/css/menu.css +0 -33
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"description": "A flexible and accessible customizable main menu component with sidebar layout",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"sass": "^1.95",
|
|
10
|
-
"typescript": "^
|
|
10
|
+
"typescript": "^7.0"
|
|
11
11
|
},
|
|
12
12
|
"engines": {
|
|
13
13
|
"node": ">=24"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"url": "git+https://github.com/itrocks-ts/menu.git"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "tsc &&
|
|
54
|
+
"build": "tsc && node -e \"const fs=require('node:fs'),path=require('node:path');for(const file of fs.readdirSync('src'))if(file.endsWith('.html'))fs.copyFileSync(path.join('src',file),path.join('cjs',file))\" && npm run build:css",
|
|
55
55
|
"build:css": "sass --no-source-map src:css"
|
|
56
56
|
},
|
|
57
|
-
"version": "0.
|
|
57
|
+
"version": "0.2.0"
|
|
58
58
|
}
|
package/css/menu.css
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
body > .app.menu {
|
|
2
|
-
overflow: hidden auto;
|
|
3
|
-
width: 200px;
|
|
4
|
-
}
|
|
5
|
-
body > .app.menu a {
|
|
6
|
-
display: block;
|
|
7
|
-
}
|
|
8
|
-
body > .app.menu ul {
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
}
|
|
12
|
-
body > .app.menu > ul {
|
|
13
|
-
white-space: nowrap;
|
|
14
|
-
}
|
|
15
|
-
body > .app.menu > ul > li > h3 {
|
|
16
|
-
background-color: #ddd;
|
|
17
|
-
background-position: 8px center;
|
|
18
|
-
background-repeat: no-repeat;
|
|
19
|
-
background-size: 24px;
|
|
20
|
-
font-weight: normal;
|
|
21
|
-
margin: 2px 0;
|
|
22
|
-
padding: 1em 0 1em 40px;
|
|
23
|
-
}
|
|
24
|
-
body > .app.menu > ul > li > ul > li {
|
|
25
|
-
margin: 2px 0;
|
|
26
|
-
transition: background-color 0.1s;
|
|
27
|
-
}
|
|
28
|
-
body > .app.menu > ul > li > ul > li:hover {
|
|
29
|
-
background-color: #f4f4f4;
|
|
30
|
-
}
|
|
31
|
-
body > .app.menu > ul > li > ul > li > a {
|
|
32
|
-
padding: 0.8em 0 0.8em 10px;
|
|
33
|
-
}
|