tweak header for mobile

This commit is contained in:
Aadil Ayub 2024-04-25 21:03:00 +05:00
parent 0d059b72dd
commit 47cd67cc5b
2 changed files with 14 additions and 8 deletions

View File

@ -11,12 +11,12 @@
</div>
<!-- /wp:column -->
<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"></div>
<!-- wp:column {"width":"50%","className":"hide-on-mobile"} -->
<div class="wp-block-column hide-on-mobile" style="flex-basis:50%"></div>
<!-- /wp:column -->
<!-- wp:column {"width":"25%"} -->
<div class="wp-block-column" style="flex-basis:25%"><!-- wp:columns -->
<!-- wp:column {"width":"25%","className":"hide-on-mobile"} -->
<div class="wp-block-column hide-on-mobile" style="flex-basis:25%"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"layout":{"type":"constrained","justifyContent":"right"}} -->
<div class="wp-block-column">
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#344c81"},"elements":{"link":{"color":{"text":"#344c81"}}}},"fontSize":"large"} -->
@ -43,11 +43,11 @@
<div
class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color"
style="padding-top:0;padding-bottom:0">
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"left":"var:preset|spacing|60"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide" style="padding-left:var(--wp--preset--spacing--60)">
<!-- wp:navigation {"ref":2119,"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"layout":{"selfStretch":"fit","flexSize":null},"typography":{"fontSize":"0.9rem"}}} /-->
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignwide">
<!-- wp:navigation {"ref":2119,"openSubmenusOnClick":true,"hasIcon":false,"overlayBackgroundColor":"primary","overlayTextColor":"white","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"typography":{"fontSize":"0.9rem"}}} /-->
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search..","width":220,"widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /-->
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search..","width":null,"widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /-->
</div>
<!-- /wp:group -->
</div>

View File

@ -9,4 +9,10 @@ Version: 0.1
.wp-block-navigation .wp-block-navigation-item.current_page_item {
padding: 1em;
background-color: var(--wp--preset--color--secondary);
}
@media screen and (max-width: 786px) {
.hide-on-mobile {
display: none;
}
}