Skip to content

Instantly share code, notes, and snippets.

@jzelenkov
Created July 23, 2014 18:49
Show Gist options
  • Save jzelenkov/029671e5d8cd887ef5f0 to your computer and use it in GitHub Desktop.
Save jzelenkov/029671e5d8cd887ef5f0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$types: text, color, date, datetime, datetime-local, email, month, number, range, search, tel, time, url, week;
$joined-selector: null;
@each $prop in $types {
$elem: "input[type='#{$prop}']";
$joined-selector: $joined-selector, $elem;
}
#{$joined-selector} {
padding: 0;
}
"input[type='text']", "input[type='color']", "input[type='date']", "input[type='datetime']", "input[type='datetime-local']", "input[type='email']", "input[type='month']", "input[type='number']", "input[type='range']", "input[type='search']", "input[type='tel']", "input[type='time']", "input[type='url']", "input[type='week']" {
padding: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment