Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Button Text Link colors
New Landing › How can we help? › Themeforest Theme Support › Dante › Button Text Link colors
- This topic has 13 replies, 3 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
April 15, 2014 at 8:29 pm #67449
I want the button text to be white and then dark on hover. I’ve added in some css to do so but the color keeps going dark grey no matter what unless I add in code for the span tag.
Here is what I have
.sf-button large transparent-dark stroke-to-fill btnwhite {
color: #fff;
}
a.sf-button.large.stroke-to-fill {
color: #fff;
}
a.sf-button:hover {
text-decoration: none!important;
color: #666;
}
a.sf-button.transparent-dark span {}
a.sf-button.transparent-dark span:hover {}
a.sf-button.transparent-dark {
color: #FFF;
background-color: #12225b;
}
a.sf-button.transparent-dark:hover {
color: #666;
background-color: #FFF;
border: 1px solid #222;
border: 1px solid rgba(34,34,34,.2);
}
a.sf-button:hover, #footer a.sf-button:hover {
color: #666;
background-color: #FFF;
border: 1px solid #222;
border: 1px solid rgba(34,34,34,.2);
}a.sf-button.transparent-dark {
color: #fff
}But the button will not go white it starts out as grey no matter what because of this line that is auto generated from the index at line 80:
a.sf-button.transparent-dark {
color: #444444!important;
}How can I stop this from happening?
Here is a fiddle I setup and it works perfectly fine but inside of your theme it is not working because the auto generated css on the homepage like I said keeps taking it over:
April 16, 2014 at 8:09 am #67540Hi
There’s no need for custom css, use the stroke to fill button type, this will be a white button and will go dark on hover. If there’s ay minor changes you want to make, let me know.
– Kyle
April 16, 2014 at 5:06 pm #67733I’m setting it up to go from dark to white on hover. not white to dark. That was my whole reason for getting support. Due to the span tag it is not doing a full color change on the text on hover.
April 16, 2014 at 5:13 pm #67737This reply has been marked as private.April 16, 2014 at 5:14 pm #67739You will see when you goto that link that the rollover only completely works if i’m also hovering directly over the span text tag as well as the button.
April 16, 2014 at 10:20 pm #67814the index is also causing me a problem with the login button to the right. when it goes to hover its going black when its suppose to go white. the only thing i can trace it back to is css code showing up on the index page.
April 17, 2014 at 7:50 am #67891Hi
Sorry, but you stated:
I want the button text to be white and then dark on hover
Remove your css for the span, then add this:
.sf-button.transparent-dark.stroke-to-fill span { color: #fff; } .sf-button.transparent-dark.stroke-to-fill:hover span { color: #999; }
for the submit button you need this:
#submit:hover { background-color: #FFFFFF!important; border: 1px solid rgba(34, 34, 34, 0.2); color: #999; }
– Kyle
April 17, 2014 at 5:34 pm #68157Hi Kyle,
Sorry for the confusion. That worked!! However on my forms for those submit buttons I still am having the issue with the hover state going to black because of the theme settings I think. But I’m not sure why. Here is the html code from that submit button:
<input type="submit" id="gform_submit_button_2" class="button gform_button" value="Submit" tabindex="21" onclick="if(window["gf_submitting_2"]){return false;} window["gf_submitting_2"]=true; ">
Any thoughts as to why that submit button would still be going to black on hover?
Thank you,
Robert
April 17, 2014 at 5:41 pm #68162Also could you tell me why your span code worked and mine did not? was it because I did not specify “stroke-to-fill” in the css?
April 18, 2014 at 8:37 am #68262Hi,
Yes , You did not specify “stroke-to-fill” in the css rule .
Thanks 🙂
With Best Regards
Swift IdeasApril 18, 2014 at 7:15 pm #68432What about the reasoning behind why the submit button is still going to a dark color on hover?
April 20, 2014 at 3:18 am #68561Hi,
Please try to use this css for submit button#gform_submit_button_2:hover { background-color: #FFFFFF!important; border: 1px solid rgba(34, 34, 34, 0.2); color: #999; }
Hopefully it should work 100% .
April 21, 2014 at 7:36 pm #68938That worked. Thank you.
April 22, 2014 at 12:31 am #68980Hi,
You most welcome . I’m glad that issue resolved .
Thanks 🙂
With Best Regards
Swift Ideas -
Posted in: Dante
You must be logged in and have valid license to reply to this topic.