-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathcard.ionic.scss
More file actions
executable file
·36 lines (28 loc) · 882 Bytes
/
card.ionic.scss
File metadata and controls
executable file
·36 lines (28 loc) · 882 Bytes
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
@use "../../themes/ionic/ionic.globals.scss" as globals;
@use "./card.common";
// Ionic Card
// --------------------------------------------------
:host {
--background: #{globals.$ion-bg-surface-default};
--border-width: #{globals.$ion-border-size-025};
--border-color: #{globals.$ion-border-default};
--border-style: #{globals.$ion-border-style-solid};
--border-radius: #{globals.$ion-round-xl};
--color: #{globals.$ion-text-default};
min-width: globals.$ion-scale-2400;
border: var(--border-width) var(--border-style) var(--border-color);
}
::slotted(img) {
display: block;
}
// Card Shapes
// ---------------------------------------------
:host(.card-soft) {
--border-radius: #{globals.$ion-soft-xl};
}
:host(.card-round) {
--border-radius: #{globals.$ion-round-xl};
}
:host(.card-rectangular) {
--border-radius: #{globals.$ion-rectangular-xl};
}