COMPLETED: Card sub-components
HOTFIX: In all cards add CSS rule : if card media subcomponent are first, or first any of subcomponents contain on first place media component - applying a zero-padding and border-radius exclude a default padding value
This commit is contained in:
@@ -3,12 +3,17 @@
|
||||
@import "./themes/typography.module.css";
|
||||
@import "./themes/theme.dark.css" (prefers-color-scheme: dark);
|
||||
@import "./themes/theme.light.css" (prefers-color-scheme: light);
|
||||
div.m3.m3-card > .m3-card-media:first-child {
|
||||
div.m3.m3-card > :is(div.m3-card-footer, header.m3-card-header, section.m3-card-body) > .m3-card-media:first-child, div.m3.m3-card > .m3-card-media:first-child, div.m3.m3-card > .m3-card-action-area:first-child > .m3-card-action-area-content > .m3-card-media:first-child {
|
||||
padding: 0px;
|
||||
border-radius: 12px !important;
|
||||
}
|
||||
|
||||
:is(div.m3-card-footer, header.m3-card-header, section.m3-card-body, img.m3-card-media).m3 {
|
||||
div.m3.m3-card > .m3-card-action-area:first-child > .m3-card-action-area-content > .m3-card-media:first-child {
|
||||
padding: 0px;
|
||||
border-radius: 12px !important;
|
||||
}
|
||||
|
||||
:is(div.m3-card-footer, header.m3-card-header, section.m3-card-body, .m3-card-media).m3 {
|
||||
padding: 16px;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user