Skip to content

Commit

Permalink
[New] add dotted & dashed divider
Browse files Browse the repository at this point in the history
  • Loading branch information
Minwe committed May 22, 2015
1 parent 0a4579b commit 2bb3ec9
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
- `Improved` 处理 Slider 在部分浏览器中上下翻页箭头文字没有隐藏问题;
- `Improved` 优化 JS 构建流程,加快构建速度,输出 UMD 格式文件。

**Web 组件:**

- `Changed` Divider 增加点线和虚线样式。

### 2015.05 W2

**CSS:**
Expand Down
2 changes: 2 additions & 0 deletions less/amazeui.less
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
// divider
@import "../widget/divider/src/divider.less";
@import "../widget/divider/src/divider.default.less";
@import "../widget/divider/src/divider.dotted.less";
@import "../widget/divider/src/divider.dashed.less";
@import "../widget/divider/src/divider.one.less";

// duoshuo
Expand Down
24 changes: 24 additions & 0 deletions widget/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,30 @@
}
]
},
{
"name": "dotted",
"desc": "点分割线",
"hook": "hook-am-divider-default",
"demos": [
{
"desc": "",
"data": {
}
}
]
},
{
"name": "dashed",
"desc": "虚线分割线",
"hook": "hook-am-divider-default",
"demos": [
{
"desc": "",
"data": {
}
}
]
},
{
"name": "one",
"desc": "简约风格",
Expand Down
11 changes: 11 additions & 0 deletions widget/divider/src/divider.dashed.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Divider Theme: dashed
*/

.am-divider-dashed {
border-top: 1px dashed #ccc;

.hook-am-divider-dashed;
}

.hook-am-divider-dashed() {}
8 changes: 1 addition & 7 deletions widget/divider/src/divider.default.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

.am-divider-default {
@divider-bg-color: #ddd;

height: 1px;
border: none;
margin: 1.5rem auto;
overflow: hidden;
background-color: @divider-bg-color;
clear: both;
border-top: 1px solid @divider-bg-color;

.hook-am-divider-default;
}
Expand Down
11 changes: 11 additions & 0 deletions widget/divider/src/divider.dotted.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* Divider Theme: dotted
*/

.am-divider-dotted {
border-top: 1px dotted #ccc;

.hook-am-divider-dotted;
}

.hook-am-divider-dotted() {}
7 changes: 6 additions & 1 deletion widget/divider/src/divider.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.am-divider {
height: 0;
margin: 1.5rem auto;
overflow: hidden;
clear: both;

.hook-am-divider;
}
.hook-am-divider() {};
.hook-am-divider() {};

0 comments on commit 2bb3ec9

Please sign in to comment.