Honsely, I don't know what happened here

This commit is contained in:
2021-03-03 00:49:21 +01:00
parent a0240b2ec8
commit 6f4170af8e
70 changed files with 2415 additions and 372 deletions

View File

@@ -181,13 +181,13 @@ RV-Block__Modifier--name(name)
RV-Block(block_name)
& .{block_name}
{block}
foreach(_block.block_modifiers, @(modifier){
render_block_modifier(modifier)
})
foreach(_block.elements, @(element){
render_element(element)
})
foreach(_block.block_modifiers, @(modifier){
render_block_modifier(modifier)
})
{block}
reset_block()

View File

@@ -41,4 +41,4 @@ RV-CSSParameter(block)
for name, value in block
css-var-name = '--%s' % unquote(name)
add-property(css-var-name, value)
define(name, unquote('var(--%s)' % (unquote(name))), true)
define('--'+name, unquote('var(--%s)' % (unquote(name))), true)

View File

@@ -1,6 +1,12 @@
RV-Utils__ElementAmount(callback, up-to=20)
for i in (1..up-to)
RV-Utils__ElementAmount(amount, callback)
if amount == 1
&:only-child
callback(i, amount)
else
*:first-child:nth-last-child({i}),
*:first-child:nth-last-child({i})~*
callback(i, up-to)
callback(i, up-to)
RV-Utils__ElementAmount--range(from=1, to=20, callback)
for i in (from..to)
RV-Utils__ElementAmount(i, callback)