-
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.
Merge branch 'main' into feature/MOOSE-77/create-block-templates
- Loading branch information
Showing
8 changed files
with
427 additions
and
284 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
wp-content/themes/core/blocks/outermost/socialsharing/Social_Sharing.php
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 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Tribe\Theme\blocks\outermost\socialsharing; | ||
|
||
use Tribe\Plugin\Blocks\Block_Base; | ||
|
||
class Social_Sharing extends Block_Base { | ||
|
||
public function get_block_name(): string { | ||
return 'outermost/social-sharing'; | ||
} | ||
|
||
public function get_block_style_handle(): string { | ||
return 'outermost-social-sharing-style'; | ||
} | ||
|
||
public function get_block_path(): string { | ||
return 'outermost/socialsharing'; | ||
} | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
wp-content/themes/core/blocks/outermost/socialsharing/index.js
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'; |
45 changes: 45 additions & 0 deletions
45
wp-content/themes/core/blocks/outermost/socialsharing/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,45 @@ | ||
/** | ||
* Styles specific to this block | ||
*/ | ||
|
||
body { | ||
--ssb-button-color: var(--wp--preset--color--base-black); | ||
--ssb-button-hover-color: var(--wp--preset--color--base-white); | ||
--ssb-button-background-color: var(--wp--preset--color--base-white); | ||
--ssb-button-background-hover-color: var(--wp--preset--color--base-black); | ||
--ssb-button-border-color: var(--wp--preset--color--base-black); | ||
--ssb-button-border-hover-color: var(--wp--preset--color--base-white); | ||
--ssb-button-border-size: 1px; | ||
} | ||
|
||
.wp-block-outermost-social-sharing { | ||
background: transparent; | ||
transition: var(--transition); | ||
|
||
&:not(.is-style-logos-only) { | ||
|
||
.outermost-social-sharing-link { | ||
background-color: var(--ssb-button-background-color); | ||
color: var(--ssb-button-color); | ||
fill: var(--ssb-button-color); | ||
border: var(--ssb-button-border-size) solid var(--ssb-button-border-color); | ||
|
||
&:hover, | ||
&:focus { | ||
background-color: var(--ssb-button-background-hover-color); | ||
color: var(--ssb-button-hover-color); | ||
fill: var(--ssb-button-hover-color); | ||
border: var(--ssb-button-border-size) solid var(--ssb-button-border-hover-color); | ||
} | ||
|
||
a:focus-visible { | ||
outline: none; | ||
outline-offset: 0; | ||
background-color: var(--ssb-button-background-hover-color); | ||
color: var(--ssb-button-hover-color); | ||
fill: var(--ssb-button-hover-color); | ||
border-radius: 9999px; /* Value provided by their base CSS for the plugin */ | ||
} | ||
} | ||
} | ||
} |