-
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.
[MOOSE-179]: add details block summary link styling
- Loading branch information
1 parent
3942389
commit beae8ae
Showing
4 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Tribe\Theme\blocks\core\details; | ||
|
||
use Tribe\Plugin\Blocks\Block_Base; | ||
|
||
class Details extends Block_Base { | ||
|
||
public function get_block_name(): string { | ||
return 'core/details'; | ||
} | ||
|
||
} |
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,5 @@ | ||
/** | ||
* Scripts specific to this block | ||
*/ | ||
|
||
import './style.pcss'; |
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,21 @@ | ||
/** | ||
* Styles specific to this block | ||
*/ | ||
|
||
.wp-block-details { | ||
|
||
/** | ||
* Summary elements shouldn't contain text markup, but for some | ||
* reason WP allows this markup within the summary text if you | ||
* copy & paste it into the summary element. We should try to | ||
* avoid this pattern, but since it's possible, we need to support | ||
* it. This only applies to links within the summary element. | ||
*/ | ||
summary { | ||
|
||
a { | ||
|
||
@mixin inline-text-link; | ||
} | ||
} | ||
} |