chromium/chrome/browser/resources/pdf/elements/viewer_attachment.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
 * #import=chrome://resources/cr_elements/cr_shared_vars.css.js
 * #import=chrome://resources/cr_elements/cr_hidden_style_lit.css.js
 * #include=cr-hidden-style-lit
 * #css_wrapper_metadata_end */

#item {
  align-items: flex-start;
  display: flex;
  padding: 5px 28px;
  position: relative;
  transition: background-color 100ms ease-out;
}

#item:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

#title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:host(:not([save-allowed_])) #title {
  opacity: var(--cr-disabled-opacity);
}

#download {
  --cr-icon-button-fill-color: var(--primary-text-color);
  --cr-icon-button-icon-size: 16px;
  --cr-icon-button-size: 28px;
  margin: 0;
  position: absolute;
  right: 0;
  /* Vertically aligns the expand icon with the first line of #title. */
  top: calc((100% - var(--cr-icon-button-size)) / 2);
}

#download:focus-visible {
  outline: auto -webkit-focus-ring-color;
}