Skip to content

Instantly share code, notes, and snippets.

View tomasstankovic's full-sized avatar

Tomáš Stankovič tomasstankovic

View GitHub Profile
@tomasstankovic
tomasstankovic / bem.html
Last active July 31, 2016 15:51
My BEM HTML example.
<div class="widget">
<a class="widget__social" href="#">facebook</a>
<h3 class="widget__title">Slinto Komik</h3>
<div class="widget__stats">
<a class="widget__stats-item" href="#">31 Like</a>
<a class="widget__stats-item active" href="#">140 Comment</a>
</div>
</div>
@tomasstankovic
tomasstankovic / gruntfile.js
Last active July 21, 2016 13:16
Less compilation settings
production: {
options: {
plugins: [
require(‘less-plugin-glob’),
new (require(‘less-plugin-autoprefix’))({
browsers: [‘> 1%’, ‘last 2 versions’, ‘ie 9’]
}),
new (require(‘less-plugin-clean-css’))({
keepSpecialComments: false,
processImport: true,
@tomasstankovic
tomasstankovic / helpers.less
Last active July 29, 2016 20:01
CSS text shortening. /LESS mixin/
.textLimiter(){
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}