Last active
December 13, 2017 15:29
-
-
Save RussellHite/b84671b059583f75857c30f45a6b9b65 to your computer and use it in GitHub Desktop.
A mixin to add units of measute after text fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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