summaryrefslogtreecommitdiffstats
path: root/src/objects/_card.vars.scss
blob: 9cdc177f8ed3f6abb26e3a700248c5202d3f6171 (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
26
27
@use 'sass:map';
@use 'iro-sass/src/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;
$image-overlay--pad-i: props.def(--o-card--image-overlay--pad-i, calc(.5 * props.get($pad-i))) !default;
$image-overlay--pad-b: props.def(--o-card--image-overlay--pad-b, calc(.5 * props.get($pad-b))) !default;

$hover--offset-b: props.def(--o-card--hover--offset-b, 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), 'color') !default;
$divider-color: props.def(--o-card--divider-color, props.get(core.$theme, --border-mute), 'color') !default;

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

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