@import "../settings";
@import "../tools/mixins/layout";

// View assemblies
// Define how components stack in views

* + {
  .c-form-group,
  .c-form-fieldset,
  .c-error-summary,
  .results-summary {
    margin-top: $default-spacing-unit * 2;
  }

  .c-form-group--compact {
    margin-top: $default-spacing-unit;
  }

  .c-multiple-choice {
    margin-top: $default-spacing-unit / 2;
  }

  .c-multiple-choice--smaller {
    margin-top: $baseline-grid-unit;
  }

  .metadata-list {
    margin-top: $default-spacing-unit / 4;
  }

  .c-form-fieldset--subfield,
  .c-form-group--subfield {
    margin-top: $default-spacing-unit;
    margin-bottom: $default-spacing-unit;
  }

  .c-pagination {
    margin-top: $default-spacing-unit * 2;
    margin-bottom: $default-spacing-unit * 2;
  }

  .c-meta-list {
    margin-top: $default-spacing-unit;
  }
}

[type="hidden"] + .c-form-group {
  margin-top: 0;
}

.c-results__sort + .c-entity-list {
  border-top: 1px solid $grey-2;
}

@import "../settings";
@import "../tools/mixins/layout";

// View assemblies
// Define how components stack in views

* + {
  form,
  .c-form-group,
  .c-form-fieldset,
  .c-error-summary,
  .results-summary {
    margin-top: $default-spacing-unit * 2;
  }

  .c-form-group--compact {
    margin-top: $default-spacing-unit;
  }

  .c-multiple-choice {
    margin-top: $default-spacing-unit / 2;
  }

  .c-multiple-choice--smaller {
    margin-top: $baseline-grid-unit;
  }

  .metadata-list {
    margin-top: $default-spacing-unit / 4;
  }

  .c-form-fieldset--subfield,
  .c-form-group--subfield {
    margin-top: $default-spacing-unit;
    margin-bottom: $default-spacing-unit;
  }

  .c-pagination {
    margin-top: $default-spacing-unit * 2;
    margin-bottom: $default-spacing-unit * 2;
  }

  .c-meta-list {
    margin-top: $default-spacing-unit;
  }
}

[type="hidden"] + .c-form-group {
  margin-top: 0;
}

.c-results__sort + .c-entity-list {
  border-top: 1px solid $grey-2;
}

Add form element to assemblies
Add form element to assemblies