summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/section.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-09 19:40:14 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-09 19:40:14 +0200
commit355625b5dd1b4e2e52e6e5d0eee1a13d76c09fda (patch)
treec1a4d04e386a04f37d46e912c1547a656fcd03e0 /src/components/atoms/layout/section.module.scss
parent7b9b5c2368ecff5b083b171cf38ce914746284ac (diff)
chore: add a Section component
Diffstat (limited to 'src/components/atoms/layout/section.module.scss')
-rw-r--r--src/components/atoms/layout/section.module.scss25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/atoms/layout/section.module.scss b/src/components/atoms/layout/section.module.scss
new file mode 100644
index 0000000..012493a
--- /dev/null
+++ b/src/components/atoms/layout/section.module.scss
@@ -0,0 +1,25 @@
+@use "@styles/abstracts/functions" as fun;
+@use "@styles/abstracts/placeholders";
+
+.wrapper {
+ @extend %grid;
+
+ 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);
+ }
+}
+
+.body,
+.title {
+ grid-column: 2;
+}