contextual_links.css

Same filename in this branch
  1. main core/themes/admin/migration/css/components/contextual_links.css
Same filename and directory in other branches
  1. 11.x core/themes/admin/migration/css/components/contextual_links.css
  2. 11.x core/themes/default_admin/migration/css/components/contextual_links.css

Contextual links styles.

File

core/themes/default_admin/migration/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. .trigger {
  14. box-sizing: border-box;
  15. width: 2rem !important;
  16. height: 2rem !important;
  17. border: 1px solid var(--gin-border-color-layer2);
  18. border-radius: 50%;
  19. background: var(--gin-bg-layer3);
  20. box-shadow: 0 2px 4px rgb(0, 0, 0, 0.15);
  21. &::before {
  22. position: absolute;
  23. display: block;
  24. width: 0.75rem;
  25. height: 0.75rem;
  26. content: "";
  27. transform: translate(-50%, -50%);
  28. background: var(--gin-color-primary);
  29. inset-block-start: 50%;
  30. inset-inline-start: 50%;
  31. 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");
  32. mask-size: var(--space-s) var(--space-s);
  33. mask-position: 100% 100%;
  34. &:dir(rtl) {
  35. transform: translate(50%, -50%);
  36. }
  37. }
  38. &:hover,
  39. &:focus {
  40. box-shadow:
  41. 0 0 0 1px var(--gin-color-focus-border),
  42. 0 0 0 4px var(--gin-color-focus);
  43. }
  44. }
  45. &.open .trigger {
  46. border-block-end: 0 none;
  47. border-radius: 50%;
  48. }
  49. }
  50. .contextual-region .contextual .contextual-links {
  51. min-width: 7.5rem;
  52. margin: 0;
  53. padding: 0.5em;
  54. border: 0 none;
  55. border-radius: var(--gin-border-l);
  56. background: var(--gin-bg-layer3);
  57. box-shadow: var(--gin-shadow-l2);
  58. inset-block-start: var(--space-xxs);
  59. li {
  60. background: transparent;
  61. a {
  62. margin: 0;
  63. padding: var(--space-xs) var(--space-m);
  64. white-space: nowrap;
  65. color: var(--gin-color-primary);
  66. border-radius: var(--gin-border-s);
  67. background: transparent;
  68. font-family: var(--gin-font);
  69. line-height: 1;
  70. &:hover,
  71. &:active {
  72. color: var(--gin-color-button-text);
  73. background: var(--gin-color-primary);
  74. }
  75. &:focus {
  76. outline: none;
  77. box-shadow:
  78. 0 0 0 1px var(--gin-color-focus-border),
  79. 0 0 0 4px var(--gin-color-focus);
  80. }
  81. }
  82. }
  83. .ajax-progress-throbber {
  84. border-radius: 50%;
  85. background: var(--gin-color-primary);
  86. inset-block-start: 0.125rem;
  87. &::before {
  88. inset-block-start: var(--space-xxs);
  89. inset-inline-start: var(--space-xxs);
  90. width: 1rem;
  91. height: 1rem;
  92. border: 2px solid var(--gin-color-button-text);
  93. border-inline-end: 2px dotted transparent;
  94. }
  95. }
  96. }
  97. .no-touchevents .contextual-region .contextual .contextual-links li a {
  98. &:hover,
  99. &:active {
  100. color: var(--gin-color-button-text);
  101. background: var(--gin-color-primary);
  102. }
  103. }

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