Page 1 of 1

change text colour on button

Posted: Fri Aug 30, 2013 11:37 am
by Michael4771079

Hi,
I have a button with custom css, it is on a swatch in my theme,

the colour of the text on the swatch is black and I need white,

I cannot use other swatchs with white text as they are being used for other components

How can I change this black text to white


change text colour on button

Posted: Fri Aug 30, 2013 11:55 am
by Maryna Brodina

Add class for specific button and create CSS rule http://docs.appery.io/documentation/w...


change text colour on button

Posted: Fri Aug 30, 2013 12:07 pm
by Michael4771079

Hi Marina,
I have added css and class,

screenshots

Image

Image

the problem is the css for green colour is set to swatch d, and the text colour of swatch d is black,

I cannot use other swatches as they are being use by other components

thx


change text colour on button

Posted: Fri Aug 30, 2013 1:19 pm
by Maryna Brodina

You've set class for button, now you need to add rule for this class, Create New - CSS add code:
code.green{
color: #00AA00;
}
.green:hover{
color: #88FF88;
}/code


change text colour on button

Posted: Fri Aug 30, 2013 1:55 pm
by Michael4771079

Hi Marina,
I created css, changed colour to white, the text is white but not as sharp as the text on the black button, is there a way to correct this?
Here is the code and screenshot
.green{
color:#ffffff;
}
.green:hover{
color: #ffffff;
}
Image


change text colour on button

Posted: Fri Aug 30, 2013 2:49 pm
by Serhii Kulibaba

Hi Michael!
Change next CSS for green button:
pre.green{
color:#ffffff;
text-shadow: none;
}
.green:hover{
color: #ffffff;
text-shadow: none;
}
/pre


change text colour on button

Posted: Fri Aug 30, 2013 2:52 pm
by Michael4771079

Thank you Sergiy,

that's perfect and much appreciated!