@melcanz85/chaincss 1.5.7 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +25 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -61,7 +61,7 @@ try {
61
61
 
62
62
  --Chaining File (chaincss/chain.jcss):
63
63
 
64
- *** This is where the chaining happens all codes here are javascript codes the methods are the css properties but since its a js code its a camelCase syntax example the property font-family its fontFamily in chaincss syntax.
64
+ *** This is where the chaining happens all codes here are javascript codes the methods are the css properties but since its a js code its a camelCase syntax example the property font-family its fontFamily in chaincss syntax and the css selector is the value of the block() method which is always at the end of the chain.
65
65
 
66
66
  // Variables for consistent styling
67
67
  const bodyBgColor = '#f0f0f0';
@@ -71,20 +71,20 @@ const headerAlignItems = 'center';
71
71
  const logoHeight = '50px';
72
72
 
73
73
  // Reset browser defaults
74
- const resetDefaultBrowStyle = chaincss
74
+ const resetDefaultBrowStyle = chain
75
75
  .margin('0')
76
76
  .padding('0')
77
77
  .block('body', 'h1', 'h2', 'h3', 'p', 'ul');
78
78
 
79
79
  // Body styles
80
- const bodyStyle = chaincss
80
+ const bodyStyle = chain
81
81
  .fontFamily(bodyFontFamily)
82
82
  .lineHeight('1.6')
83
83
  .bgColor(bodyBgColor)
84
84
  .block('body');
85
85
 
86
86
  // Header styles
87
- const header = chaincss
87
+ const header = chain
88
88
  .display('flex')
89
89
  .alignItems(headerAlignItems)
90
90
  .justifyContent('space-between')
@@ -94,7 +94,7 @@ const header = chaincss
94
94
  .block('header');
95
95
 
96
96
  // Logo
97
- const logoImgHeight = chaincss
97
+ const logoImgHeight = chain
98
98
  .height(logoHeight)
99
99
  .block('.logo img');
100
100
 
@@ -122,12 +122,12 @@ module.exports = {
122
122
  @media (max-width: 768px) {
123
123
  <@
124
124
  run(
125
- chaincss.flexDirection('column').alignItems('flex-start').block('header'),
126
- chaincss.order(1).block('.logo'),
127
- chaincss.order(2).block('.search-bar'),
128
- chaincss.order(3).block('h1'),
129
- chaincss.order(5).block('nav'),
130
- chaincss.order(4).display('flex').width('100%').justifyContent('flex-end').block('.burgerWrapper')
125
+ chain.flexDirection('column').alignItems('flex-start').block('header'),
126
+ chain.order(1).block('.logo'),
127
+ chain.order(2).block('.search-bar'),
128
+ chain.order(3).block('h1'),
129
+ chain.order(5).block('nav'),
130
+ chain.order(4).display('flex').width('100%').justifyContent('flex-end').block('.burgerWrapper')
131
131
  );
132
132
  @>
133
133
  }
@@ -199,18 +199,24 @@ Most modern editors allow you to associate file extensions with language modes.
199
199
 
200
200
 
201
201
  ✨ Features
202
- Status Feature Description
203
- ✅ Basic JS → CSS Convert plain JS objects to CSS
204
- 🚧 Keyframe animations @keyframes support
205
- 🚧 Vendor prefixing Auto-add -webkit-, -moz-, etc.
206
- 🚧 Source maps Debug generated CSS
207
- 🚧 Watch mode Auto-recompile on file changes
202
+
203
+ Status Feature Description
204
+
205
+ Basic JS CSS Convert plain JS objects to CSS
206
+
207
+ 🚧 Keyframe animations @keyframes support
208
+
209
+ 🚧 Vendor prefixing Auto-add -webkit-, -moz-, etc.
210
+
211
+ 🚧 Source maps Debug generated CSS
212
+
213
+ 🚧 Watch mode Auto-recompile on file changes
208
214
 
209
215
  ✅ = Working, 🚧 = Coming soon
210
- 👨‍💻 Contributing
211
216
 
212
- Contributions are welcome! Feel free to open issues or submit pull requests.
213
217
 
218
+ 👨‍💻 Contributing
219
+ Contributions are welcome! Feel free to open issues or submit pull requests.
214
220
 
215
221
  📄 License
216
222
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melcanz85/chaincss",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "A simple package transpiler for js to css",
5
5
  "main": "chaincss.js",
6
6
  "bin": {