Skip to content

Commit

Permalink
fix(box like components): add white background and md box shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintonJason committed Aug 6, 2024
1 parent 51da890 commit 5132ab4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/sage-assets/lib/stylesheets/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ $-sage-card-background: transparent;
.sage-card {
@include sage-card();

background-color: sage-color(white);
box-shadow: sage-shadow(md);
position: relative;
width: 100%;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/sage-assets/lib/stylesheets/components/_choice.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ $-choice-radio-color-checked-inner: map-get($sage-radio-colors, checked-inner);
padding: sage-spacing();
text-decoration: none;
color: $-choice-color-default;
background-color: sage-color(white);
border: sage-border();
border-radius: sage-border(radius-large);
box-shadow: sage-shadow(md);
transition: map-get($sage-transitions, default);
transition-property: color, background-color, border-color, box-shadow;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ $-stat-box-image-max-width: rem(48px);
.sage-stat-box {
// Styles here
@include sage-card($grid: false);
background-color: sage-color(white);
padding: rem(18px) sage-spacing(sm);
border-radius: sage-border(radius-large);
box-shadow: sage-shadow(md);

&.sage-stat-box--raised {
box-shadow: sage-shadow(sm);
Expand Down
2 changes: 2 additions & 0 deletions packages/sage-assets/lib/stylesheets/components/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ $-switch-toggle-size: rem(16px);

&.sage-switch--has-border {
align-items: center;
background-color: sage-color(white);
padding: sage-spacing(card);
border: sage-border();
border-radius: sage-border(radius);
box-shadow: sage-shadow(md);
}

&.sage-switch--toggle-right {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ $-transaction-card-price-max-width: rem(100px);
.sage-transaction-card {
@include sage-card;

background-color: sage-color(white);
box-shadow: sage-shadow(md);
position: relative;
width: 100%;

Expand Down
2 changes: 2 additions & 0 deletions packages/sage-assets/lib/stylesheets/layout/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


.sage-container {
background-color: sage-color(white);
box-shadow: sage-shadow(md);
width: 100%;
margin: 0 auto;

Expand Down
5 changes: 3 additions & 2 deletions packages/sage-assets/lib/stylesheets/layout/_frame.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $-sage-frame-wraps: (
// 2. Variables for default settings
//
$-sage-frame-alignment: top-left;
$-sage-frame-background: transparent;
$-sage-frame-background: sage-color(white);
$-sage-frame-border: none;
$-sage-frame-border-radius: none;
$-sage-frame-direction: vertical;
Expand All @@ -163,6 +163,7 @@ $-sage-frame-wrap: none;

// Root element
.sage-frame {
background-color: $-sage-frame-background;
display: flex;

// Add default settings
Expand Down Expand Up @@ -242,7 +243,7 @@ $-sage-frame-wrap: none;
.sage-frame--gap-#{$-key} {
gap: #{$-val};
}

.sage-frame--padding-#{$-key} {
padding: #{$_val};
}
Expand Down

0 comments on commit 5132ab4

Please sign in to comment.