@import 'variables';
@import 'mixins';

.field {
  @include field-margin($padding);
  font-size: $font-size-normal;
  padding: 0;

  // Assumes last group is `Behavioural settings`, which should
  // be grouped with the bottom group `Settings and texts`.
  .tree > &.group:last-child {
    margin-bottom: 0;
  }

  .fields > &.group {
    @include field-margin($min-padding);
  }

  &.boolean .h5peditor-label {
    display: inline;
  }

  .h5p-editor-image-buttons {
    float: left;
    clear: both;
  }

  .library {
    border: 0;
  }

  .h5p-dialog-anchor {
    position: relative;
    margin: -16px;
  }
}

.common-fields-library-wrapper {
  @include field-margin($padding);
  border: none;
  margin: 0;
  padding: 0;

  .common-field-legend {
    display: none;
  }
}
