-
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.
feat(styles): create blockquote component (#3882)
Co-authored-by: Alizé Debray <[email protected]>
- Loading branch information
1 parent
bd1de28
commit de229aa
Showing
6 changed files
with
67 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@swisspost/design-system-documentation': patch | ||
'@swisspost/design-system-styles': patch | ||
--- | ||
|
||
Updated the blockquote styles to match the new Post design. |
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
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
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,46 @@ | ||
@use '../tokens/components'; | ||
@use '../functions/tokens'; | ||
|
||
tokens.$default-map: components.$post-blockquote; | ||
|
||
.blockquote { | ||
font-size: tokens.get('post-blockquote-font-size'); | ||
font-weight: tokens.get('post-blockquote-font-weight'); | ||
margin: tokens.get('post-blockquote-margin-block') tokens.get('post-blockquote-margin-inline'); | ||
padding: 0 tokens.get('post-blockquote-padding-inline-end') 0 | ||
tokens.get('post-blockquote-padding-inline-start'); | ||
border-inline-start: tokens.get('post-blockquote-border-width-left') | ||
tokens.get('post-blockquote-border-left-style') tokens.get('post-blockquote-border-left-color'); | ||
} | ||
|
||
figure:has(.blockquote) { | ||
margin: tokens.get('post-blockquote-margin-block') tokens.get('post-blockquote-margin-inline'); | ||
padding: 0 tokens.get('post-blockquote-padding-inline-end') 0 | ||
tokens.get('post-blockquote-padding-inline-start'); | ||
border-inline-start: tokens.get('post-blockquote-border-width-left') | ||
tokens.get('post-blockquote-border-left-style') tokens.get('post-blockquote-border-left-color'); | ||
|
||
.blockquote { | ||
margin: 0; | ||
padding: 0; | ||
border-width: 0; | ||
border-style: none; | ||
border-color: transparent; | ||
|
||
q { | ||
quotes: '\00ab' '\00bb' '\2039' '\203A'; | ||
|
||
&:lang(en) { | ||
quotes: '\0022' '\0022' '\0027' '\0027'; | ||
} | ||
} | ||
} | ||
} | ||
|
||
figcaption.blockquote-footer { | ||
margin-top: tokens.get('post-blockquote-gap-inline'); | ||
|
||
cite { | ||
font-style: inherit; | ||
} | ||
} |