Skip to content

Commit 2ae8aa5

Browse files
author
streamich
committed
More atoms
1 parent aac96ae commit 2ae8aa5

File tree

4 files changed

+60
-22
lines changed

4 files changed

+60
-22
lines changed

README.md

+34-20
Original file line numberDiff line numberDiff line change
@@ -193,26 +193,40 @@ console.log(css.atoms);
193193

194194
Output:
195195

196-
{ d: 'display',
197-
mar: 'margin',
198-
pad: 'padding',
199-
bd: 'border',
200-
col: 'color',
201-
op: 'opacity',
202-
bg: 'background',
203-
fz: 'font-size',
204-
fs: 'font-style',
205-
lh: 'line-height',
206-
bxz: 'box-sizing',
207-
cur: 'cursor',
208-
ov: 'overflow',
209-
pos: 'position',
210-
ls: 'list-style',
211-
ta: 'text-align',
212-
td: 'text-decoration',
213-
fl: 'float',
214-
w: 'width',
215-
h: 'height' }
196+
{
197+
d: 'display',
198+
mar: 'margin',
199+
pad: 'padding',
200+
bd: 'border',
201+
bdt: 'border-top',
202+
bdr: 'border-right',
203+
bdb: 'border-bottom',
204+
bdl: 'border-left',
205+
bdrad: 'border-radius',
206+
col: 'color',
207+
op: 'opacity',
208+
bg: 'background',
209+
bgc: 'background-color',
210+
fz: 'font-size',
211+
fs: 'font-style',
212+
fw: 'font-weight',
213+
ff: 'font-family',
214+
lh: 'line-height',
215+
bxz: 'box-sizing',
216+
w_bxz: '-webkit-box-sizing',
217+
m_bxz: '-moz-box-sizing',
218+
cur: 'cursor',
219+
ov: 'overflow',
220+
pos: 'position',
221+
ls: 'list-style',
222+
ta: 'text-align',
223+
td: 'text-decoration',
224+
fl: 'float',
225+
w: 'width',
226+
h: 'height',
227+
trs: 'transition',
228+
out: 'outline',
229+
}
216230

217231

218232
## Media Queries

index.js

+13-1
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,23 @@ exports.atoms = {
1818
mar: 'margin',
1919
pad: 'padding',
2020
bd: 'border',
21+
bdt: 'border-top',
22+
bdr: 'border-right',
23+
bdb: 'border-bottom',
24+
bdl: 'border-left',
25+
bdrad: 'border-radius',
2126
col: 'color',
2227
op: 'opacity',
2328
bg: 'background',
29+
bgc: 'background-color',
2430
fz: 'font-size',
2531
fs: 'font-style',
32+
fw: 'font-weight',
33+
ff: 'font-family',
2634
lh: 'line-height',
2735
bxz: 'box-sizing',
36+
w_bxz: '-webkit-box-sizing',
37+
m_bxz: '-moz-box-sizing',
2838
cur: 'cursor',
2939
ov: 'overflow',
3040
pos: 'position',
@@ -33,7 +43,9 @@ exports.atoms = {
3343
td: 'text-decoration',
3444
fl: 'float',
3545
w: 'width',
36-
h: 'height'
46+
h: 'height',
47+
trs: 'transition',
48+
out: 'outline'
3749
};
3850
function toBlocks(pojo) {
3951
var blocks = [];

index.ts

+12
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,23 @@ export var atoms = {
1212
mar: 'margin',
1313
pad: 'padding',
1414
bd: 'border',
15+
bdt: 'border-top',
16+
bdr: 'border-right',
17+
bdb: 'border-bottom',
18+
bdl: 'border-left',
19+
bdrad: 'border-radius',
1520
col: 'color',
1621
op: 'opacity',
1722
bg: 'background',
23+
bgc: 'background-color',
1824
fz: 'font-size',
1925
fs: 'font-style',
26+
fw: 'font-weight',
27+
ff: 'font-family',
2028
lh: 'line-height',
2129
bxz: 'box-sizing',
30+
w_bxz: '-webkit-box-sizing',
31+
m_bxz: '-moz-box-sizing',
2232
cur: 'cursor',
2333
ov: 'overflow',
2434
pos: 'position',
@@ -28,6 +38,8 @@ export var atoms = {
2838
fl: 'float',
2939
w: 'width',
3040
h: 'height',
41+
trs: 'transition',
42+
out: 'outline',
3143
};
3244

3345

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "css-light",
33
"description": "Write CSS in JavaScript",
4-
"version": "1.0.8",
4+
"version": "1.0.9",
55
"keywords": [
66
"css",
77
"javascript",

0 commit comments

Comments
 (0)