/* ============================================================================== */
/*  S t a r k   C o l l a p s i b l e                                             */
/* ============================================================================== */
/* stark-ui: packages/stark-ui/src/modules/collapsible/components/_collapsible.component.scss */
@use "sass:map";
@use "@angular/material" as mat;

@mixin stark-collapsible($material-theme-config, $stark-theme-config) {
  $typography-config: map.get($material-theme-config, typography);

  .stark-collapsible {
    .mat-expansion-panel {
      transition: box-shadow 150ms linear;

      .stark-collapsible-icon {
        transition: transform 150ms linear;
        margin-right: 6px;
      }

      &.mat-expanded .stark-collapsible-icon.spin {
        transform: rotate(90deg);
      }

      .mat-expansion-panel-header {
        padding-right: 0;
      }

      .mat-expansion-panel-body {
        padding-top: 16px;
      }

      .mat-expansion-panel-header-title {
        align-items: center;

        .stark-collapsible-title {
          font-size: mat.font-size($typography-config, subheading-1);
          font-weight: mat.font-weight($typography-config, subheading-1);
          line-height: mat.line-height($typography-config, subheading-1);
        }
      }
    }
  }
}

/* END stark-ui: packages/stark-ui/src/modules/collapsible/components/_collapsible.component.scss */
