forked from HapticX/happyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testc10.nim
47 lines (42 loc) · 983 Bytes
/
testc10.nim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import
../src/happyx
var
test = "#cdedad"
var s = buildStyle:
import url("asdasdasdasd")
# equivalent .className
class className:
color: {{test}}
padding: 2.rem
margin: 0 10.px 20.rem 0.rem
background-color: rgba(255, 255, 255, 0.1)
long-long-long-prop-key: rgba(255, 255, 255, 0.1)
class li.spacious:
color: red
# equivalent #myElem
id myElem:
color: green
# equivalent @keyframes anim
@keyframes anim:
# equivalent 0%
0:
transform: translateX(-150.px)
opacity: 0
# equivalent 100%
100:
transform: translateX(0.px)
opacity: 1
# equivalent @media not (screen and color), print and color
@media not (screen and color), print and color:
color: 0xFF5511
tag body:
background: gray
# equivalent button:hover
button@hover:
color: red
@charset "UTF-8"
@supports (display: flex):
@media screen and (min-width: 900.px):
tag article:
display: flex
echo s