/*
 * The box whose size the children are told. It fills only the axes it measures; taking another
 * would decide what it reports.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-auto-sizer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
  }

  .lotics-auto-sizer[data-fit="both"] {
    flex: 1;
    width: 100%;
    height: 100%;
  }

  .lotics-auto-sizer[data-fit="width"] {
    width: 100%;
  }

  .lotics-auto-sizer[data-fit="height"] {
    flex: 1;
    height: 100%;
  }
}
