// stylelint-disable selector-no-qualifying-type // // Textual form controls // // Container widths // // Set the container width, and override it for fixed navbars in media queries. @if $enable-grid-classes { .container { @include make-container(); @include make-container-max-widths(); } } // Fluid container // // Utilizes the mixin meant for fixed width containers, but with 100% width for // fluid, full width layouts. @if $enable-grid-classes { .container-fluid { @include make-container(); } } // Row // // Rows contain and clear the floats of your columns. @if $enable-grid-classes { .row { @include make-row(); } // Remove the negative margin from default .row, then the horizontal padding // from all immediate children columns (to prevent runaway style inheritance). .no-gutters { margin-right: 0; margin-left: 0; > .col, > [class*="col-"] { padding-right: 0; padding-left: 0; } } } // Columns // // Common styles for small and large grid columns @if $enable-grid-classes { @include make-grid-columns(); } .form-control { display: block; width: 100%; height: $input-height; padding: $input-padding-y $input-padding-x; font-family: $input-font-family; @include font-size($input-font-size); font-weight: $input-font-weight; line-height: $input-line-height; color: $input-color; background-color: $input-bg; background-clip: padding-box; border: $input-border-width solid $input-border-color; // Note: This has no effect on `s in CSS. @include border-radius($input-border-radius, 0); @include box-shadow($input-box-shadow); @include transition($input-transition); // Unstyle the caret on ` receives focus // in IE and (under certain conditions) Edge, as it looks bad and cannot be made to // match the appearance of the native widget. // See https://github.com/twbs/bootstrap/issues/19398. color: $input-color; background-color: $input-bg; } } // Make file inputs better match text inputs by forcing them to new lines. .form-control-file, .form-control-range { display: block; width: 100%; } // // Labels // // For use with horizontal and inline forms, when you need the label (or legend) // text to align with the form controls. .col-form-label { padding-top: calc(#{$input-padding-y} + #{$input-border-width}); padding-bottom: calc(#{$input-padding-y} + #{$input-border-width}); margin-bottom: 0; // Override the `