Honsely, I don't know what happened here
This commit is contained in:
34
components/00_ContentShape/shape/_shape.styl
Normal file
34
components/00_ContentShape/shape/_shape.styl
Normal file
@@ -0,0 +1,34 @@
|
||||
RV-Shape--square()
|
||||
padding-top 100%
|
||||
width 100%
|
||||
position relative
|
||||
|
||||
*
|
||||
position absolute
|
||||
top 0
|
||||
left 0
|
||||
bottom 0
|
||||
right 0
|
||||
|
||||
RV-Shape--circle()
|
||||
padding-top 100%
|
||||
width 100%
|
||||
position relative
|
||||
|
||||
&, *
|
||||
border-radius 50%
|
||||
|
||||
*
|
||||
position absolute
|
||||
top 0
|
||||
left 0
|
||||
bottom 0
|
||||
right 0
|
||||
|
||||
.RV-Shape
|
||||
|
||||
&--square
|
||||
RV-Shape--square()
|
||||
|
||||
&--circle
|
||||
RV-Shape--circle()
|
17
components/00_ContentShape/shape/shape.config.json
Normal file
17
components/00_ContentShape/shape/shape.config.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "Shape",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Square",
|
||||
"context": {
|
||||
"modifier": "RV-Shape--square"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Circle",
|
||||
"context": {
|
||||
"modifier": "RV-Shape--circle"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
3
components/00_ContentShape/shape/shape.hbs
Normal file
3
components/00_ContentShape/shape/shape.hbs
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="RV-Shape {{#if modifier}}{{modifier}}{{/if}}">
|
||||
<img class="RV-FocalPoint" style="--focalX: 50%; --focalY: 75%" src="{{ path '/images/portrait_lowFocelPoint.jpeg'}}"/>
|
||||
</div>
|
Reference in New Issue
Block a user