Compare commits
4 Commits
0d059b72dd
...
f1765884df
Author | SHA1 | Date |
---|---|---|
Aadil Ayub | f1765884df | |
Aadil Ayub | 5df60ad75b | |
Aadil Ayub | 6e317b2a78 | |
Aadil Ayub | 47cd67cc5b |
|
@ -28,7 +28,8 @@
|
||||||
<!-- wp:html {"metadata":{"name":"google-map"}} -->
|
<!-- wp:html {"metadata":{"name":"google-map"}} -->
|
||||||
<iframe
|
<iframe
|
||||||
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d4861.401919479944!2d-2.076866!3d52.466443!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487096d46a6c5a4d%3A0xfbb033fe40d15d07!2sCMT%20Engineering%20LTD!5e0!3m2!1sen!2sus!4v1714038134763!5m2!1sen!2sus"
|
src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d4861.401919479944!2d-2.076866!3d52.466443!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x487096d46a6c5a4d%3A0xfbb033fe40d15d07!2sCMT%20Engineering%20LTD!5e0!3m2!1sen!2sus!4v1714038134763!5m2!1sen!2sus"
|
||||||
width="600" height="336" style="border:0;" allowfullscreen="" loading="lazy"
|
class="google-map"
|
||||||
|
width="100%" height="336" style="border:0;" allowfullscreen="" loading="lazy"
|
||||||
referrerpolicy="no-referrer-when-downgrade"></iframe>
|
referrerpolicy="no-referrer-when-downgrade"></iframe>
|
||||||
<!-- /wp:html -->
|
<!-- /wp:html -->
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- /wp:column -->
|
<!-- /wp:column -->
|
||||||
|
|
||||||
<!-- wp:column {"width":"50%"} -->
|
<!-- wp:column {"width":"50%","className":"hide-on-mobile"} -->
|
||||||
<div class="wp-block-column" style="flex-basis:50%"></div>
|
<div class="wp-block-column hide-on-mobile" style="flex-basis:50%"></div>
|
||||||
<!-- /wp:column -->
|
<!-- /wp:column -->
|
||||||
|
|
||||||
<!-- wp:column {"width":"25%"} -->
|
<!-- wp:column {"width":"25%","className":"hide-on-mobile"} -->
|
||||||
<div class="wp-block-column" style="flex-basis:25%"><!-- wp:columns -->
|
<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-columns"><!-- wp:column {"layout":{"type":"constrained","justifyContent":"right"}} -->
|
||||||
<div class="wp-block-column">
|
<div class="wp-block-column">
|
||||||
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#344c81"},"elements":{"link":{"color":{"text":"#344c81"}}}},"fontSize":"large"} -->
|
<!-- wp:paragraph {"align":"right","style":{"color":{"text":"#344c81"},"elements":{"link":{"color":{"text":"#344c81"}}}},"fontSize":"large"} -->
|
||||||
|
@ -43,11 +43,11 @@
|
||||||
<div
|
<div
|
||||||
class="wp-block-group main-navigation has-white-color has-primary-background-color has-text-color has-background has-link-color"
|
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">
|
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"}} -->
|
<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
|
||||||
<div class="wp-block-group alignwide" style="padding-left:var(--wp--preset--spacing--60)">
|
<div class="wp-block-group alignwide">
|
||||||
<!-- wp:navigation {"ref":2119,"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left"},"style":{"layout":{"selfStretch":"fit","flexSize":null},"typography":{"fontSize":"0.9rem"}}} /-->
|
<!-- 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>
|
</div>
|
||||||
<!-- /wp:group -->
|
<!-- /wp:group -->
|
||||||
</div>
|
</div>
|
||||||
|
|
35
style.css
35
style.css
|
@ -6,7 +6,36 @@ Description: Modern block theme for CMT Engineering
|
||||||
Version: 0.1
|
Version: 0.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.wp-block-navigation .wp-block-navigation-item.current_page_item {
|
/* highlight current/hovered page nav item */
|
||||||
padding: 1em;
|
@media screen and (min-width: 786px) {
|
||||||
background-color: var(--wp--preset--color--secondary);
|
.wp-block-navigation .wp-block-navigation-item {
|
||||||
|
padding-block: 1em;
|
||||||
|
padding-inline: .75em
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-navigation .wp-block-navigation-item.current_page_item,
|
||||||
|
.wp-block-navigation .wp-block-navigation-item:hover,
|
||||||
|
.wp-block-navigation .wp-block-navigation-item:active,
|
||||||
|
.wp-block-navigation .wp-block-navigation-item:focus-visible {
|
||||||
|
background: var(--wp--preset--color--secondary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 786px) {
|
||||||
|
.hide-on-mobile {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* attempt to fix mobile menu */
|
||||||
|
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ ul.wp-block-navigation__submenu-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
|
||||||
|
font-size: 22px !important;
|
||||||
|
text-align: center;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding-inline: 1em;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue