Comparing version 1.0.0-beta-19 to 1.0.0-beta-20
{ | ||
"name": "alga-css", | ||
"version": "1.0.0-beta-19", | ||
"version": "1.0.0-beta-20", | ||
"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", |
@@ -36,3 +36,3 @@ <p align="center"> | ||
yarn add alga-css | ||
yarn add alga-css --dev | ||
@@ -39,0 +39,0 @@ #or for testing (with next tag) |
@@ -18,3 +18,3 @@ const postcss = require('postcss') | ||
const refs = ref.trim().split(/-|:/).filter(i => i !== '') | ||
const refs = ref.replace('--', '-n').replaceAll('_-', '_n').trim().split(/-|:/).filter(i => i !== '') | ||
@@ -21,0 +21,0 @@ if(ref.includes(':')) { //Number(refs.length) === 3 |
@@ -24,3 +24,3 @@ const preset = require('../configs/preset.js') | ||
for(let rf of refs) { | ||
const props = rf.trim().split('-').filter(i => i !== '') | ||
const props = rf.replace('--', '-n').replaceAll('_-', '_n').trim().split('-').filter(i => i !== '') | ||
@@ -27,0 +27,0 @@ if(!rf.includes(':') && props.length >= 2) { // && Number(props.length) === 2 |
@@ -17,3 +17,3 @@ const postcss = require('postcss') | ||
const refs = ref.trim().split(/-|:/).filter(i => i !== '') | ||
const refs = ref.replace('--', '-n').replaceAll('_-', '_n').trim().split(/-|:/).filter(i => i !== '') | ||
@@ -20,0 +20,0 @@ if(ref.includes(':') && [...properties, ...Object.keys(newPreset), ...Object.keys(newColor), ...Object.keys(shorts)].includes(refs[1])) { // for state colon like hover or active |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
261611