BEM Generator shorthand for block modifiers
This commit is contained in:
@@ -44,7 +44,7 @@ RV-FocalPoint(focalX=50%, focalY=50%)
|
||||
object-fit cover
|
||||
object-position --focalX --focalY
|
||||
|
||||
+RV-Block('RV-FocalPoint')
|
||||
+RV-Block--shorthand('RV-FocalPoint')
|
||||
RV-FocalPoint()
|
||||
|
||||
RV-FocalPoint--upperHalf()
|
||||
|
@@ -14,9 +14,9 @@
|
||||
</div>
|
||||
|
||||
<div class="RV-AspectRatio RV-AspectRatio--4to3">
|
||||
<img class="RV-FocalPoint RV-FocalPoint--upperHalf" src="{{ path '/images/portrait_lowFocelPoint.jpeg'}}"/>
|
||||
<img class="RV-FocalPoint--upperHalf" src="{{ path '/images/portrait_lowFocelPoint.jpeg'}}"/>
|
||||
</div>
|
||||
|
||||
<div class="RV-AspectRatio RV-AspectRatio--1to2">
|
||||
<img class="RV-FocalPoint RV-FocalPoint--rightHalf" src="{{ path '/images/landscape.jpeg'}}"/>
|
||||
<img class="RV-FocalPoint--rightHalf" src="{{ path '/images/landscape.jpeg'}}"/>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user