chromium/ui/webui/resources/cr_components/localized_link/localized_link.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=//resources/cr_elements/cr_shared_vars.css.js
 * #import=//resources/cr_elements/cr_shared_style_lit.css.js
 * #scheme=relative
 * #include=cr-shared-style-lit
 * #css_wrapper_metadata_end */

:host {
  --cr-localized-link-display: inline;
  display: block;
}

:host([link-disabled]) {
  cursor: pointer;
  opacity: var(--cr-disabled-opacity);
  pointer-events: none;
}

a {
  display: var(--cr-localized-link-display);
}

a[href] {
  color: var(--cr-link-color);
}

/**
 * Prevent action-links from being selected to avoid accidental
 * selection when trying to click it.
 */
a[is=action-link] {
  user-select: none;
}

#container {
  display: contents;
}