-
Question from @jitendravyasCan you please explain with an example? I didn't get it by reading comment from here: module.exports = {
'custom': {
uh: '79px', // custom 1 (see classNames below)
primary: '#f6a1e1' // custom 2 (see classNames below)
},
'classNames': [
'H(uh)', // custom 1 (maps to 'custom' key above)
'C(primary)', // custom 2 (maps to 'custom' key above)
'Td(u)', // normal
'Td(u):h', // pseudo classs
'Bgc(#333)', // hex value
'Bgc(#fff.8)' // hex value + alpha
],
'exclude': [
'Fl(end)'
]
}; |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 1 reply
-
Here is a simple example that explains the use of both Open Atomizer-Web and do this:
{
"custom": {
"l": "left",
"r": "right"
},
"classNames": [
"Fl(l)",
"Fl(r)"
],
"exclude": [
"Fl(start)",
"Fl(end)"
]
}
<div class="Fl(start)">
Left
</div>
<div class="Fl(end)">
Right
</div>
.Fl\(l\) {
float: left;
}
.Fl\(r\) {
float: right;
} In the example above, we are "replacing" the keywords As the CSS panel shows, authors can no longer use In other words, Another reason why one would want to use "Fl(" + direction + ")" They'd need to add both |
Beta Was this translation helpful? Give feedback.
Here is a simple example that explains the use of both
classNames
andexclude
in the config file.Open Atomizer-Web and do this:
(click on the ⚙ icon to access the configuration panel)
In the example above, we are "replacing" the keywords
start
…