Closed JohnPixle closed 1 year ago
@JohnPixle I don't mind really, it's a purely design decision so I'd leave it to you and how you want to proceed with it. 😄
@HardeepAsrani Thanks! I asked because we need some input/help on how / where these mobile values are defined 🙈
To summarise, for mobile viewport we need the buttons set to 16px padding (all sides).
And this should also apply for the is-style-outline
buttons.
We are sure we want to make the change, but not sure where to add the CSS. For example, I see that the style for outline button is defined in the theme files (screenshot).
Can you point us where to add the mobile values? Thanks in advance!
@JohnPixle It's added here: https://github.com/Codeinwp/neve-fse/blob/f01d8627a32f5b8ddd8d1ef05835d8070448dcde/assets/css/src/common/_generic.scss#L76
You can use SASS to have a @media selector.
You can use SASS to have a @media selector.
@HardeepAsrani Can you explain this in Greek for me please, or provide an example snippet? 😄
@JohnPixle My bad. 😄 Here's an example of how Bogdan is doing this in another file: https://github.com/Codeinwp/neve-fse/blob/f01d8627a32f5b8ddd8d1ef05835d8070448dcde/assets/css/src/welcome-notice.scss#L1-L18
This should also help: https://sass-lang.com/documentation/at-rules/css/
I've made some changes in this PR, @JohnPixle , and used 16px 20px, which should be fine even for smaller Mobile Devices. Let me know if this looks and works as expected.
@HardeepAsrani , I've tried using the DRY principle in CSS, not sure if I managed to achieve perfection :)
Thanks @mghenciu looking good!
I'll move this to testing, since Bogdan and John reviewed the changes.
Currently the buttons in Neve FSE have a generous padding (16px 40px). However, in Mobile this results in some issues with button not staying inline.
I was wondering, if for mobile viewport we can have the buttons set to 16px padding (all sides). Please note that this should also apply for the
is-style-outline
buttonHopefully we will be able to have the buttons inline on mobile.
@HardeepAsrani Let me know your thoughts, and happy to help with clarifications and more info! Looping-in @mghenciu for awareness.