chromium/ui/webui/resources/cr_elements/cr_collapse/cr_collapse.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 {
  --collapse-duration: var(--iron-collapse-transition-duration, 300ms);
  display: block;
  transition: max-height var(--collapse-duration) ease-out;
  overflow: visible;
}

:host([no-animation]) {
  transition: none;
}

:host(.collapse-closed) {
  display: none;
}

:host(:not(.collapse-opened)) {
  overflow: hidden;
}