aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/icons/plus-minus.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-28 18:03:43 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:25:00 +0200
commit837e0e904c40f7b87561c34ca3f49edd5d8d1c52 (patch)
tree37835dd2c84ed770b5719152aab0b74d93c0878c /src/components/atoms/icons/plus-minus.module.scss
parentd17d894f398650209c0ddd29502308de8c07bd93 (diff)
feat(components): replace icons with a generic Icon component
Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
Diffstat (limited to 'src/components/atoms/icons/plus-minus.module.scss')
-rw-r--r--src/components/atoms/icons/plus-minus.module.scss39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/components/atoms/icons/plus-minus.module.scss b/src/components/atoms/icons/plus-minus.module.scss
deleted file mode 100644
index b46b5ba..0000000
--- a/src/components/atoms/icons/plus-minus.module.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-@use "../../../styles/abstracts/functions" as fun;
-
-.icon {
- display: flex;
- place-content: center;
- place-items: center;
- width: var(--icon-size, #{fun.convert-px(30)});
- height: var(--icon-size, #{fun.convert-px(30)});
- position: relative;
- background: var(--color-bg);
- border: fun.convert-px(1) solid var(--color-primary);
- border-radius: fun.convert-px(3);
- color: var(--color-primary);
-
- &::before,
- &::after {
- content: "";
- position: absolute;
- background: var(--color-primary);
- transition: transform 0.4s ease-out 0s;
- }
-
- &::after {
- height: fun.convert-px(3);
- width: 60%;
- }
-
- &::before {
- height: 60%;
- width: fun.convert-px(3);
- transform: scaleY(1);
- }
-
- &--minus {
- &::before {
- transform: scaleY(0);
- }
- }
-}