contextual-links.css

Same filename and directory in other branches
  1. 11.x core/themes/default_admin/css/components/contextual-links.css

Contextual links styles.

File

core/themes/default_admin/css/components/contextual-links.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Contextual links styles.
  10. */
  11. .contextual {
  12. z-index: 100;
  13. box-sizing: border-box;
  14. *,
  15. *::before,
  16. *::after {
  17. box-sizing: border-box;
  18. }
  19. .trigger {
  20. overflow: clip;
  21. text-indent: -62.4375rem;
  22. border: 1px solid var(--gin-border-color-layer2);
  23. border-radius: 50%;
  24. background: var(--gin-bg-layer3);
  25. box-shadow: 0 2px 4px rgb(0, 0, 0, 0.15);
  26. &,
  27. &.visually-hidden.focusable {
  28. width: 2rem;
  29. height: 2rem;
  30. }
  31. &::before {
  32. position: absolute;
  33. display: block;
  34. width: 0.75rem;
  35. height: 0.75rem;
  36. margin: auto;
  37. content: "";
  38. background: var(--gin-color-primary);
  39. inset: 0;
  40. mask-image: url("data:image/svg+xml,%3csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3e %3cg fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e %3cpath d='M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z'%3e%3c/path%3e %3c/g%3e%3c/svg%3e");
  41. mask-size: var(--space-s);
  42. mask-position: 100% 100%;
  43. @media (forced-colors: active) {
  44. background: buttonText;
  45. }
  46. }
  47. &:hover {
  48. box-shadow:
  49. 0 0 0 1px var(--gin-color-focus-border),
  50. 0 0 0 4px var(--gin-color-focus);
  51. }
  52. }
  53. &.open .trigger {
  54. border-block-end: 0 none;
  55. border-radius: 50%;
  56. }
  57. }
  58. .contextual-region .contextual .contextual-links {
  59. min-width: 7.5rem;
  60. margin: 0;
  61. padding: 0.5em;
  62. border: 1px solid transparent;
  63. border-radius: var(--gin-border-l);
  64. background: var(--gin-bg-layer3);
  65. box-shadow: var(--gin-shadow-l2);
  66. inset-block-start: var(--space-xxs);
  67. li {
  68. background: transparent;
  69. a {
  70. margin: 0;
  71. padding: var(--space-xs) var(--space-m);
  72. white-space: nowrap;
  73. color: var(--gin-color-primary);
  74. border-radius: var(--gin-border-s);
  75. background: transparent;
  76. font-family: var(--gin-font);
  77. line-height: 1;
  78. &:hover,
  79. &:active {
  80. color: var(--gin-color-button-text);
  81. background: var(--gin-color-primary);
  82. @media (forced-colors: active) {
  83. -webkit-text-decoration: underline;
  84. text-decoration: underline;
  85. }
  86. }
  87. .no-touchevents
  88. }
  89. }
  90. }
  91. .ajax-progress-throbber {
  92. border-radius: 50%;
  93. background: var(--gin-color-primary);
  94. inset-block-start: 0.125rem;
  95. &::before {
  96. position: absolute;
  97. display: block;
  98. width: 1.125rem;
  99. height: 1.125rem;
  100. content: "";
  101. animation: gin-throbber 0.75s linear infinite;
  102. border: 2px solid var(--gin-color-primary);
  103. border-inline-end: 2px dotted transparent;
  104. border-radius: 50%;
  105. inset-block-start: var(--space-xs);
  106. inset-inline-start: var(--space-xs);
  107. }
  108. }
  109. }
  110. @keyframes gin-throbber {
  111. 0% {
  112. transform: rotateZ(0);
  113. }
  114. 100% {
  115. transform: rotateZ(360deg);
  116. }
  117. }

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