Skip to content

Commit f428b9f

Browse files
committed
feat: add new shadow variables and update card shadow classes
1 parent 438ea59 commit f428b9f

File tree

3 files changed

+29
-13
lines changed

3 files changed

+29
-13
lines changed

src/css/base.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5213,3 +5213,9 @@ details[open] {
52135213
padding: 0;
52145214
position: absolute;
52155215
}
5216+
5217+
.dc__contain {
5218+
&--paint {
5219+
contain: paint;
5220+
}
5221+
}

src/css/colorPalette.scss

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,23 @@ $black: 0, 0, 0;
243243

244244
--button-text-on-dark: rgb(114, 172, 230);
245245

246-
--shadow-menu: 0px 1px 1px 0px rgba(#{$black}, 0.07), 0px 2px 5px 0px rgba(#{$black}, 0.07), 0px 3px 8px 0px rgba(#{$black}, 0.07);
247-
--shadow-modal: 0px 1px 1px 0px rgba(#{$black}, 0.04), 0px 2px 8px 0px rgba(#{$black}, 0.04), 0px 3px 17px 0px rgba(#{$black}, 0.04), 0px 4px 30px 0px rgba(#{$black}, 0.13);
248-
--shadow-overlay: 0px 1px 1px 0px rgba(#{$black}, 0.04), 0px 2px 6px 0px rgba(#{$black}, 0.04), 0px 4px 12px 0px rgba(#{$black}, 0.1);
249-
--shadow-drawer: 0px 1px 1px 0px rgba(#{$black}, 0.04), 0px 2px 8px 0px rgba(#{$black}, 0.04), 0px 3px 17px 0px rgba(#{$black}, 0.04), 0px 4px 30px 0px rgba(#{$black}, 0.13);
250-
--shadow-card-primary: 0px 1px 2px 0px rgba(1, 87, 173, 0.1);
251-
--shadow-card-secondary: 0px 0px 8px 0px rgba(#{$black}, 0.1);
252-
--shadow-card-tertiary: 0 8px 12px 0 rgba(30, 35, 96, 0.1), 0 1px 4px 0 rgba(#{$black}, 0.1);
246+
--shadow-menu: 0px 1px 1px 0px rgba(#{$black}, 0.07),
247+
0px 2px 5px 0px rgba(#{$black}, 0.07),
248+
0px 3px 8px 0px rgba(#{$black}, 0.07);
249+
--shadow-modal: 0px 1px 1px 0px rgba(#{$black}, 0.04),
250+
0px 2px 8px 0px rgba(#{$black}, 0.04),
251+
0px 3px 17px 0px rgba(#{$black}, 0.04),
252+
0px 4px 30px 0px rgba(#{$black}, 0.13);
253+
--shadow-overlay: 0px 1px 1px 0px rgba(#{$black}, 0.04),
254+
0px 2px 6px 0px rgba(#{$black}, 0.04),
255+
0px 4px 12px 0px rgba(#{$black}, 0.1);
256+
--shadow-drawer: 0px 1px 1px 0px rgba(#{$black}, 0.04),
257+
0px 2px 8px 0px rgba(#{$black}, 0.04),
258+
0px 3px 17px 0px rgba(#{$black}, 0.04),
259+
0px 4px 30px 0px rgba(#{$black}, 0.13);
260+
--shadow-10: 0px 0px 4px 0px var(--black-20);
261+
--shadow-20: 0px 0px 7px 0px var(--black-20);
262+
--shadow-30: 0px 0px 10px 0px var(--black-20);
253263

254264
&.theme {
255265
&__light {

src/css/themeUtils.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@
126126
}
127127

128128
&__card {
129-
&--primary {
130-
box-shadow: var(--shadow-card-primary);
129+
&--10 {
130+
box-shadow: var(--shadow-10);
131131
}
132132

133-
&--secondary {
134-
box-shadow: var(--shadow-card-secondary);
133+
&--20 {
134+
box-shadow: var(--shadow-20);
135135
}
136136

137-
&--tertiary {
138-
box-shadow: var(--shadow-card-tertiary);
137+
&--30 {
138+
box-shadow: var(--shadow-10);
139139
}
140140
}
141141
}

0 commit comments

Comments
 (0)