Reputation: 57176
How do I remove the background colour from buttons in Zurb Foundation?
<button class="button button-arrow">Button <i class="icon-arrow-right">→</i></button>
CSS/ LESS:
.button-arrow {
background-color: none;
color: black;
font-size: @text-font-size;
text-decoration: underline;
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
&:hover {
background-color: none;
color: @colour-dark;
}
}
Does not work obviously. Any ideas?
Upvotes: 1
Views: 431
Reputation: 2963
You need to update the .button class:
.button {
background-color: transparent;
}
Make sure your Foundation overrides are in a stylesheet loaded AFTER Foundation styles are loaded so you can use specificity to override them.
The default styles of this component can be customized using these Sass variables in your project's settings file.
$button-background
Upvotes: 0
Reputation: 34
change it to : initial, this is the default value of the background-color property
Upvotes: 1