How to change the color of the checkmark in a checkbox

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
durangod
Registered User
Posts: 677
Joined: Tue Nov 03, 2009 1:26 pm

How to change the color of the checkmark in a checkbox

Post by durangod » Sat Sep 15, 2018 1:26 am

Hi i have a light grey checkmark in my checkbox's and i cant see it with my old eyes. How do i change the color to black.

here is what i have tried in the forms.css file


input[type="checkbox"]:checked {
color: #000000;
}


and


input[type="checkbox"]:checked {
background-color: #000000;
}


and



input[type="checkbox"] {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
height: .8rem;
width: .8rem;
background-color: #fff;
}
input[type="checkbox"]:checked {
background-color: #000000;
}


and i cleared my cache but it wont change... how is this done please :) thanks

User avatar
Lumpy Burgertushie
Registered User
Posts: 65310
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: How to change the color of the checkmark in a checkbox

Post by Lumpy Burgertushie » Sat Sep 15, 2018 2:45 am

viewtopic.php?p=14210311#p14210311

maybe that will help.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Hanakin
Infrastructure Team Member
Infrastructure Team Member
Posts: 747
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: How to change the color of the checkmark in a checkbox

Post by Hanakin » Mon Oct 08, 2018 2:14 am

this is not possible simply as the checkbox is a browser restricted element https://stackoverflow.com/questions/243 ... tever-i-do.

The only way to do it is to replace the default checkbox with a custom one as I have done here https://github.com/hanakin/base-l/blob/ ... .scss#L185 see it in action here https://codepen.io/hanakin/pen/XYpawP

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests