Skip to content

Commit

Permalink
优化:页面
Browse files Browse the repository at this point in the history
  • Loading branch information
KingBes committed Dec 16, 2024
1 parent e4653c4 commit 7590efb
Show file tree
Hide file tree
Showing 30 changed files with 1,205 additions and 418 deletions.
4 changes: 2 additions & 2 deletions dist/bunny.css
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ button[disabled].bny-btn {
}

/* 代码code */
.bny-code {
pre {
font-family: monospace, monospace;
color: var(--primary);
background-color: var(--white);
Expand All @@ -933,7 +933,7 @@ button[disabled].bny-btn {
word-wrap: break-word;
}

.bny-code code {
pre code {
color: var(--primary);
background: transparent;
display: block;
Expand Down
2 changes: 1 addition & 1 deletion dist/bunny.js

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions doc/alert.html

This file was deleted.

75 changes: 75 additions & 0 deletions doc/alert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
静态:

<div class="alert-primary">
警示信息alert-primary
</div>
<div class="alert-secondary">
警示信息alert-secondary
</div>
<div class="alert-success">
警示信息alert-success
</div>
<div class="alert-warning">
警示信息alert-warning
</div>
<div class="alert-danger">
警示信息alert-danger
</div>

代码:

```html
<div class="alert-primary">
警示信息alert-primary
</div>
<div class="alert-secondary">
警示信息alert-secondary
</div>
<div class="alert-success">
警示信息alert-success
</div>
<div class="alert-warning">
警示信息alert-warning
</div>
<div class="alert-danger">
警示信息alert-danger
</div>
```

动态:

<div class="alert-primary" hx-ext="bny-alert">
警示信息alert-primary
</div>
<div class="alert-secondary" hx-ext="bny-alert">
警示信息alert-secondary
</div>
<div class="alert-success" hx-ext="bny-alert">
警示信息alert-success
</div>
<div class="alert-warning" hx-ext="bny-alert">
警示信息alert-warning
</div>
<div class="alert-danger" hx-ext="bny-alert">
警示信息alert-danger
</div>

代码:

```html
<div class="alert-primary" hx-ext="bny-alert">
警示信息alert-primary
</div>
<div class="alert-secondary" hx-ext="bny-alert">
警示信息alert-secondary
</div>
<div class="alert-success" hx-ext="bny-alert">
警示信息alert-success
</div>
<div class="alert-warning" hx-ext="bny-alert">
警示信息alert-warning
</div>
<div class="alert-danger" hx-ext="bny-alert">
警示信息alert-danger
</div>
```
48 changes: 0 additions & 48 deletions doc/btn.html

This file was deleted.

117 changes: 117 additions & 0 deletions doc/btn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<button class="bny-btn">默认</button>
<button class="bny-btn bg-secondary">蓝色</button>
<button class="bny-btn bg-success">绿色</button>
<button class="bny-btn bg-warning">黄色</button>
<button class="bny-btn bg-danger">红色</button>
<button class="bny-btn bg-muted">灰色</button>
<button class="bny-btn bg-muted bny-btn-disabled">禁用</button>
<br>

代码:

```html
<button class="bny-btn">默认</button>
<button class="bny-btn bg-secondary">蓝色</button>
<button class="bny-btn bg-success">绿色</button>
<button class="bny-btn bg-warning">黄色</button>
<button class="bny-btn bg-danger">红色</button>
<button class="bny-btn bg-muted">灰色</button>
<button class="bny-btn bg-muted bny-btn-disabled">禁用</button>
```

<button class="bny-btn border-secondary">蓝色</button>
<button class="bny-btn border-success">绿色</button>
<button class="bny-btn border-warning">黄色</button>
<button class="bny-btn border-danger">红色</button>
<button class="bny-btn border-muted">灰色</button>
<button class="bny-btn border-danger bny-btn-disabled">禁用</button>
<button class="bny-btn border-success" disabled>禁用</button>
<br>

代码:

```html
<button class="bny-btn border-secondary">蓝色</button>
<button class="bny-btn border-success">绿色</button>
<button class="bny-btn border-warning">黄色</button>
<button class="bny-btn border-danger">红色</button>
<button class="bny-btn border-muted">灰色</button>
<button class="bny-btn border-danger bny-btn-disabled">禁用</button>
<button class="bny-btn border-success" disabled>禁用</button>
```

<a href="javascript:;" class="bny-btn">a标签按钮</a>
<a href="javascript:;" class="bny-btn bg-secondary">a标签按钮</a>
<a href="javascript:;" class="bny-btn border-danger">a标签按钮</a>
<a href="javascript:;" class="bny-btn border-secondary bny-btn-disabled">a禁用按钮</a>
<br>

代码:

```html
<a href="javascript:;" class="bny-btn">a标签按钮</a>
<a href="javascript:;" class="bny-btn bg-secondary">a标签按钮</a>
<a href="javascript:;" class="bny-btn border-danger">a标签按钮</a>
<a href="javascript:;" class="bny-btn border-secondary bny-btn-disabled">a禁用按钮</a>
```

<button class="bny-btn border-success" round>绿色</button>
<button class="bny-btn border-danger" circle>
<i class="icon icon-Gitee"></i>
</button>
<button class="bny-btn bg-success" circle>
<i class="icon icon-shibai"></i>
</button>
<button class="bny-btn bg-warning">
<i class="icon icon-bofang"></i>
</button>
<button class="bny-btn border-danger" round>
<i class="icon icon-vip"></i>
</button>
<input type="button" class="bny-btn" value="按钮">
<br>

代码:

```html
<button class="bny-btn border-success" round>绿色</button>
<button class="bny-btn border-danger" circle>
<i class="icon icon-Gitee"></i>
</button>
<button class="bny-btn bg-success" circle>
<i class="icon icon-shibai"></i>
</button>
<button class="bny-btn bg-warning">
<i class="icon icon-bofang"></i>
</button>
<button class="bny-btn border-danger" round>
<i class="icon icon-vip"></i>
</button>
<input type="button" class="bny-btn" value="按钮">
```

<div class="bny-btn-group">
<button class="bny-btn border-success">绿色</button>
<button class="bny-btn border-warning">黄色</button>
<button class="bny-btn border-danger">红色</button>
</div>
<div class="bny-btn-group">
<button class="bny-btn">默认</button>
<button class="bny-btn">默认</button>
<button class="bny-btn">默认</button>
</div>

代码:

```html
<div class="bny-btn-group">
<button class="bny-btn border-success">绿色</button>
<button class="bny-btn border-warning">黄色</button>
<button class="bny-btn border-danger">红色</button>
</div>
<div class="bny-btn-group">
<button class="bny-btn">默认</button>
<button class="bny-btn">默认</button>
<button class="bny-btn">默认</button>
</div>
```
60 changes: 0 additions & 60 deletions doc/card.html

This file was deleted.

Loading

0 comments on commit 7590efb

Please sign in to comment.