-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(styles): fix mixed-decls warning from form footer (#3869)
- Loading branch information
1 parent
9297419
commit 5bce3fd
Showing
6 changed files
with
263 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
@use '../mixins/utilities' as utility-mx; | ||
@use '../tokens/components'; | ||
@use '../functions/tokens' as tokens; | ||
@use '../functions/tokens'; | ||
|
||
@use '../mixins/layout'; | ||
|
||
tokens.$default-map: components.$post-form-footer; | ||
|
||
.form-footer { | ||
@include utility-mx.responsive-actions(); | ||
border-block-start-width: tokens.get('form-footer-border-block-start-width'); | ||
border-block-start-color: tokens.get('form-footer-border-start-color'); | ||
border-block-start-style: tokens.get('form-footer-border-block-start-style'); | ||
padding-block-start: tokens.get('form-footer-padding-block-start'); | ||
gap: tokens.get('form-footer-gap'); | ||
|
||
&-primary-actions { | ||
@include layout.responsive-actions { | ||
gap: tokens.get('form-footer-gap'); | ||
} | ||
} |
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,9 @@ | ||
@use 'sass:map'; | ||
@use '../variables/breakpoints'; | ||
|
||
/** | ||
Gets a breakpoint from the map based on the key | ||
*/ | ||
@function min-width($key) { | ||
@return map.get(breakpoints.$grid-breakpoints, $key); | ||
} |
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,26 @@ | ||
@use './media'; | ||
|
||
@mixin responsive-actions { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
|
||
@include media.min(md) { | ||
flex-direction: row-reverse; | ||
|
||
> .btn { | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
&-primary-actions { | ||
display: flex; | ||
flex-direction: column; | ||
@content; | ||
|
||
@include media.min(md) { | ||
flex-direction: row-reverse; | ||
margin-left: auto; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.