-
Notifications
You must be signed in to change notification settings - Fork 1
/
qcss-map.js
122 lines (122 loc) · 3.69 KB
/
qcss-map.js
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
module.exports = {
keyMap: {
dn: 'display: none',
di: 'display: inline',
dib: 'display: inline-block',
db: 'display: block',
dt: 'display: table',
dtc: 'display: table-cell',
df: 'display: flex',
dg: 'display:grid',
m: 'margin: ',
ml: 'margin-left: ',
mt: 'margin-top: ',
mr: 'margin-right: ',
mb: 'margin-bottom: ',
ma: 'margin: auto',
mla: 'margin-left: auto',
mra: 'margin-right: auto',
p: 'padding: ',
pl: 'padding-left: ',
pt: 'padding-top: ',
pr: 'padding-right: ',
pb: 'padding-bottom: ',
l: 'float: left',
r: 'float: right',
bg: 'background: ',
bgc: 'background-color: ',
bgi: 'background-image: ',
bgr: 'background-repeat: ',
bgp: 'background-position: ',
bgs: 'background-size: ',
bgo: 'background-origin: ',
c: 'color: ',
bd: 'border: ',
bdl: 'border-left: ',
bdr: 'border-right: ',
bdt: 'border-top: ',
bdb: 'border-bottom: ',
bds: 'border-style: ',
bdw: 'border-width: ',
bdc: 'border-color: ',
br: 'border-radius: ',
bbb: 'box-sizing: border-box',
o: 'outline: ',
f: 'font-size: ',
ff: 'font-family: ',
fs: 'font-style: ',
fw: 'font-weight: ',
b: 'font-weight: bold',
i: 'font-style: italic',
n: 'font-weight: normal; font-style: normal',
tdl: 'text-decoration: underline',
tdn: 'text-decoration: none',
tc: 'text-align: center',
tl: 'text-align: left',
tr: 'text-align: right',
tj: 'text-align: justify',
ti: 'text-indent: ',
cl: 'clear: both',
abs: 'position: absolute',
rel: 'position: relative',
fix: 'position: fixed',
op: 'opacity: ',
z: 'zoom: ',
zx: 'z-index: ',
h: 'height: ',
w: 'width: ',
minw: 'min-width: ',
maxw: 'max-width: ',
minh: 'min-height: ',
maxh: 'max-height: ',
lh: 'line-height: ',
v: 'vertical-align: ',
vt: 'vertical-align: top',
vm: 'vertical-align: middle',
vb: 'vertical-align: bottom',
poi: 'cursor: pointer',
def: 'cursor: default',
tex: 'cursor: text',
ovh: 'overflow: hidden',
ova: 'overflow: auto',
vh: 'visibility: hidden',
vv: 'visibility: visible',
prew: 'white-space: pre-wrap',
pre: 'white-space: pre',
nowrap: 'white-space: nowrap',
bk: 'word-break: break-all',
bkw: 'word-wrap: break-word',
ws: 'word-spacing: ',
ls: 'letter-spacing: ',
a: 'animation: ',
trm: 'transform: ',
trn: 'transition: ',
bs: 'box-shadow: ',
ts: 'text-shadow: ',
con: 'content: ',
pe: 'pointer-events: ',
table: 'display: table; table-layout: fixed; width: 100%',
center: 'position: absolute; top: 0; bottom: 0; right: 0; left: 0; margin: auto',
ell: 'text-overflow: ellipsis; white-space: nowrap; overflow: hidden',
clip: 'position: absolute; clip: rect(0 0 0 0)',
dgc: 'display: grid; place-items: center',
dfc: 'display: flex; align-items: center; justify-content: center'
},
valueMap: {
a: 'auto',
s: 'solid',
d: 'dashed',
tt: 'transparent',
cc: 'currentColor',
n: 'normal',
c: 'center',
rx: 'repeat-x',
ry: 'repeat-y',
no: 'no-repeat',
ih: 'inherit',
l: 'left',
t: 'top',
r: 'right',
b: 'bottom'
}
};