/*
 * The box whose size the children are told. It fills the axes it MEASURES and
 * leaves the other to its parent — a sizer that took a height it was not asked
 * about would be deciding the very thing 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%;
  }
}
