chromium/ui/webui/resources/cr_elements/cr_grid/cr_grid.css

/* Copyright 2024 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #scheme=relative
 * #css_wrapper_metadata_end */

:host {
  --cr-grid-gap: 0px;
  --cr-column-width: auto;
  --cr-grid-width: fit-content;
}

#grid {
  display: grid;
  grid-gap: var(--cr-grid-gap);
  grid-template-columns: repeat(var(--cr-grid-columns), var(--cr-column-width));
  width: var(--cr-grid-width);
}

::slotted(*) {
  align-self: center;
  justify-self: center;
}