Skip to content

Commit

Permalink
panel
Browse files Browse the repository at this point in the history
  • Loading branch information
zdhxiong committed Dec 12, 2016
1 parent cc59b3c commit b34efaa
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/panel/less/panel.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
.mdui-panel {
box-sizing: border-box;
width: 100%;
.mdui-shadow(2);
}

/* 面板项 */
Expand All @@ -18,10 +17,11 @@
height: 48px;
overflow: hidden;
.mdui-divider-bottom-dark();
will-change: height, margin-top, margin-bottom;
transition-property: height, margin-top, margin-bottom;
will-change: height, margin;
transition-property: height, margin;
transition-duration: .3s;
transition-timing-function: @animation-curve-default;
.mdui-shadow(2);

&:last-child {
border-bottom: none;
Expand All @@ -31,6 +31,8 @@
/* 打开状态的面板项 */
.mdui-panel-item-open {
height: auto;
margin-top: 16px;
margin-bottom: 16px;
}

/* 面板头部 */
Expand Down Expand Up @@ -112,17 +114,25 @@
}
}

/* 使打开项拥有上下边距 */
.mdui-panel-popout {
.mdui-shadow(0);
/* 使打开项上下没有边距 */
.mdui-panel-gapless {
.mdui-shadow(2);

.mdui-panel-item {
.mdui-shadow(2);
.mdui-shadow(0);
}

.mdui-panel-item-open {
margin-top: 16px;
margin-bottom: 16px;
margin-top: 0;
margin-bottom: 0;
}
}

/* 弹出面板 */
.mdui-panel-popout {
.mdui-panel-item-open {
margin-left: -16px;
margin-right: -16px;
}
}

Expand Down

0 comments on commit b34efaa

Please sign in to comment.