contextual_links.pcss.css

Same filename and directory in other branches
  1. main core/themes/default_admin/migration/css/components/contextual_links.pcss.css

Contextual links styles.

File

core/themes/default_admin/migration/css/components/contextual_links.pcss.css

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

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