Apologies for what is certainly a newbie question
I have been playing around to add an “add to cart” button to collection and search result pages, and it seems to have worked, however i am having some trouble making the mobile version look good.
i have added this code to product-card.liquid, which seems to be working fine:
And this in theme.scss.liquid:
.btn–atclwb {> @extend .btn;> width: 70%;> margin-left: 15%;> mergin-right: 15%;> max-width: 100%;> text-decoration: none;> text-align: center;> vertical-align: middle;> background-color: $color-btn-secondary;> > &:hover {> background-color: $color-btn-secondary-hover;> color: $color-btn-secondary-text;> }> > &:active,> &:focus {> background-color: $color-btn-secondary-active;> color: $color-btn-secondary-text;> }> }
I know I am supposed to use @media screen and (max-width: 768px) {.btn–atclwb {}} to set the style for mobile, however playing with the margin properties moves the button box but not the text:
I am not sure if I am using the wrong thing when I use margin or margin-left, or if I am making some other mistake
Any help or advice is much appreciated
