diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-13 18:46:31 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-13 18:53:15 +0100 |
| commit | e331106e56d59a8b987230860b66214139c12ef6 (patch) | |
| tree | 18b595ddd86089b405e9517cd3efc72e2f17a1ab /src/components/organisms/widgets/image-widget.module.scss | |
| parent | 56878f647ea0f1066fa3e222d7aa0d83057f496d (diff) | |
refactor(components): rewrite ImageWidget component
* remove `imageClassName` prop
* replace `image` prop with `img` and expect an image instead of an
object
* remove `alignment prop`
* remove useless CSS
Diffstat (limited to 'src/components/organisms/widgets/image-widget.module.scss')
| -rw-r--r-- | src/components/organisms/widgets/image-widget.module.scss | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/components/organisms/widgets/image-widget.module.scss b/src/components/organisms/widgets/image-widget.module.scss deleted file mode 100644 index 25de03e..0000000 --- a/src/components/organisms/widgets/image-widget.module.scss +++ /dev/null @@ -1,48 +0,0 @@ -@use "../../../styles/abstracts/functions" as fun; - -.figure { - --scale-up: 1.02; - --scale-down: 0.98; - - width: fit-content; - margin: 0; - padding: fun.convert-px(5); - border: fun.convert-px(1) solid var(--color-border); -} - -.txt { - padding: var(--spacing-sm); -} - -.widget { - &--left { - .figure { - margin-right: auto; - } - - .txt { - text-align: left; - } - } - - &--center { - .figure { - margin-left: auto; - margin-right: auto; - } - - .txt { - text-align: center; - } - } - - &--right { - .figure { - margin-left: auto; - } - - .txt { - text-align: right; - } - } -} |
