summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/image-widget.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-15 22:56:36 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-15 22:56:36 +0200
commitd8a5c90ef58fa451c19e8d9e0aab0c493a0a6a9f (patch)
treefed069c73e14d5474566804a6a9d830d8316b038 /src/components/organisms/widgets/image-widget.module.scss
parentedea15c845b33848b7b4f63616841e675b74d572 (diff)
chore: add an ImageWidget component
Diffstat (limited to 'src/components/organisms/widgets/image-widget.module.scss')
-rw-r--r--src/components/organisms/widgets/image-widget.module.scss43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/components/organisms/widgets/image-widget.module.scss b/src/components/organisms/widgets/image-widget.module.scss
new file mode 100644
index 0000000..78c0d26
--- /dev/null
+++ b/src/components/organisms/widgets/image-widget.module.scss
@@ -0,0 +1,43 @@
+@use "@styles/abstracts/functions" as fun;
+
+.img {
+ max-height: fun.convert-px(350);
+ margin: 0;
+}
+
+.txt {
+ padding: var(--spacing-sm);
+}
+
+.widget {
+ &--left {
+ .img {
+ margin-right: auto;
+ }
+
+ .txt {
+ text-align: left;
+ }
+ }
+
+ &--center {
+ .img {
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ .txt {
+ text-align: center;
+ }
+ }
+
+ &--right {
+ .img {
+ margin-left: auto;
+ }
+
+ .txt {
+ text-align: right;
+ }
+ }
+}