Sha256: c5d79d492422e5a6c4aa9c35839cf8be2439adb6d8d2e16702a997b8972fb2db
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
// Form control feedback states // // Apply contextual and semantic states to individual form controls. .has-feedback { // Enable absolute positioning position: relative; // Ensure icons don't overlap text .form-control { padding-right: ($input-height-base * 1.25); } } // Feedback icon (requires .glyphicon classes) .form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; // Ensure icon is above input groups display: block; width: $input-height-base; height: $input-height-base; line-height: $input-height-base; text-align: center; pointer-events: none; } .input-lg + .form-control-feedback, .input-group-lg + .form-control-feedback, .form-group-lg .form-control + .form-control-feedback { width: $input-height-large; height: $input-height-large; line-height: $input-height-large; } .input-sm + .form-control-feedback, .input-group-sm + .form-control-feedback, .form-group-sm .form-control + .form-control-feedback { width: $input-height-small; height: $input-height-small; line-height: $input-height-small; } // Reposition feedback icon if input has visible label above .has-feedback label { & ~ .form-control-feedback { top: ($line-height-computed + 5); // Height of the `label` and its margin } &.sr-only ~ .form-control-feedback { top: 0; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro_sg-3.0.2 | sass-mixins/nitro-ui/forms/_color-feedback.scss |
nitro_sg-3.0.1 | sass-mixins/nitro-ui/forms/_color-feedback.scss |