Custom CSS for Buttons not updating on Mobile responsive?
-
First off, I am pretty bad at CSS coding so I apologize if I’m misunderstanding things here!
Age Gate 2.x worked great for us, but the yes/no buttons in v3 don’t look good on our site with default styling.
In particular the Yes/No buttons are cramped up right underneath the text and the default button colour doesn’t match our theme/site.
Stealing some code from other posts here I have added this to Customizing > Additional CSS and it seems to have fixed the issue when I view our site in Chrome for Windows, and Chrome for iPadOS, but when I view on my an iPhone in Safari or Chrome, none of the customizations have propagated and the custom hover color is not honored nor the increased margin to give some space between the buttons and text?
button.age-gate-submit-yes, button.age-gate-submit-no { border: 1px solid #fff; background: #000; padding: 5px 5px; font-size: 15px; margin: 15px 15px 0; font-family: 'Open Sans'; -webkit-appearance: none; border-radius: 1; min-width: 55px; } :root { --ag-button-color-hover: #b38808; --ag-button-color-text-hover: #fff; }
sample screen of the button issue on mobile device (iphone 13, iOS 16.0)
The page I need help with: [log in to see the link]
- The topic ‘Custom CSS for Buttons not updating on Mobile responsive?’ is closed to new replies.