Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi!
I recently added a scalloped border to my header via a css mask property on the header-wrapper in base.css as shown in the code below. This achieved what I wanted visually, but on mobile, the drawer menu is no longer visible.
Code:
.header-wrapper { --mask: radial-gradient(13.99px at 50% calc(100% - 19.20px),#000 99%,#0000 101%) calc(50% - 24px) 0/48px 100%, radial-gradient(13.99px at 50% calc(100% + 7.20px),#0000 99%,#000 101%) 50% calc(100% - 12px)/48px 100% repeat-x; -webkit-mask: var(--mask); mask: var(--mask); margin-bottom: -19px; }
Before:
After:
Solved! Go to the solution
This is an accepted solution.
Please replace your code with below code in you base.css file.
.section-header .header-wrapper {
--mask:
radial-gradient(13.99px at 50% calc(100% - 19.20px),#000 99%,#0000 101%) calc(50% - 24px) 0/48px 100%,
radial-gradient(13.99px at 50% calc(100% + 7.20px),#0000 99%,#000 101%) 50% calc(100% - 12px)/48px 100% repeat-x;
-webkit-mask: var(--mask);
mask: var(--mask);
margin-bottom: -19px;
}
.section-header.menu-open header-wrapper {
--mask: unset!important;
}
I hope menu drawer will working.
Let us know the result after adding the given code.
Thankyou 🙂
give us the store URL then we will able to help you.
Thank you! I DM'd you the url & password
we will check it.
This is an accepted solution.
Please replace your code with below code in you base.css file.
.section-header .header-wrapper {
--mask:
radial-gradient(13.99px at 50% calc(100% - 19.20px),#000 99%,#0000 101%) calc(50% - 24px) 0/48px 100%,
radial-gradient(13.99px at 50% calc(100% + 7.20px),#0000 99%,#000 101%) 50% calc(100% - 12px)/48px 100% repeat-x;
-webkit-mask: var(--mask);
mask: var(--mask);
margin-bottom: -19px;
}
.section-header.menu-open header-wrapper {
--mask: unset!important;
}
I hope menu drawer will working.
Let us know the result after adding the given code.
Thankyou 🙂
Thank you so much! This did the trick 😄
Our pleasure 🙂
Hi, I am having a similar issue and adding this code to base.css file doesn't seem to work. When I add this code the header masks my dropdown menu like this -
please help!