Honsely, I don't know what happened here
This commit is contained in:
@@ -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()
|
||||
|
||||
|
@@ -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)
|
@@ -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)
|
Reference in New Issue
Block a user