Created
October 25, 2017 16:46
-
-
Save RussellHite/defccf74dc98ec4cbb0e1f28e0218097 to your computer and use it in GitHub Desktop.
A mixin partial for limiting the width of input fields for Mendix
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
@mixin field-width($number, $side-padd) { | |
@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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment