summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/lists/description-list.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-07 19:00:13 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-07 19:05:09 +0200
commit06396f8e942c58254ee4e87f610d3e33197e0d73 (patch)
tree30e003c15c9d6b3b5428d4af833a967e72843f09 /src/components/atoms/lists/description-list.module.scss
parentff2b6c55cc691f0b62396d9ba481c75fc870cd6a (diff)
chore: add a DescriptionList component
Diffstat (limited to 'src/components/atoms/lists/description-list.module.scss')
-rw-r--r--src/components/atoms/lists/description-list.module.scss42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/components/atoms/lists/description-list.module.scss b/src/components/atoms/lists/description-list.module.scss
new file mode 100644
index 0000000..4758816
--- /dev/null
+++ b/src/components/atoms/lists/description-list.module.scss
@@ -0,0 +1,42 @@
+@use "@styles/abstracts/mixins" as mix;
+
+.list {
+ display: flex;
+ flex-flow: column wrap;
+ gap: var(--spacing-2xs);
+ margin: 0;
+
+ &__item {
+ display: flex;
+ flex-flow: column wrap;
+ gap: var(--spacing-2xs);
+
+ @include mix.media("screen") {
+ @include mix.dimensions("sm") {
+ flex-flow: row wrap;
+ }
+ }
+ }
+
+ &__term {
+ flex: 0 0 max-content;
+ color: var(--color-fg-light);
+ font-weight: 600;
+ }
+
+ &__description {
+ flex: 0 0 auto;
+ margin: 0;
+
+ @include mix.media("screen") {
+ @include mix.dimensions("sm") {
+ &:not(:first-of-type) {
+ &::before {
+ content: "/";
+ margin: 0 var(--spacing-2xs);
+ }
+ }
+ }
+ }
+ }
+}