mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
refactor(card): convert styles to shadow
TODO font size does not work due to global styles
This commit is contained in:
@ -13,8 +13,8 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
gap: globals.$ion-space-400;
|
gap: globals.$ion-space-400;
|
||||||
|
}
|
||||||
img {
|
|
||||||
@include globals.margin(globals.$ion-space-200, 0, globals.$ion-space-200, 0);
|
::slotted(img) {
|
||||||
}
|
@include globals.margin(globals.$ion-space-200, 0, globals.$ion-space-200, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,34 +10,34 @@
|
|||||||
font-size: $card-ios-font-size;
|
font-size: $card-ios-font-size;
|
||||||
|
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
::slotted(h1) {
|
||||||
@include margin(0, 0, 2px);
|
@include margin(0, 0, 2px);
|
||||||
|
|
||||||
font-size: dynamic-font(24px);
|
font-size: dynamic-font(24px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
::slotted(h2) {
|
||||||
@include margin(2px, 0);
|
@include margin(2px, 0);
|
||||||
|
|
||||||
font-size: dynamic-font(16px);
|
font-size: dynamic-font(16px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3,
|
::slotted(h3),
|
||||||
h4,
|
::slotted(h4),
|
||||||
h5,
|
::slotted(h5),
|
||||||
h6 {
|
::slotted(h6) {
|
||||||
@include margin(2px, 0);
|
@include margin(2px, 0);
|
||||||
|
|
||||||
font-size: dynamic-font(14px);
|
font-size: dynamic-font(14px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
::slotted(p) {
|
||||||
@include margin(0, 0, 2px);
|
@include margin(0, 0, 2px);
|
||||||
|
|
||||||
font-size: dynamic-font(14px);
|
font-size: dynamic-font(14px);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,37 +10,37 @@
|
|||||||
font-size: $card-md-font-size;
|
font-size: $card-md-font-size;
|
||||||
|
|
||||||
line-height: $card-md-line-height;
|
line-height: $card-md-line-height;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
::slotted(h1) {
|
||||||
@include margin(0, 0, 2px);
|
@include margin(0, 0, 2px);
|
||||||
|
|
||||||
font-size: dynamic-font(24px);
|
font-size: dynamic-font(24px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
::slotted(h2) {
|
||||||
@include margin(2px, 0);
|
@include margin(2px, 0);
|
||||||
|
|
||||||
font-size: dynamic-font(16px);
|
font-size: dynamic-font(16px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3,
|
::slotted(h3),
|
||||||
h4,
|
::slotted(h4),
|
||||||
h5,
|
::slotted(h5),
|
||||||
h6 {
|
::slotted(h6) {
|
||||||
@include margin(2px, 0);
|
@include margin(2px, 0);
|
||||||
|
|
||||||
font-size: dynamic-font(14px);
|
font-size: dynamic-font(14px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
::slotted(p) {
|
||||||
@include margin(0, 0, 2px);
|
@include margin(0, 0, 2px);
|
||||||
|
|
||||||
font-size: dynamic-font(14px);
|
font-size: dynamic-font(14px);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user