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(--admin-color-border-input);
  23. border-radius: 50%;
  24. background: var(--admin-color-bg-raised);
  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(--admin-color-primary);
  39. inset: 0;
  40. mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='currentColor' d='M14.6 3 13 1.4a1 1 0 0 0-1.4 0l-1.3 1.4 3 3 1.2-1.3a1 1 0 0 0 0-1.4M5.2 13.6l-3-3 7-7 3 3zm-4.3 1c0 .3 0 .5.3.4l2-.7-1.6-1.6z'/%3e%3c/svg%3e");
  41. mask-size: var(--admin-space-s);
  42. mask-position: 100% 100%;
  43. }
  44. &:hover {
  45. box-shadow:
  46. 0 0 0 1px var(--admin-color-focus-border),
  47. 0 0 0 4px var(--admin-color-focus);
  48. }
  49. @media (forced-colors: active) {
  50. border-color: buttonText;
  51. background: buttonFace;
  52. box-shadow: none;
  53. &::before {
  54. background: buttonText;
  55. }
  56. &:hover,
  57. &:focus,
  58. &:focus-visible {
  59. border-color: highlight;
  60. outline: 2px solid highlight;
  61. outline-offset: 2px;
  62. background: highlight;
  63. &::before {
  64. background: highlightText;
  65. }
  66. }
  67. }
  68. }
  69. &.open .trigger {
  70. border-block-end: 0 none;
  71. border-radius: 50%;
  72. }
  73. }
  74. .contextual-region .contextual .contextual-links {
  75. min-width: 7.5rem;
  76. margin: 0;
  77. padding: 0.5em;
  78. border: 1px solid transparent;
  79. border-radius: var(--admin-radius-l);
  80. background: var(--admin-color-bg-raised);
  81. box-shadow: var(--admin-shadow-2);
  82. inset-block-start: var(--admin-space-2xs);
  83. li {
  84. background: transparent;
  85. a {
  86. margin: 0;
  87. padding: var(--admin-space-xs) var(--admin-space-m);
  88. white-space: nowrap;
  89. color: var(--admin-color-primary);
  90. border-radius: var(--admin-radius-s);
  91. background: transparent;
  92. font-family: var(--admin-font-family);
  93. line-height: 1;
  94. &:hover,
  95. &:active {
  96. color: var(--admin-color-text-on-primary);
  97. background: var(--admin-color-primary);
  98. @media (forced-colors: active) {
  99. -webkit-text-decoration: underline;
  100. text-decoration: underline;
  101. }
  102. }
  103. .no-touchevents
  104. }
  105. }
  106. }
  107. .ajax-progress-throbber {
  108. border-radius: 50%;
  109. background: var(--admin-color-primary);
  110. inset-block-start: 0.125rem;
  111. &::before {
  112. position: absolute;
  113. display: block;
  114. width: 1.125rem;
  115. height: 1.125rem;
  116. content: "";
  117. animation: throbber 0.75s linear infinite;
  118. border: 2px solid var(--admin-color-primary);
  119. border-inline-end: 2px dotted transparent;
  120. border-radius: 50%;
  121. inset-block-start: var(--admin-space-xs);
  122. inset-inline-start: var(--admin-space-xs);
  123. }
  124. }
  125. }
  126. @keyframes throbber {
  127. 0% {
  128. transform: rotateZ(0);
  129. }
  130. 100% {
  131. transform: rotateZ(360deg);
  132. }
  133. }

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