Attempting to style a form by Patriot with CSS, I encountered an issue.
input#card-month:focus ~ label.card-label.label-cardExpiryYear {
font-size: 20px !important; /* This works fine */
}
input#card-month:focus ~ label.card-label.label-cardExpiryMonth {
font-size: 20px !important; /* Not working */
}
Curious about the inability to apply CSS to "child" labels. Any assistance would be greatly appreciated! https://i.sstatic.net/2PqEY.png
HTML:
<form class="paytriot-payment" action="/order-pay/52009/?key=wc_order_lcX8mI6WA4hUj&step=2" method="post" id="Paytriot_payment_form">
<label class="card-label label-cardNumber">Card Number</label>
<input type="text" class="card-input field-cardNumber" name="cardNumber" value="" required="required" id="card-number">
<label class="card-label label-cardExpiryMonth">Card Expiry Month</label>
<input type="text" class="card-input field-cardExpiryMonth" name="cardExpiryMonth" value="" required="required" maxlength="2" id="card-month"><label class="card-label label-cardExpiryYear">Card Expiry Year</label>
<input type="text" class="card-input field-cardExpiryYear" name="cardExpiryYear" value="" required="required" maxlength="4" id="card-year">
<label class="card-label label-cardCVV">CVV</label><input type="text" class="card-input field-cardCVV" name="cardCVV" value="" required="required" id="card-cvv"><div class="payment-buttons"><br>
</form>