/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '../theme';
@use './mixins';

@include mixins.core-styles;

:host {
  display: block;
  contain: layout;
}

:host([hidden]) {
  display: none;
}

:host([no-border]) {
  .forge-toolbar {
    border: none;
  }
}

:host([no-padding]) {
  .forge-toolbar {
    @include theme.css-custom-property(padding-inline, --forge-toolbar-padding, 0);
  }
}

:host([auto-height]) {
  .forge-toolbar {
    @include theme.css-custom-property(height, --forge-toolbar-height, auto);
  }
}

/// Remove margin from all commonly used native elements that have default margin
.forge-toolbar {
  ::slotted(h1) { margin: 0; }
  ::slotted(h2) { margin: 0; }
  ::slotted(h3) { margin: 0; }
  ::slotted(h4) { margin: 0; }
  ::slotted(h5) { margin: 0; }
  ::slotted(h6) { margin: 0; }
  ::slotted(p)  { margin: 0; }
}
