summaryrefslogtreecommitdiffstats
path: root/src/objects/_card.vars.scss
blob: bf5f6db1ed0929fd84b0f14951dde129184e5bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@use 'sass:map';
@use '../props';
@use '../core.vars' as core;

$divider-width: props.def(--o-card--divider-width, props.get(core.$border-width--thin)) !default;
$pad-i:         props.def(--o-card--pad-i, props.get(core.$size--300)) !default;
$pad-b:         props.def(--o-card--pad-b, props.get(core.$size--250)) !default;
$spacing:       props.def(--o-card--spacing, props.get(core.$size--200)) !default;
$rounding:      props.def(--o-card--rounding, props.get(core.$rounding)) !default;

$hover--offset-b: props.def(--o-card--rounding, calc(-1 * props.get(core.$size--65))) !default;

$key-focus--border-width:  props.def(--o-card--key-focus--border-width, props.get(core.$key-focus--border-width)) !default;
$key-focus--border-offset: props.def(--o-card--key-focus--border-offset, props.get(core.$key-focus--border-offset)) !default;
$key-focus--outline-width: props.def(--o-card--key-focus--outline-width, props.get(core.$key-focus--outline-width)) !default;

$bg-color:      props.def(--o-card--bg-color, props.get(core.$theme, --bg-l2)) !default;
$divider-color: props.def(--o-card--divider-color, props.get(core.$theme, --border-mute)) !default;

$key-focus--label-color:   props.def(--o-card--key-focus--label-color, props.get(core.$theme, --focus, --text)) !default;
$key-focus--border-color:  props.def(--o-card--key-focus--border-color, props.get(core.$theme, --focus, --border)) !default;
$key-focus--outline-color: props.def(--o-card--key-focus--outline-color, props.get(core.$theme, --focus, --outline)) !default;

$quiet--image-color:        props.def(--o-card--quiet--image-color, props.get(core.$theme, --bg-base)) !default;
$quiet--hover--image-color: props.def(--o-card--quiet--hover--image-color, props.get(core.$theme, --border)) !default;