summaryrefslogtreecommitdiffstats
path: root/src/objects/_card.vars.scss
blob: 96f3cb9b9b22cc9bb6f445ff6d48b9809b01013b (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@use "sass:map";
@use "pkg:iro-sass/props";
@use "../core.vars" as core;

$divider-width: props.def(--o-card--divider-width, props.get(core.$border-width--thin)) !default;
$border-width: props.def(--o-card--border-width, props.get(core.$border-width--thin)) !default;
$sub-border-width: props.def(
	--o-card--sub-border-width,
	props.get(core.$border-width--thick)
) !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, props.get($pad-i)) !default;
$image-overlay--pad-b: props.def(--o-card--image-overlay--pad-b, props.get($pad-b)) !default;

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

$shadow-x: props.def(--o-card--shadow-x, props.get(core.$shadow--l1--x)) !default;
$shadow-y: props.def(--o-card--shadow-y, props.get(core.$shadow--l1--y)) !default;
$shadow-blur: props.def(--o-card--shadow-blur, props.get(core.$shadow--l1--blur)) !default;
$shadow-grow: props.def(--o-card--shadow-grow, props.get(core.$shadow--l1--grow)) !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;

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

$highlight--shadow-x: props.def(
	--o-card--highlight--shadow-x,
	props.get(core.$shadow--l2--x)
) !default;
$highlight--shadow-y: props.def(
	--o-card--highlight--shadow-y,
	props.get(core.$shadow--l2--y)
) !default;
$highlight--shadow-blur: props.def(
	--o-card--highlight--shadow-blur,
	props.get(core.$shadow--l2--blur)
) !default;
$highlight--shadow-grow: props.def(
	--o-card--highlight--shadow-grow,
	props.get(core.$shadow--l2--grow)
) !default;

$highlight--border-width: props.def(
	--o-card--highlight--border-width,
	props.get(core.$border-width--medium)
) !default;
$highlight--border-color: props.def(
	--o-card--highlight--border-color,
	props.get(core.$theme, --accent, --700) props.get(core.$theme, --accent, --700)
		props.get(core.$theme, --accent, --800),
	"color"
) !default;
$highlight--shadow-color: props.def(
	--o-card--highlight--shadow-color,
	props.get(core.$theme, --accent, --200),
	"color"
) !default;

$hover--bg-color: props.def(
	--o-card--hover--bg-color,
	color-mix(in lch, props.get($bg-color), props.get(core.$theme, --border-mute)),
	"color"
) !default;
$hover--border-color: props.def(
	--o-card--hover--border-color,
	props.get(core.$theme, --border),
	"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;

$pad-i--sm: props.def(--o-card--pad-i, props.get(core.$size--200), "sm") !default;
$pad-b--sm: props.def(--o-card--pad-b, props.get(core.$size--175), "sm") !default;