Comparing version 1.0.0-beta-24 to 1.0.0-beta-25
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-beta-24", | ||
"version": "1.0.0-beta-25", | ||
"description": "Alga CSS is a scope or component oriented CSS toolkit for quickly reuse CSS components and it can be stored in .alga format file as a custom CSS component and also it has many built-in customizable CSS properties that can be directly inserted to HTML Element class", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -19,3 +19,9 @@ module.exports = { | ||
state: ':checked' | ||
}, | ||
ltr: { | ||
state: 'html[dir=ltr]' | ||
}, | ||
rtl: { | ||
state: 'html[dir=rtl]' | ||
} | ||
} |
@@ -28,3 +28,3 @@ const postcss = require('postcss') | ||
if(['rtl', 'ltr'].includes(refs[0])) { | ||
newRule = postcss.rule({ selector: `html[dir=${refs[0]}] `+newReplacedSelector, source: source }) | ||
newRule = postcss.rule({ selector: opts.state[refs[0]].state+' '+newReplacedSelector, source: source }) | ||
} | ||
@@ -31,0 +31,0 @@ //const declVal = postcss.decl({ prop: camelDash(refs[1]), value: value(refs[2]) }) |
Sorry, the diff of this file is not supported yet
262220
3729