mirror of
https://shylinux.com/x/volcanos
synced 2025-07-01 12:04:43 +08:00
add some
This commit is contained in:
parent
2c4462b4c2
commit
e7deec9752
@ -37,7 +37,7 @@ Volcanos("page", {
|
|||||||
if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width") && parseInt(v) < 0) { return target[key] && (target[key][k] = "") }
|
if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width") && parseInt(v) < 0) { return target[key] && (target[key][k] = "") }
|
||||||
if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width", "left", "top", "right", "bottom", "margin-left", "margin-top", "margin", "padding", "font-size") && v && (can.base.isNumber(v) || !can.base.endWith(v, "px"))) { v += "px" }
|
if (can.base.isIn(k, "height", "width", "min-height", "max-height", "min-width", "max-width", "left", "top", "right", "bottom", "margin-left", "margin-top", "margin", "padding", "font-size") && v && (can.base.isNumber(v) || !can.base.endWith(v, "px"))) { v += "px" }
|
||||||
if (can.base.isIn(k, "background-image")) { v = "url("+v+")" }
|
if (can.base.isIn(k, "background-image")) { v = "url("+v+")" }
|
||||||
if (can.base.isIn(k, "background")) { v = "url("+v+")" }
|
if (can.base.isIn(k, "background") && v) { v = "url("+v+")" }
|
||||||
target[key] && (target[key][k] = v)
|
target[key] && (target[key][k] = v)
|
||||||
})
|
})
|
||||||
}); return target
|
}); return target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user