Sha256: 9302d690023d620fd5cd12b84b5b22f2752b1ae71c18d031e189007f95c02575

Contents?: true

Size: 1.73 KB

Versions: 5

Compression:

Stored size: 1.73 KB

Contents

// Submit buttons
.form-actions {
  display: flex;
  align-items: center;
  position: relative;
}

form[data-remote="true"]:not(.show-flash-success) {
  .effective-form-flash.alert-success { display: none; }
}

form[data-remote="true"].hide-flash-danger {
  .effective-form-flash.alert-danger { display: none; }
}

.form-actions-inline.justify-content-end {
  margin-left: 0.5em;

  > svg {
    position: absolute;
    left: -1.6em;
  }
}

.form-actions-inline.justify-content-start {
  margin-right: 0.5em;

  > svg {
    position: absolute;
    right: -1.6em;
  }
}

.form-actions-bordered {
  border-top: solid 1px #eee;
  margin: 0;
  padding: 0;

  > * { margin-top: 1em; }
}

.form-actions.justify-content-start {
  > a,button { margin-right: 0.5em; } // Not svg
}

.form-actions.justify-content-end {
  > a,button { margin-left: 0.5em; } // Not svg
}

.form-actions.justify-content-center {
  > a,button { margin-left: 0.5em; } // Not svg
}

// Spinner
.form-actions .eb-icon-spinner { display: none; }
.form-actions.form-current-submit .eb-icon-spinner { display: inline; }

// Radio and Checkbox fieldsets
fieldset.form-group > label { display: block; }
div.form-group > label + .btn-group { display: block; }

.effective-radios.is-invalid ~ .invalid-feedback { display: block; }
.effective-radios.is-valid ~ .valid-feedback { display: block; }

.effective-checks.is-invalid .invalid-feedback { display: block; }
.effective-checks.is-valid .valid-feedback { display: block; }

.invalid-feedback { text-transform: capitalize; }
.valid-feedback { display: none; }

// File Control
.form-control-file { border: none !important; }

// Has Many
.form-has-many .has-many-remove {
  margin-top: 0;
  margin-bottom: 1rem;
  .eb-icon { height: 1.5rem; width: 1.5rem; }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_bootstrap-0.11.5 app/assets/stylesheets/effective_bootstrap/forms.scss
effective_bootstrap-0.11.4 app/assets/stylesheets/effective_bootstrap/forms.scss
effective_bootstrap-0.11.3 app/assets/stylesheets/effective_bootstrap/forms.scss
effective_bootstrap-0.11.2 app/assets/stylesheets/effective_bootstrap/forms.scss
effective_bootstrap-0.11.1 app/assets/stylesheets/effective_bootstrap/forms.scss