UNPKG
buttron
Version:
latest (1.1.0)
1.1.0
1.0.9
1.0.3
1.0.2
1.0.1
1.0.0
0.0.2
0.0.2-b
0.0.2-a
0.0.1
A whole new way to button
github.com/artisin/buttron
artisin/buttron
buttron
/
__tests__
/
cases
/
classes
/
eval
/
math
/
basic.styl
19 lines
(15 loc)
•
250 B
text/stylus
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
evalMath =
ButtronClass
(
'evalMath'
, {
style
:
false
$$:{
eval
:{
w
:
"math($$[base] * 20px / 2)"
h
:
"math(($$[base] * 20px) / 1.5)"
}
base
:
10
}
height
:
"$$[w]"
width
:
"$$[h]"
}) .test
evalMath
()
evalMath
(
'.test'
)