Skip to content

Commit

Permalink
*fix Card without title style (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sodik authored Dec 2, 2024
1 parent d05020c commit 210f1ac
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 35 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 36 additions & 35 deletions packages/ui/src/Card.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@use '../styles/constants' as c;

.wrapper {
$padding: c.$grid * 5;
$padding: c.$grid * 5;

.wrapper {
background: c.$colorNeutralWhite;

.heading {
Expand Down Expand Up @@ -35,12 +35,6 @@
@include c.typographyBodyNormal;
}

&.noTitle {
.content {
margin-top: 0;
}
}

.caption {
display: flex;
margin-bottom: $padding;
Expand All @@ -49,43 +43,50 @@
flex: 1;
}
}
}

&.bordered {
padding: $padding;
border-radius: c.$borderRadius;
border: c.$borderWidth solid c.$colorNeutral;
.bordered {
padding: $padding;
border-radius: c.$borderRadius;
border: c.$borderWidth solid c.$colorNeutral;

.heading {
@include c.typographyH3;
.heading {
@include c.typographyH3;

display: flex;
align-items: center;
margin: 0;
display: flex;
align-items: center;
margin: 0;

.icon {
margin-right: c.$grid * 2.5;
}
.icon {
margin-right: c.$grid * 2.5;
}

.title {
margin: 0;
font-size: c.$fontSizeBodyNormal !important;
line-height: c.$lineHeightBodyNormal !important;
.title {
margin: 0;
font-size: c.$fontSizeBodyNormal !important;
line-height: c.$lineHeightBodyNormal !important;

&.space {
margin-right: c.$grid * 2.5;
}
&.space {
margin-right: c.$grid * 2.5;
}
}
}

.content {
@include c.typographyBodyNormal;
.content {
@include c.typographyBodyNormal;

margin-top: c.$grid * 4;
padding: 0;
}
margin-top: c.$grid * 4;
padding: 0;
}

.caption {
margin: (-$padding) (-$padding) $padding;
}
.caption {
margin: (-$padding) (-$padding) $padding;
}
}

.noTitle {
.content {
margin-top: 0;
padding-top: 0;
}
}

0 comments on commit 210f1ac

Please sign in to comment.