-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
849 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/assets/css/src/scss/_components/_summary-box/_elements/_summary-box-content.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@use "sass:math"; | ||
@use "../../../_utils/utils" as *; | ||
|
||
/// Build Summary box content | ||
/// | ||
/// @type block | ||
/// @author WPMU DEV | ||
/// | ||
/// @param {String} $block - Main block name | ||
@mixin build-content($block) { | ||
// DIR: Left to right. | ||
// THEME: None. | ||
@include sui-class($rtl: false, $theme: null) { | ||
@include block($block) { | ||
@include element(content) { | ||
background: $summary-content-background; | ||
border-radius: $summary-content-border-radius; | ||
padding: $summary-content-padding-lg; | ||
width: calc(50% - $summary-row-gap-md / 2); | ||
|
||
@include modifier(fluid) { | ||
flex: 1 1 100%; | ||
width: 100%; | ||
} | ||
|
||
// Stack on mobile | ||
@include media(max-width, sm) { | ||
width: 100%; | ||
} | ||
|
||
@include modifier(md) { | ||
padding: $summary-content-padding-md; | ||
|
||
@include media(max-width, sm) { | ||
padding: $summary-content-padding-sm; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/assets/css/src/scss/_components/_summary-box/_elements/_summary-box-row.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@use "sass:math"; | ||
@use "../../../_utils/utils" as *; | ||
|
||
/// Build Summary box content | ||
/// | ||
/// @type block | ||
/// @author WPMU DEV | ||
/// | ||
/// @param {String} $block - Main block name | ||
@mixin build-row($block) { | ||
// DIR: Left to right. | ||
// THEME: None. | ||
@include sui-class($rtl: false, $theme: null) { | ||
@include block($block) { | ||
@include element(row) { | ||
display: flex; | ||
gap: $summary-row-gap-md; | ||
flex-wrap: wrap; | ||
justify-content: space-between; | ||
width: 100%; | ||
|
||
// Smaller gap on mobile | ||
@include media(max-width, sm) { | ||
gap: $summary-row-gap-sm; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.