Fix label positioning for non-coffee items
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
3wc 2024-07-01 11:36:27 -04:00
parent 19cd99cea7
commit bbca48ef59

View File

@ -78,6 +78,10 @@ if(!is_user_logged_in()){
font-variation-settings: 'wdth' 70, 'wght' 600; font-variation-settings: 'wdth' 70, 'wght' 600;
} }
.label .product-details .origin.non-coffee {
margin-top: 2.3cm;
}
.label .product-details .weight { .label .product-details .weight {
text-transform: lowercase; text-transform: lowercase;
font-weight: bold; font-weight: bold;
@ -186,7 +190,7 @@ if(!is_user_logged_in()){
<?php if ($is_coffee || $is_subscription) { ?> <?php if ($is_coffee || $is_subscription) { ?>
<p class="weight"><?php echo $weight; ?></p> <p class="weight"><?php echo $weight; ?></p>
<?php } ?> <?php } ?>
<p class="origin"><?php echo $product_name; ?></p> <p class="origin<?php echo ($is_coffee || $is_subscription) ? "" : " non-coffee"; ?>"><?php echo $product_name; ?></p>
<?php if ($is_coffee || $is_subscription) { ?> <?php if ($is_coffee || $is_subscription) { ?>
<p class="bean-type"><?php echo $brew_method; ?></p> <p class="bean-type"><?php echo $brew_method; ?></p>
<p class="roast"><?php echo $roast; ?> Roast</p> <p class="roast"><?php echo $roast; ?> Roast</p>