Dev: Style improvement

This commit is contained in:
surunzi
2017-10-06 18:26:33 +08:00
parent 37dcb1b015
commit 90ebe520e4
4 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,8 @@
background: #fff;
font-size: $font-size;
border-bottom: 1px solid $gray-light;
border-top: 1px solid $gray-light;
margin-top: -1px;
}
.select .head, .range .head, .color .head {
transition: background $anim-duration, color $anim-duration;

View File

@@ -48,7 +48,7 @@
}
.img-info {
text-align: center;
margin-top: 20px;
margin: 20px 0;
color: $gray;
}
}

View File

@@ -19,6 +19,7 @@ module.exports = {
init({el, tool, autoScale = true} = {})
{
this._isInit = true;
this._scale = 1;
this._initContainer(el);
this._initStyle();
@@ -86,8 +87,13 @@ module.exports = {
this._$el.remove();
util.evalCss.clear();
},
getScale()
{
return this._scale;
},
setScale(scale)
{
this._scale = scale;
emitter.emit(emitter.SCALE, scale);
},
_autoScale()

View File

@@ -19,6 +19,7 @@
@mixin breadcrumb {
background: #fff;
user-select: text;
margin-bottom: 10px;
word-break: break-all;
padding: $padding;