-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#4] Updating code formatting [#4] update package name [#4] updating spacing unit and removing defaults we don't need [#4] styling the outline button [#4] setting up spacing and header
- Loading branch information
1 parent
76080b6
commit b1fbda3
Showing
6 changed files
with
137 additions
and
61 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,10 @@ | ||
/** | ||
* Hover style for core/button -> variations -> outline | ||
* Colors vars are set in theme.json | ||
*/ | ||
|
||
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color, .has-background):hover, | ||
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color, .has-background):focus{ | ||
background-color: var(--wp--preset--color--contrast); | ||
color: var(--wp--preset--color--contrast-4); | ||
} |
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,10 @@ | ||
<?php | ||
/** | ||
* Theme Functions File | ||
* | ||
* @package GoodBids_Nonprofit | ||
* | ||
* @since 1.0 | ||
*/ | ||
|
||
require_once get_stylesheet_directory() . '/inc/assets.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,27 @@ | ||
<?php | ||
/** | ||
* Pulls in custom assets for the GoodBids child theme. | ||
* | ||
* @package GoodBids_Nonprofit | ||
*/ | ||
|
||
namespace GoodBids_Nonprofit\Assets; | ||
|
||
/** | ||
* Enqueue Theme Styles. | ||
* | ||
* @since 1.0.0 | ||
* | ||
* @return void | ||
*/ | ||
|
||
function enqueue_styles(): void { | ||
wp_enqueue_style( | ||
'goodbids-nonprofit', | ||
get_stylesheet_directory_uri() . '/assets/css/theme.css', | ||
array(), | ||
wp_get_theme()->get( 'Version' ) | ||
); | ||
} | ||
|
||
add_action( 'wp_enqueue_scripts', 'GoodBids_Nonprofit\Assets\enqueue_styles' ); |
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,22 @@ | ||
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"20px","bottom":"20px"}}},"layout":{"type":"constrained"}} --> | ||
<div class="wp-block-group alignwide has-background" | ||
style="padding-top:20px;padding-bottom:20px"> | ||
<!-- wp:group {"align":"wide","layout":{"type":"flex","justifyContent":"space-between","flexWrap":"wrap"}} --> | ||
<div class="wp-block-group alignwide"> | ||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:site-logo {"width":60 } /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:site-title {"level":0} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:navigation {"layout":{"type":"flex","justifyContent":"right","orientation":"horizontal"},"style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}}} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> |
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