-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converts save functions to render a static version of the block
This allows the block to display content in non-browser contexts like email.
- Loading branch information
1 parent
6d4f386
commit 90af81e
Showing
7 changed files
with
47 additions
and
85 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
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,13 +1,7 @@ | ||
.wp-block-tab { | ||
display: none; | ||
padding: 1em 0; | ||
|
||
&.is-active { | ||
display: block; | ||
} | ||
|
||
> *:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -1,24 +1,30 @@ | ||
.wp-block-tabs__list { | ||
display: flex; | ||
gap: 10px; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.wp-block-tabs.interactive { | ||
.wp-block-tabs__title { | ||
display: none; | ||
} | ||
|
||
.wp-block-tabs__list { | ||
display: flex; | ||
gap: 10px; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.wp-block-tabs__tab-label { | ||
display: block; | ||
margin: 0; | ||
opacity: 0.5; | ||
padding: $grid-unit; | ||
text-decoration: none; | ||
.wp-block-tabs__tab-label { | ||
display: block; | ||
margin: 0; | ||
opacity: 0.5; | ||
padding: $grid-unit; | ||
text-decoration: none; | ||
|
||
&.is-active { | ||
border-bottom: currentColor 2px solid; | ||
opacity: 1; | ||
&[aria-selected="true"] { | ||
border-bottom: currentColor 2px solid; | ||
opacity: 1; | ||
} | ||
} | ||
} | ||
|
||
.wp-block-tabs__content { | ||
border-top: var(--wp--preset--color--accent) 2px solid; | ||
.wp-block-tabs__content { | ||
border-top: var(--wp--preset--color--accent) 2px solid; | ||
} | ||
} |