Skip to content

Instantly share code, notes, and snippets.

View annedougherty's full-sized avatar

Anne Dougherty annedougherty

View GitHub Profile
@annedougherty
annedougherty / CSS: Drupal Reset: Checkboxes
Created February 1, 2016 21:31
Make Chrome display your form checkboxes in Drupal 7
// Explicitly make Chrome display checkboxes
input[type=checkbox] {
-webkit-appearance:checkbox;
}
@annedougherty
annedougherty / SASS:mixin:link-hover-active-focus.scss
Last active April 5, 2016 13:39
SASS:mixin:link-hover-active-focus
@annedougherty
annedougherty / SASS-mixin-vertical-align.scss
Created January 29, 2016 15:12
SASS:mixin:vertical-align
// Vertical alignement
@mixin vertical-align($position: relative) {
position: $position;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@annedougherty
annedougherty / SASS-mixin-placeholder.scss
Last active January 29, 2016 15:11
SASS:mixin:placeholder
// Style form field placeholder content
@mixin placeholder {
&::-webkit-input-placeholder {@content}
&:-moz-placeholder {@content}
&::-moz-placeholder {@content}
&:-ms-input-placeholder {@content}
}