getdave / Tanlinell

Boilerplate Wordpress theme for rapid development of new WP themes. Based on the great work of the _s ("Underscore") theme.
GNU General Public License v2.0
6 stars 2 forks source link

Add icon pre/append classes #272

Closed getdave closed 10 years ago

getdave commented 10 years ago

Buttons should be able to have content (typically icons) added before and after the text content

// TEXT
// ==========================================================================
.btn__text {
    @include inline-block;
}

// ICON
// ==========================================================================
.btn__icon {
    @include inline-block;
}

// ==========================================================================
// PRE/APPEND
// ==========================================================================

.btn--prepend,
.btn--append {
    position: relative;

}

// PREPEND
// ==========================================================================
.btn--prepend {
    .btn__text {
        margin-left: $baseLineHeight/2;
    }
}

// APPEND
// ==========================================================================
.btn--append {
    .btn__text {
        margin-right: $baseLineHeight/2;
    }
}
nickwoodland commented 10 years ago

Done

https://github.com/getdave/Tanlinell/commit/5bb64a09aea79258e2db380ad8c1ac4a759533da

Closing.