dolphincss 1.3.6 → 1.3.7
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 +38 -0
- package/core-templates/dolphin-file-tree.html +152 -0
- package/dist/assets/css-DgFYAglH.css +1 -0
- package/dist/assets/main-DcIhIwoX.css +1 -0
- package/dist/index.html +1 -1
- package/dolphin-css.css +2 -2
- package/marker.json +4 -0
- package/package.json +5 -3
- package/src/ub-vanilla.js +1077 -0
- package/dist/assets/main-CQGewVI6.css +0 -1
package/README.md
CHANGED
|
@@ -98,6 +98,44 @@ import 'dolphincss/dolphin-css.css';
|
|
|
98
98
|
|
|
99
99
|
---
|
|
100
100
|
|
|
101
|
+
## 🛜 Offline & CDN Usage
|
|
102
|
+
|
|
103
|
+
For static HTML pages or offline projects, you can use the minified files directly without npm/Node.js setup.
|
|
104
|
+
|
|
105
|
+
### 1. CDN Links (jsDelivr)
|
|
106
|
+
Include these links directly in your HTML for zero-install setup:
|
|
107
|
+
* **CSS (Global Styles & Animations):**
|
|
108
|
+
```html
|
|
109
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dolphincss@latest/dolphin-css.css">
|
|
110
|
+
```
|
|
111
|
+
* **JS (Vanilla Utility Builder):**
|
|
112
|
+
```html
|
|
113
|
+
<script src="https://cdn.jsdelivr.net/npm/dolphincss@latest/src/ub-vanilla.js"></script>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### 2. Download Commands (For Offline Usage)
|
|
117
|
+
Run these commands in your project folder to download the files locally:
|
|
118
|
+
|
|
119
|
+
#### Using `curl`:
|
|
120
|
+
```bash
|
|
121
|
+
# Download CSS
|
|
122
|
+
curl -o dolphin-css.min.css https://cdn.jsdelivr.net/npm/dolphincss@latest/dolphin-css.css
|
|
123
|
+
|
|
124
|
+
# Download Vanilla Utility Builder JS
|
|
125
|
+
curl -o ub-vanilla.min.js https://cdn.jsdelivr.net/npm/dolphincss@latest/src/ub-vanilla.js
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### Using `wget`:
|
|
129
|
+
```bash
|
|
130
|
+
# Download CSS
|
|
131
|
+
wget -O dolphin-css.min.css https://cdn.jsdelivr.net/npm/dolphincss@latest/dolphin-css.css
|
|
132
|
+
|
|
133
|
+
# Download Vanilla Utility Builder JS
|
|
134
|
+
wget -O ub-vanilla.min.js https://cdn.jsdelivr.net/npm/dolphincss@latest/src/ub-vanilla.js
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
101
139
|
## 🧠 IoT-CSS & Dynamic OKLCH Engine (`dolphincss/ub`)
|
|
102
140
|
|
|
103
141
|
DolphinCSS includes a revolutionary runtime style engine called **`ub`** (Utility Builder). It allows you to generate mathematically computed OKLCH shades (0-255 scaling) and gradients on the fly, with native browser styling speed, O(1) LRU class caching, and automatic text contrast adjustments.
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<div class="dolphin-file-explorer" data-dolphin-vfs="root" style="
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 600px;
|
|
4
|
+
background: #1e1e1e;
|
|
5
|
+
color: #cccccc;
|
|
6
|
+
font-family: Consolas, 'Courier New', monospace;
|
|
7
|
+
border-radius: 12px;
|
|
8
|
+
border: 1px solid #333;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
box-shadow: 0 20px 40px rgba(0,0,0,0.5);
|
|
11
|
+
">
|
|
12
|
+
<!-- Sidebar (File Tree) -->
|
|
13
|
+
<div class="sidebar" style="
|
|
14
|
+
width: 260px;
|
|
15
|
+
background: #252526;
|
|
16
|
+
border-right: 1px solid #3c3c3c;
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
height: 100%;
|
|
20
|
+
">
|
|
21
|
+
<!-- Header -->
|
|
22
|
+
<div style="
|
|
23
|
+
padding: 10px 14px;
|
|
24
|
+
font-size: 11px;
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
letter-spacing: 1px;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
color: #858585;
|
|
29
|
+
border-bottom: 1px solid #3c3c3c;
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 6px;
|
|
34
|
+
">
|
|
35
|
+
<span>EXPLORER</span>
|
|
36
|
+
<div style="display: flex; align-items: center; gap: 8px;">
|
|
37
|
+
<span style="cursor:pointer; font-weight: bold; font-size:12px; color: #007acc;" data-vfs-new-file title="New File">+File</span>
|
|
38
|
+
<span style="cursor:pointer; font-weight: bold; font-size:12px; color: #007acc;" data-vfs-new-folder title="New Folder">+Folder</span>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- Mount local windows directory button -->
|
|
43
|
+
<div style="padding: 10px 14px; border-bottom: 1px solid #3c3c3c; display: flex; flex-direction: column; gap: 6px;">
|
|
44
|
+
<button data-vfs-mount style="
|
|
45
|
+
background: #0e639c;
|
|
46
|
+
color: #ffffff;
|
|
47
|
+
border: none;
|
|
48
|
+
padding: 6px 12px;
|
|
49
|
+
border-radius: 4px;
|
|
50
|
+
font-size: 11px;
|
|
51
|
+
font-family: var(--font-outfit), sans-serif;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: background 0.15s;
|
|
55
|
+
text-align: center;
|
|
56
|
+
" onmouseover="this.style.backgroundColor='#1177bb'" onmouseout="this.style.backgroundColor='#0e639c'">
|
|
57
|
+
📁 Mount Local Directory
|
|
58
|
+
</button>
|
|
59
|
+
<span style="font-size: 9px; color: #858585; text-align: center; line-height: 1.3;">
|
|
60
|
+
Mount any folder on your Windows computer directly to view and edit files.
|
|
61
|
+
</span>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<!-- Tree View Container -->
|
|
65
|
+
<div id="file-tree-container" data-vfs-tree class="dolphin-scrollbar" style="
|
|
66
|
+
flex: 1;
|
|
67
|
+
overflow-y: auto;
|
|
68
|
+
padding: 8px 0;
|
|
69
|
+
">
|
|
70
|
+
<!-- Generated dynamically by dolphin-client VFS engine -->
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<!-- Main Content (Editor Area) -->
|
|
75
|
+
<div class="editor-area" style="
|
|
76
|
+
flex: 1;
|
|
77
|
+
background: #1e1e1e;
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
height: 100%;
|
|
81
|
+
">
|
|
82
|
+
<!-- Tab / Breadcrumb -->
|
|
83
|
+
<div style="
|
|
84
|
+
height: 38px;
|
|
85
|
+
background: #2d2d2d;
|
|
86
|
+
border-bottom: 1px solid #3c3c3c;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
padding: 0 16px;
|
|
91
|
+
font-size: 13px;
|
|
92
|
+
color: #969696;
|
|
93
|
+
">
|
|
94
|
+
<span id="active-file-crumb" data-vfs-breadcrumbs>No file open</span>
|
|
95
|
+
|
|
96
|
+
<!-- Save Button -->
|
|
97
|
+
<button data-vfs-save style="
|
|
98
|
+
background: #007acc;
|
|
99
|
+
color: #ffffff;
|
|
100
|
+
border: none;
|
|
101
|
+
padding: 4px 12px;
|
|
102
|
+
border-radius: 4px;
|
|
103
|
+
font-size: 11px;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: 6px;
|
|
108
|
+
font-family: var(--font-outfit), sans-serif;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
transition: background 0.15s;
|
|
111
|
+
" onmouseover="this.style.backgroundColor='#0098ff'" onmouseout="this.style.backgroundColor='#007acc'">
|
|
112
|
+
💾 Save File
|
|
113
|
+
</button>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- Code Display / Textarea -->
|
|
117
|
+
<div style="
|
|
118
|
+
flex: 1;
|
|
119
|
+
position: relative;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
">
|
|
122
|
+
<textarea id="editor-textarea" data-vfs-editor class="dolphin-scrollbar" placeholder="// Mount a folder or click a file to start editing..." style="
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
background: transparent;
|
|
126
|
+
border: none;
|
|
127
|
+
outline: none;
|
|
128
|
+
color: #d4d4d4;
|
|
129
|
+
padding: 16px;
|
|
130
|
+
font-family: Consolas, 'Courier New', monospace;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
line-height: 1.5;
|
|
133
|
+
resize: none;
|
|
134
|
+
" disabled></textarea>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<!-- Footer Status Bar -->
|
|
138
|
+
<div style="
|
|
139
|
+
height: 22px;
|
|
140
|
+
background: #007acc;
|
|
141
|
+
color: #ffffff;
|
|
142
|
+
font-size: 11px;
|
|
143
|
+
display: flex;
|
|
144
|
+
align-items: center;
|
|
145
|
+
justify-content: space-between;
|
|
146
|
+
padding: 0 10px;
|
|
147
|
+
">
|
|
148
|
+
<span>Dolphin VFS Client</span>
|
|
149
|
+
<span id="editor-status" data-vfs-status>Ready</span>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|