@use 'sass:list'; $input-border: 1px solid $input-border-color; .gf-form { display: flex; flex-direction: row; align-items: flex-start; text-align: left; position: relative; margin-bottom: $space-xs; &--offset-1 { margin-left: $spacer; } &--grow { flex-grow: 1; } &--flex-end { justify-content: flex-end; } &--align-center { align-content: center; } &--alt { flex-direction: column; align-items: flex-start; .gf-form-label { padding: 4px 0; } } } .gf-form--has-input-icon { position: relative; margin-right: $space-xs; .gf-form-input-icon { position: absolute; top: 8px; font-size: $font-size-lg; left: 10px; color: $input-color-placeholder; } > input { padding-left: 35px; &:focus + .gf-form-input-icon { color: $text-muted; } } .Select--multi .Select-multi-value-wrapper, .Select-placeholder { padding-left: 30px; } } .gf-form-disabled { color: $text-color-weak; .gf-form-select-wrapper::after { color: $text-color-weak; } a, .gf-form-input { color: $text-color-weak; } } .gf-form-group { margin-bottom: $spacer * 2.5; } .gf-form-inline { display: flex; flex-direction: row; flex-wrap: wrap; align-content: flex-start; &--nowrap { flex-wrap: nowrap; } &--xs-view-flex-column { flex-direction: row; flex-wrap: nowrap; @include media-breakpoint-down(xs) { flex-direction: column; } } .select-container { margin-right: $space-xs; } .gf-form-spacing { margin-right: $space-xs; } } .gf-form-button-row { padding-top: $spacer * 1.5; a, button { margin-right: $spacer; } } .gf-form-label { display: flex; align-items: center; padding: $input-padding; flex-shrink: 0; font-weight: $font-weight-semi-bold; font-size: $font-size-sm; background-color: $input-label-bg; height: $input-height; line-height: $input-height; margin-right: $space-xs; border-radius: $input-border-radius; justify-content: space-between; border: none; &--grow { flex-grow: 1; } &--error { color: $critical; } &--transparent { background-color: transparent; border: 0; text-align: right; padding-left: 0px; } &--variable { color: $variable; background: $panel-bg; border: $panel-border; } &--dashlink { background: $panel-bg; border: $panel-border; } &--justify-left { justify-content: left; } &--btn { border: none; border-radius: $border-radius; &:hover { background: $list-item-hover-bg; color: $link-color; } } &:disabled { color: $text-color-weak; } } .gf-form-label + .gf-form-label { margin-right: $space-xs; } .gf-form-pre { display: block !important; flex-grow: 1; margin: 0; margin-right: $space-xs; border: $border-width solid transparent; border-left: none; @include border-radius($input-border-radius); } .gf-form-textarea { max-width: 650px; } .gf-form-input { display: block; width: 100%; height: $input-height; padding: $input-padding; font-size: $font-size-md; line-height: $input-line-height; color: $input-color; background-color: $input-bg; background-image: none; background-clip: padding-box; border: $input-border; border-radius: $input-border-radius; margin-right: $space-xs; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; // text areas should be scrollable @at-root textarea#{&} { overflow: auto; white-space: pre-wrap; padding: 6px $space-sm; min-height: $input-height; height: auto; } // Unstyle the caret on `