Hi all,
I sell books. I’m enrolled in a program through Amazon that does not allow me to sell eBooks through my Shopify store. So I’m adding a button on my paperback pages that directs people to Amazon if they want eBooks. The button I added is the gold one below the images.
This is working fine on all views except for mobile portrait view.
Can anyone tell me how I can get the text to wrap on the yellow button on mobile view?
Here is a link to the product page: https://www.pacificlightsbookstore.com/products/wyldhaven-series-books-1-3
Here is the code I put on the product.template.liquid
{% for tag in product.tags %}
{% assign productTag = tag | downcase %}
{% if productTag contains 'https://' %}
<form action = "{{tag}}" target = "_blank">
<input type ="submit" class = "buttonamz" value = "eBooks Available on Amazon">
</form>
{% endif %}
{% endfor %}
and here is the code that is on the base CSS theme.css
/* Button - Amazon */
.buttonamz{
width: 100%;
display: inline-flex;
justify-content: center;
align-items: center;
border: 0;
padding: 7 3rem;
margin-top: 3rem;
cursor: pointer;
font: inherit;
font-size: 1.5rem;
text-decoration: none;
color: rgb(var(--color-button-text));
transition: box-shadow var(--duration-short) ease;
-webkit-appearance: none;
appearance: none;
color: #FFA41C;
}
.buttonamz {
background-color: #FFA41C;
color: black;
border: 0px solid #FF8F00;
}
.buttonamz:hover {
background-color: #FF8F00;
}
.buttonamz
{
--shadow-horizontal-offset: var(--buttons-shadow-horizontal-offset);
--shadow-vertical-offset: var(--buttons-shadow-vertical-offset);
--shadow-blur-radius: var(--buttons-shadow-blur-radius);
--shadow-opacity: var(--buttons-shadow-opacity);
--border-offset: var(--buttons-border-offset); /* reduce radius edge artifacts */
--border-opacity: calc(1 - var(--buttons-border-opacity));
border-radius: var(--buttons-radius-outset);
position: relative;
}
.buttonamz
{
min-width: calc(12rem + var(--buttons-border-width) * 2);
min-height: calc(4.5rem + var(--buttons-border-width) * 2);
}
@media only screen and (max-width: 767px){
.buttonamz{
min-height: auto;
padding: 1.5rem 3rem;
font-size: 1.5rem;
line-height: 1.3;
}
}
I can’t figure out what to add to get the text to wrap on the mobile view.
Thanks for any help.
