mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Dev: Style improvement
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
}
|
||||
.img-info {
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
margin: 20px 0;
|
||||
color: $gray;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
@mixin breadcrumb {
|
||||
background: #fff;
|
||||
user-select: text;
|
||||
margin-bottom: 10px;
|
||||
word-break: break-all;
|
||||
padding: $padding;
|
||||
|
||||
Reference in New Issue
Block a user