Component to rotation
This commit is contained in:
parent
82f3a5285e
commit
ecd56029f4
@ -3,4 +3,5 @@
|
||||
@import 'focalPoint/_focalPoint'
|
||||
@import 'shape/_shape'
|
||||
@import 'truncation/_truncation'
|
||||
@import 'alignment/_alignment'
|
||||
@import 'alignment/_alignment'
|
||||
@import 'rotation/_rotation'
|
19
components/02_ContentShape/rotation/_rotation.styl
Normal file
19
components/02_ContentShape/rotation/_rotation.styl
Normal file
@ -0,0 +1,19 @@
|
||||
RV-Rotation--left()
|
||||
+RV-Block--modifier()
|
||||
transform rotate(-90deg)
|
||||
|
||||
RV-Rotation--right()
|
||||
+RV-Block--modifier()
|
||||
transform rotate(90deg)
|
||||
|
||||
RV-Rotation--upsideDown()
|
||||
+RV-Block--modifier()
|
||||
transform rotate(180deg)
|
||||
|
||||
RV-Rotation()
|
||||
+RV-Block()
|
||||
RV-Rotation--left()
|
||||
RV-Rotation--right()
|
||||
RV-Rotation--upsideDown()
|
||||
|
||||
RV-Rotation()
|
25
components/02_ContentShape/rotation/rotation.config.json
Normal file
25
components/02_ContentShape/rotation/rotation.config.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "rotation",
|
||||
"title": "Rotation",
|
||||
"variants": [
|
||||
{
|
||||
"name": "Left",
|
||||
"context": {
|
||||
"modifier": "RV-Rotation--left"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Reft",
|
||||
"context": {
|
||||
"modifier": "RV-Rotation--right"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "UpsideDown",
|
||||
"context": {
|
||||
"modifier": "RV-Rotation--upsideDown"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
7
components/02_ContentShape/rotation/rotation.hbs
Normal file
7
components/02_ContentShape/rotation/rotation.hbs
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="RV-Rotation {{modifier}} RV-Dummy RV-Dummy--landscape">
|
||||
Im a content text.
|
||||
</div>
|
||||
|
||||
<div class="RV-Rotation {{modifier}} RV-Dummy RV-Dummy--square">
|
||||
Im a square text.
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user