-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
107 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
# Changelog | ||
## v0.2.5 | ||
|
||
> The changelog just includes breaking changes along with its migration instructions. | ||
- support custom toolbar icon | ||
- support custom toolbar controls | ||
- support custom toolbar height | ||
- support custom window index | ||
- support window autosize | ||
- support new callbacks | ||
- improve drag pointer calculation when outside the viewport | ||
- improve toolbar template | ||
- improve window states | ||
- improve performance | ||
|
||
#### v0.0.1 | ||
#### Migrations: | ||
|
||
- Initial Release | ||
- the classname `wb-icon` was renamed to `wb-control` | ||
- instead the new window heading toolbar icon was named as `wb-icon` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,8 @@ __Get Latest Stable Build (Recommended):__ | |
</tr> | ||
<tr> | ||
<td>winbox.bundle.min.js</td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.4/dist/winbox.bundle.min.js" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/winbox.bundle.min.js</a></td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.5/dist/winbox.bundle.min.js" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/winbox.bundle.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/winbox.bundle.min.js</a></td> | ||
</tr> | ||
<tr> | ||
<td colspan=3"> | ||
|
@@ -41,14 +41,14 @@ __Get Latest Stable Build (Recommended):__ | |
</tr> | ||
<tr> | ||
<td>winbox.min.js</td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.4/dist/js/winbox.min.js" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/js/winbox.min.js</a></td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.5/dist/js/winbox.min.js" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/js/winbox.min.js" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/js/winbox.min.js</a></td> | ||
</tr> | ||
<tr></tr> | ||
<tr> | ||
<td>winbox.min.css</td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.4/dist/css/winbox.min.css" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/dist/css/winbox.min.css</a></td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.5/dist/css/winbox.min.css" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/css/winbox.min.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/dist/css/winbox.min.css</a></td> | ||
</tr> | ||
<tr> | ||
<td colspan=3"> | ||
|
@@ -57,25 +57,25 @@ __Get Latest Stable Build (Recommended):__ | |
</tr> | ||
<tr> | ||
<td>ES6 Modules</td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.4/src/js" target="_blank">Download</a></td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.5/src/js" target="_blank">Download</a></td> | ||
<td>The <i>/src/js</i> folder of this Github repository</td> | ||
</tr> | ||
<tr></tr> | ||
<tr> | ||
<td>LESS Files (source)</td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.4/src/css" target="_blank">Download</a></td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.5/src/css" target="_blank">Download</a></td> | ||
<td>The <i>/src/css</i> folder of this Github repository</td> | ||
</tr> | ||
<tr></tr> | ||
<tr> | ||
<td>winbox.css (compiled)</td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.4/src/css/winbox.css" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.4/src/css/winbox.css</a></td> | ||
<td><a href="https://github.com/nextapps-de/winbox/raw/0.2.5/src/css/winbox.css" target="_blank">Download</a></td> | ||
<td><a href="https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/src/css/winbox.css" target="_blank">https://rawcdn.githack.com/nextapps-de/winbox/0.2.5/src/css/winbox.css</a></td> | ||
</tr> | ||
<tr></tr> | ||
<tr> | ||
<td>src.zip</td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.4/dist" target="_blank">Download</a></td> | ||
<td><a href="https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/nextapps-de/winbox/tree/0.2.5/dist" target="_blank">Download</a></td> | ||
<td>Download all source files including image original resources.</td> | ||
</tr> | ||
</table> | ||
|
@@ -149,7 +149,7 @@ You can also load modules via CDN, e.g.: | |
|
||
```html | ||
<script type="module"> | ||
import WinBox from "https://unpkg.com/[email protected].4/src/js/winbox.js"; | ||
import WinBox from "https://unpkg.com/[email protected].5/src/js/winbox.js"; | ||
</script> | ||
``` | ||
|
||
|
@@ -1295,9 +1295,9 @@ winbox.removeControl("wb-like") | |
<a name="template"></a> | ||
## Custom Template (Layout) | ||
|
||
You can fully customize the WinBox window layout by providing a custom `template` via the config during creation. This way you can add new controls to the window or re-arrange them. | ||
You can fully customize the WinBox window layout by providing a custom `template` via the config during creation. This way you can add new elements to the window or re-arrange them. | ||
|
||
This example will add two custom control buttons `.wb-like` and `.wb-custom` to the window toolbar by using a custom template along some CSS: | ||
This example will add a control button `.wb-custom` to the window toolbar by using a custom template along some CSS: | ||
```css | ||
.wb-custom { | ||
background-image: url(demo/icon-github.svg); | ||
|
@@ -1310,7 +1310,7 @@ Create by using a custom template: | |
const template = document.createElement("div"); | ||
template.innerHTML = ` | ||
<div class=wb-header> | ||
<div class=wb-icon> | ||
<div class=wb-control> | ||
<span class=wb-custom></span> | ||
<span class=wb-close></span> | ||
</div> | ||
|
@@ -1352,7 +1352,7 @@ Modify a specific icon: | |
|
||
Use black standard icons (useful for bright backgrounds): | ||
```css | ||
.wb-icon { filter: invert(1) } | ||
.wb-control { filter: invert(1) } | ||
``` | ||
|
||
Modify or disable resizing areas on the window borders: | ||
|
@@ -1394,7 +1394,7 @@ Style the header title: | |
|
||
Style the titlebar icon: | ||
```css | ||
.wb-image { | ||
.wb-icon { | ||
width: 35px; | ||
background-size: 35px 35px; | ||
} | ||
|
@@ -1475,10 +1475,10 @@ Apply styles when window is in "focus" state: | |
.winbox.focus { | ||
background: #0050ff; | ||
} | ||
.winbox .wb-icon { | ||
.winbox .wb-control { | ||
display: none; | ||
} | ||
.winbox.focus .wb-icon { | ||
.winbox.focus .wb-control { | ||
display: block; | ||
} | ||
``` | ||
|
@@ -1488,7 +1488,7 @@ Apply styles when window is NOT in "focus" state (the same logic from example ab | |
.winbox:not(.focus) { | ||
background: #999; | ||
} | ||
.winbox:not(.focus) .wb-icon { | ||
.winbox:not(.focus) .wb-control { | ||
display: none; | ||
} | ||
``` | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.winbox.white{background:#fff}.winbox.white .wb-title{color:#000}.winbox.white .wb-icon{filter:invert(1)} | ||
.winbox.white{background:#fff}.winbox.white .wb-title{color:#000}.winbox.white .wb-control{filter:invert(1)} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.