aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/section/section.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-27 15:40:16 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:25:00 +0200
commitba793e043e4d8515b1a9ea490ee2c5f92b1fd6c2 (patch)
treef7240a681fb3ee8c886a0c9ec3944082ba2d89bd /src/components/atoms/layout/section/section.module.scss
parent388e687857345c85ee550cd5da472675e05a6ff5 (diff)
refactor(components): rewrite Section component
* Make it compliant with ESlint rules * Remove mandatory heading, it now depends on the consumer * Change defaults for hasBorder and variant
Diffstat (limited to 'src/components/atoms/layout/section/section.module.scss')
-rw-r--r--src/components/atoms/layout/section/section.module.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/atoms/layout/section/section.module.scss b/src/components/atoms/layout/section/section.module.scss
new file mode 100644
index 0000000..771b8e3
--- /dev/null
+++ b/src/components/atoms/layout/section/section.module.scss
@@ -0,0 +1,25 @@
+@use "../../../../styles/abstracts/functions" as fun;
+@use "../../../../styles/abstracts/placeholders";
+
+.wrapper {
+ @extend %grid;
+
+ row-gap: var(--spacing-sm);
+ padding: var(--spacing-md) 0;
+
+ &--borders {
+ border-bottom: fun.convert-px(1) solid var(--color-border);
+ }
+
+ &--dark {
+ background: var(--color-bg-secondary);
+ }
+
+ &--light {
+ background: var(--color-bg);
+ }
+
+ > * {
+ grid-column: 2;
+ }
+}