icon-link.pcss.css

Same filename in other branches
  1. 10 core/themes/claro/css/components/icon-link.pcss.css
  2. 11.x core/themes/claro/css/components/icon-link.pcss.css

Icon link component.

File

core/themes/claro/css/components/icon-link.pcss.css

View source
  1. /**
  2. * @file
  3. * Icon link component.
  4. */
  5. @import "../base/variables.pcss.css";
  6. :root {
  7. /* default */
  8. --icon-link-bg-color: var(--color-white);
  9. --icon-link-border-color: var(--color-gray-200);
  10. /* active */
  11. --icon-link--active-bg-color: var(--color-absolutezero);
  12. --icon-link--active-border-color: var(--color-absolutezero);
  13. /* hover */
  14. --icon-link--hover-bg-color: var(--color-bgblue-hover);
  15. --icon-link--hover-border-color: var(--color-gray-200-o-80);
  16. }
  17. .icon-link {
  18. display: flex;
  19. padding: 0;
  20. border: 1px solid var(--icon-link-border-color);
  21. border-radius: 50%;
  22. background-color: var(--icon-link-bg-color);
  23. }
  24. .icon-link:hover {
  25. border-color: var(--icon-link--hover-border-color);
  26. background-color: var(--icon-link--hover-bg-color);
  27. }
  28. .icon-link:focus {
  29. box-shadow: 0 0 0 1.5px var(--color-white), 0 0 0 3.5px var(--color-focus);
  30. }
  31. .icon-link:active,
  32. .open > .icon-link {
  33. border-color: var(--icon-link--active-border-color);
  34. background-color: var(--icon-link--active-bg-color);
  35. }
  36. .icon-link--small:focus {
  37. box-shadow: 0 0 0 1px var(--color-white), 0 0 0 3px var(--color-focus);
  38. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.