hrenpack-theme-style 3.0.0 → 3.0.1
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/README.md +13 -3
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -15,6 +15,11 @@ npm install hrenpack-theme-style
|
|
|
15
15
|
Добавьте следующие стили в ваш HTML-файл:
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
|
+
<!-- Подключите Bootstrap -->
|
|
19
|
+
<link rel="stylesheet" href="node_modules/bootstrap/dist/bootstrap.css">
|
|
20
|
+
<!-- Или -->
|
|
21
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css">
|
|
22
|
+
|
|
18
23
|
<!-- Обязательно именно этот id! -->
|
|
19
24
|
<link id="hrenpack-theme-stylesheet" rel="stylesheet" href="node_modules/hrenpack-theme-style/style.css">
|
|
20
25
|
<!-- Или, если не хотите устанавливать пакет -->
|
|
@@ -23,11 +28,16 @@ npm install hrenpack-theme-style
|
|
|
23
28
|
|
|
24
29
|
### Подключение скриптов
|
|
25
30
|
```html
|
|
26
|
-
<!-- Подключите
|
|
27
|
-
<script
|
|
31
|
+
<!-- Подключите зависимости -->
|
|
32
|
+
<script src="node_modules/hrenpack_js/url.js"></script>
|
|
33
|
+
<script src="node_modules/hrenpack_js/system.js"></script>
|
|
34
|
+
<script src="node_modules/hrenpack_js/auto.js"></script>
|
|
35
|
+
<script src="node_modules/hrenpack_js/cookie.js"></script>
|
|
28
36
|
|
|
37
|
+
<!-- Подключите основной скрипт темы -->
|
|
38
|
+
<script src="node_modules/hrenpack-theme-style/script.js"></script>
|
|
29
39
|
<!-- Для работы темной темы -->
|
|
30
|
-
<script
|
|
40
|
+
<script src="node_modules/hrenpack-theme-style/dark-theme.js"></script>
|
|
31
41
|
```
|
|
32
42
|
|
|
33
43
|
### Добавление кнопки переключения темы
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hrenpack-theme-style",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MagIlyasDOMA/hrenpack-theme-style.git"
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"homepage": "https://github.com/MagIlyasDOMA/hrenpack-theme-style#readme",
|
|
21
21
|
"description": "",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"typescript": "^5.9.3"
|
|
24
|
-
|
|
23
|
+
"typescript": "^5.9.3"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"bootstrap": "^5.3.8",
|
|
27
|
+
"hrenpack_js": "^3.1.0"
|
|
25
28
|
}
|
|
26
29
|
}
|