-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Header template #74
Merged
Merged
Header template #74
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -8,3 +8,35 @@ | |
background-color: var(--wp--preset--color--contrast); | ||
color: var(--wp--preset--color--contrast-4); | ||
} | ||
|
||
/*TODO move this all to Tailwind once we set that up*/ | ||
.wp-button-custom > a { | ||
background-color: var(--wp--preset--color--contrast); | ||
color: var(--wp--preset--color--base-2); | ||
font-size: var(--wp--preset--font-size--x-small); | ||
font-weight: 500; | ||
text-decoration: none; | ||
border-color: var(--wp--preset--color--contrast); | ||
border-radius: 100px; | ||
border-width: 0; | ||
padding-top: 0.8rem; | ||
padding-right: 1.5rem; | ||
padding-left: 1.5rem; | ||
padding-bottom: 0.8rem; | ||
|
||
&:hover { | ||
background-color: var(--wp--preset--color--contrast-4); | ||
border-color: var(--wp--preset--color--contrast); | ||
color: var(--wp--preset--color--contrast); | ||
} | ||
|
||
&:focus { | ||
background-color: var(--wp--preset--color--contrast-4); | ||
border-color: var(--wp--preset--color--contrast); | ||
color: var(--wp--preset--color--contrast); | ||
outline-color: var(--wp--preset--color--contrast); | ||
outline-offset: 2px; | ||
outline-style: dotted; | ||
outline-width: 1px; | ||
} | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Planning on moving this all to tailwind. |
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,23 +1 @@ | ||
<!-- 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}}} /--> | ||
|
||
<!-- wp:loginout /--></div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
<!-- wp:pattern {"slug":"goodbids-np/header-nonprofit"} /--> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved this to a pattern, so if we need to use PHP we can. |
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,37 @@ | ||
<!-- 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":"0.2rem"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} --> | ||
<div class="wp-block-group"> | ||
|
||
<!-- wp:site-logo {"width":160,"shouldSyncIcon":true,"style":{"spacing":{"margin":{"top":"0","bottom":"0","left":"0","right":"0.5rem"}}}} /--> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fixed","flexSize":"25px"}},"fontSize":"x-small"} --> | ||
<p class="has-x-small-font-size"><?php esc_html_e( 'for', 'goodbids-nonprofit' ); ?></p> | ||
<!-- /wp:paragraph --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"0px"}}} --> | ||
<div class="wp-block-group"> | ||
<!-- wp:site-title {"level":0,"fontSize":"x-small"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</div> | ||
<!-- /wp:group --> | ||
|
||
<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|20"}},"layout":{"type":"flex","flexWrap":"wrap"}} --> | ||
<div class="wp-block-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}},"fontSize":"x-small"} /--> | ||
<!-- wp:loginout {"className":"wp-button-custom","style":{"spacing":{"margin":{"top":"0"},"blockGap":"var:preset|spacing|20"},"layout":{"selfStretch":"fit","flexSize":null}},"textColor":"base-2","fontSize":"x-small"} /--> | ||
</div> | ||
<!-- /wp:group --> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /--> | ||
<!-- wp:pattern {"slug":"goodbids-nonprofit/template-home-nonprofit"} /--> | ||
<!-- wp:pattern {"slug":"goodbids-np/template-home-nonprofit"} /--> | ||
<!-- wp:template-part {"slug":"footer","area":"footer","tagName":"footer"} /--> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is totally fine, however, what are your thoughts about retrieving the URL (or Markup) of the Main site
custom_logo
and rendering that here? So if they upload a new logo to the Main site, this will inherit that new logo without requiring a change to the plugin or repo. If you look into it, be sure to do anis_main_site()
check otherwise you could end up in an infinite loop.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a great idea. I am going to keep it as is for now, but will make a note of it.