diff options
Diffstat (limited to 'src/styles/objects/_message.vars.scss')
| -rw-r--r-- | src/styles/objects/_message.vars.scss | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/styles/objects/_message.vars.scss b/src/styles/objects/_message.vars.scss new file mode 100644 index 0000000..f394894 --- /dev/null +++ b/src/styles/objects/_message.vars.scss | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | @use "pkg:iro-design/core.vars" as core; | ||
| 2 | @use "pkg:iro-design/objects/avatar.vars" as avatar; | ||
| 3 | @use "pkg:iro-sass/props"; | ||
| 4 | |||
| 5 | $avatar-size: props.def(--o-message--avatar-size, props.get(avatar.$size)); | ||
| 6 | |||
| 7 | $dot-radius: props.def(--o-message--dot-radius, 6px); | ||
| 8 | $dot-width: props.def(--o-message--dot-width, 4px); | ||
| 9 | |||
| 10 | $spacing-x: props.def(--o-message--spacing-x, props.get(core.$size--200)); | ||
| 11 | $spacing-y: props.def(--o-message--spacing-y, props.get(core.$size--150)); | ||
| 12 | $spacing-inner: props.def(--o-message--spacing-inner, props.get(core.$size--500)); | ||
| 13 | $spacing-outer: props.def(--o-message--spacing-outer, props.get(core.$size--700)); | ||
| 14 | $spacing-attachments: props.def(--o-message--spacing-attachments, props.get(core.$size--200)); | ||
| 15 | |||
| 16 | $line-width: props.def(--o-message--line-width, props.get(core.$border-width--medium)); | ||
| 17 | $line-offset: props.def( | ||
| 18 | --o-message--line-offset, | ||
| 19 | calc(0.5 * props.get($avatar-size) - props.get($line-width)) | ||
| 20 | ); | ||
| 21 | $line-curve: props.def(--o-message--line-curve, props.get(core.$size--250)); | ||
| 22 | |||
| 23 | $attachment-width: props.def(--o-message--attachment-width, props.get(core.$size--2000)); | ||
| 24 | |||
| 25 | $colors: props.def( | ||
| 26 | --o-message, | ||
| 27 | ( | ||
| 28 | --meta: props.get(core.$theme, --text-mute-more), | ||
| 29 | --line: props.get(core.$theme, --border), | ||
| 30 | --dot: ( | ||
| 31 | --border: props.get(core.$theme, --text-mute-more), | ||
| 32 | --bg: props.get(core.$theme, --bg-base), | ||
| 33 | ), | ||
| 34 | --attachment: ( | ||
| 35 | --bg: props.get(core.$theme, --border-mute), | ||
| 36 | ), | ||
| 37 | ), | ||
| 38 | "color" | ||
| 39 | ); | ||
