icon-link.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/icon-link.pcss.css
  2. 10 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. :root {
  6. /* default */
  7. --icon-link-bg-color: var(--color-white);
  8. --icon-link-border-color: var(--color-gray-200);
  9. /* active */
  10. --icon-link--active-bg-color: var(--color-absolutezero);
  11. --icon-link--active-border-color: var(--color-absolutezero);
  12. /* hover */
  13. --icon-link--hover-bg-color: var(--color-bgblue-hover);
  14. --icon-link--hover-border-color: var(--color-gray-200-o-80);
  15. }
  16. .icon-link {
  17. display: flex;
  18. padding: 0;
  19. border: 1px solid var(--icon-link-border-color);
  20. border-radius: 50%;
  21. background-color: var(--icon-link-bg-color);
  22. &:hover {
  23. border-color: var(--icon-link--hover-border-color);
  24. background-color: var(--icon-link--hover-bg-color);
  25. }
  26. &:focus {
  27. box-shadow:
  28. 0 0 0 1.5px var(--color-white),
  29. 0 0 0 3.5px var(--color-focus);
  30. }
  31. &:active,
  32. .open >
  33. }
  34. .icon-link--small {
  35. &:focus {
  36. box-shadow:
  37. 0 0 0 1px var(--color-white),
  38. 0 0 0 3px var(--color-focus);
  39. }
  40. }

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