Skip to content

Instantly share code, notes, and snippets.

View tdwesten's full-sized avatar

Thomas van der Westen tdwesten

View GitHub Profile
// mixin for easy focus color removement
@mixin remove-focus-color {
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}
@tdwesten
tdwesten / _ellipsis-mixin.scss
Last active August 29, 2015 14:08 — forked from pixelchar/ellipsis-mixin.scss
Add "..." to overflowd'ing content via SCSS mixin
@mixin ellipsis() {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
@tdwesten
tdwesten / _clearfix.scss
Created November 6, 2014 07:43 — forked from drocarmo/clearfix.scss
Clearfix elements via SCSS mixin
@mixin clearfix {
&:after {
content:"";
display:table;
clear:both;
}
}
@tdwesten
tdwesten / _selection.scss
Last active August 29, 2015 14:08 — forked from devatrox/selection.scss
Target selection styling via SCSS mixin
@mixin selection {
::-moz-selection {
@content;
}
::selection {
@content;
}
}
@tdwesten
tdwesten / _breakpoints.scss
Last active August 29, 2015 14:08 — forked from jlawhorn/_breakpoints.scss
Add breakpoints via mixin
@mixin breakpoint($query) {
@media #{$query} { @content; }
}