Skip to content

Commit

Permalink
Merge pull request #16 from aidenzou/master
Browse files Browse the repository at this point in the history
组件样式优化:放大缩小控制条 #9
  • Loading branch information
fouber committed Oct 28, 2015
2 parents 8376764 + 2def940 commit 73ef6f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 23 deletions.
32 changes: 11 additions & 21 deletions src/module/widget/zoom/zoom.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,26 @@
height: 20px;
line-height: 20px;
text-align: center;
font-size: 50%;
border-radius: 10px;
background-color: #000;
color: #FFF;
background-color: #FFF;
color: #000;
}

.w-zoom_size {
height: 58px;
margin: 1px 9px;
background-color: #000;

margin: 5px 9px;
background-color: #FFF;
position: relative;
text-align: center;
}

/*.w-zoom_size:after {
content: "";
position: absolute;
top: 20px;
right: 0;
width: 12px;
height: 3px;
background-color: #000;
}*/

.w-zoom_size span {
content: "";
position: absolute;
/*top: 20px;*/
right: 0;
height: 12px;
width: 12px;
height: 2px;
background-color: #000;
background-color: #FFF;
border-radius: 10px;
box-shadow: -1px -1px 2px #999 inset;
transform: translate(-50%, -50%);
transition: all 0.2s width : 0;
}
4 changes: 2 additions & 2 deletions src/module/widget/zoom/zoom.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="w-zoom">
<div class="w-zoom_btn" @click="zoomUp"></div>
<div class="w-zoom_btn" @click="zoomUp">+</div>
<div class="w-zoom_size"><span :style="{top:top}"></span></div>
<div class="w-zoom_btn" @click="zoomDown"></div>
<div class="w-zoom_btn" @click="zoomDown">-</div>
</div>

0 comments on commit 73ef6f1

Please sign in to comment.