@import "../../../base/less/mixins";

@button_color: #41a9d5;
@border_color: darken(@button_color, 5%);
@text_color: #FFFFFF;

@font_size: 1em;
@rounding: 0.25em;
@padding: 1em;
@has_text: true;

.ow-button-base {
	.clearfix();

	a {
		font-size: @font_size;
		padding: @padding @padding*2;
		background: @button_color;

		color: @text_color !important;
		border: 1px solid @button_color;
		border-width: 1px 0;

		.rounded(@rounding);

		text-shadow: 0 1px 0 rgba(0,0,0,0.05);

        .sow-icon-image,
        [class^="sow-icon-"] {
            .icon-margins() when (@has_text = true) {
                margin: -0.1em 0.75em -0.2em -0.75em;
            }
            .icon-margins() when not (@has_text = true) {
                margin: 0;
            }
            .icon-margins();
        }

		&:visited,
		&:active,
		&:hover{
			color: @text_color !important;
		}

		&.ow-button-hover:hover {
			background: lighten(@button_color, 4%);
			border-bottom-color: lighten(@border_color, 4%);
			color: lighten(@text_color, 4%);
		}
	}
}