Posted - 05/26/2019 : 21:33:55
Hi Will and Andy, Was interested in your idea, had a fiddle and came up with this CSS to generate buttons, including mouse hover effects ...
[font=Courier New][orange]/* Add your review button (light green) */[/orange] span.review.clickreview a.ectlink { display: inline-block; vertical-align: middle; border: 1px solid transparent; border-radius: 4px; -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out; transition: background-color 0.25s ease-out, color 0.25s ease-out; font-family: inherit; -webkit-appearance: none; line-height: 1; text-align: center; cursor: pointer; background-color: #009966; color: #ffffff; font-size: 0.8rem; font-weight: 400; border-radius: 4px; padding: 0.4em 0.75em; margin: 0; }
span.review.clickreview a.ectlink:hover, span.review.clickreview a.ectlink:focus { background-color: #007a52; color: #fffc11; text-decoration: none; }
[orange]/* Show All button and Back to product button (light blue) */[/orange] span.review.showallreview a.ectlink.showallreview, span.review.reviewback a.ectlink { display: inline-block; vertical-align: middle; border: 1px solid transparent; border-radius: 4px; -webkit-transition: background-color 0.25s ease-out, color 0.25s ease-out; transition: background-color 0.25s ease-out, color 0.25s ease-out; font-family: inherit; -webkit-appearance: none; line-height: 1; text-align: center; cursor: pointer; background-color: #1779ba; color: #ffffff; font-size: 0.8rem; font-weight: 400; border-radius: 4px; padding: 0.4em 0.75em; margin: 0; }
span.review.showallreview a.ectlink.showallreview:hover, span.review.showallreview a.ectlink.showallreview:focus, span.review.reviewback a.ectlink:hover, span.review.reviewback a.ectlink:focus { background-color: #126195; color: #fffc11; text-decoration: none; }[/font=Courier New]
The brackets remain around (Show All) and (Back to product) buttons however. Edit #colors to your liking.
Gary [img]https://itzap.com.au/pics/logo/itzap-website-design-works-mini-logo.png[/img]
Edited by - ITZAP on 05/26/2019 21:45:13
|