this task is very similar to #107, so it's a good idea to read and understand that task first.
we need to make a css tagged-template function.
it needs to be a language like sass that enhances css.
it needs to be css-injection safe, similar to hamster-html.
but it needs to be more advanced, because in addition to adding injection-safety, we want to add a new feature: css selector nesting.
this means we need to write a parser, to read our new css-based language, and compile it to css.
this is a new css preprocessor.
for now, we are only interested in gaining selector nesting, similar to the sass language.
instead of using a build step like sass, our new preprocessor will generate css on-the-fly, and it will be usable on the serverside as well as on the frontend within web components.
requirements:
[ ] new css function in file s/toolbox/camel-css/css.ts.
[ ] css injection safe. we'll have to make a new css-escape.ts function.
[ ] devs can deliberately inject css, bypassing the css-escape. probably via nesting css calls.
[ ] implement sass feature & parent reference
[ ] cynic test suite must prove that it works s/toolbox/camel-css/css.test.ts
this task is very similar to #107, so it's a good idea to read and understand that task first.
we need to make a
css
tagged-template function.it needs to be a language like sass that enhances css.
requirements:
css
function in files/toolbox/camel-css/css.ts
.css-escape.ts
function.css
calls.&
parent references/toolbox/camel-css/css.test.ts
bitcoin bounty expired