Compare commits
No commits in common. "f1765884dfb39d25fd838df7e96380cc31f3902c" and "0d059b72dd04e580658ecc1b512f961242e5b55b" have entirely different histories.
f1765884df
...
0d059b72dd
|
@ -28,8 +28,7 @@
|
|||
<!-- wp:html {"metadata":{"name":"google-map"}} -->
|
||||
<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"
|
||||
class="google-map"
|
||||
width="100%" height="336" style="border:0;" allowfullscreen="" loading="lazy"
|
||||
width="600" height="336" style="border:0;" allowfullscreen="" loading="lazy"
|
||||
referrerpolicy="no-referrer-when-downgrade"></iframe>
|
||||
<!-- /wp:html -->
|
||||
</div>
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"width":"50%","className":"hide-on-mobile"} -->
|
||||
<div class="wp-block-column hide-on-mobile" style="flex-basis:50%"></div>
|
||||
<!-- wp:column {"width":"50%"} -->
|
||||
<div class="wp-block-column" style="flex-basis:50%"></div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column {"width":"25%","className":"hide-on-mobile"} -->
|
||||
<div class="wp-block-column hide-on-mobile" style="flex-basis:25%"><!-- wp:columns -->
|
||||
<!-- wp:column {"width":"25%"} -->
|
||||
<div class="wp-block-column" 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","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: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:search {"label":"Search","showLabel":false,"placeholder":"Search..","width":null,"widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /-->
|
||||
<!-- wp:search {"label":"Search","showLabel":false,"placeholder":"Search..","width":220,"widthUnit":"px","buttonText":"Search","buttonUseIcon":true,"style":{"layout":{"selfStretch":"fit","flexSize":null}},"backgroundColor":"primary"} /-->
|
||||
</div>
|
||||
<!-- /wp:group -->
|
||||
</div>
|
||||
|
|
35
style.css
35
style.css
|
@ -6,36 +6,7 @@ Description: Modern block theme for CMT Engineering
|
|||
Version: 0.1
|
||||
*/
|
||||
|
||||
/* highlight current/hovered page nav item */
|
||||
@media screen and (min-width: 786px) {
|
||||
.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;
|
||||
}
|
||||
.wp-block-navigation .wp-block-navigation-item.current_page_item {
|
||||
padding: 1em;
|
||||
background-color: var(--wp--preset--color--secondary);
|
||||
}
|
Loading…
Reference in New Issue