Skip to content

Instantly share code, notes, and snippets.

@RussellHite
Last active December 13, 2017 15:29
Show Gist options
  • Save RussellHite/b84671b059583f75857c30f45a6b9b65 to your computer and use it in GitHub Desktop.
Save RussellHite/b84671b059583f75857c30f45a6b9b65 to your computer and use it in GitHub Desktop.
A mixin to add units of measute after text fields
@each $current-color in $colors-list {
$i: index($colors-list, $current-color);
.stuff-#{$i} {
color: $current-color;
}
}
//incomplete
@mixin unit-after($unit-list) {
@for $i from 1 through $number{
//.field-width-#{$i}.form-group .form-control, .field-width-#{$i}[class*="mx-name-textBox"] .form-control{
//width: calc( #{$i} * 1em + #{$side-padd});
//}
}
}
// Add this line in the inputs partial
//@include field-width($number: 100, $side-padd:16px)
//$unit-list:('in', 'mm', 'k', 'lbs', 'volts', 'amps');
https://hugogiraudel.com/2013/07/15/understanding-sass-lists/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment