top_bar.css

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

Navigation top bar layout styles.

File

core/themes/default_admin/migration/css/layout/top_bar.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. * Navigation top bar layout styles.
  10. */
  11. /* cspell:ignore xxxs */
  12. :root {
  13. --drupal-displace-offset-top: 4rem;
  14. --admin-toolbar-top-bar-height: 4rem;
  15. }
  16. :is(#extra-specificity-hack, [data-drupal-admin-styles]).gin--navigation-top-bar {
  17. height: auto;
  18. min-height: 4rem;
  19. opacity: 0.95;
  20. border-block-end: 1px solid var(--gin-border-color-layer);
  21. background: var(--gin-bg-layer);
  22. box-shadow: none;
  23. padding-inline: calc(var(--admin-toolbar-sidebar-width) + var(--space-m)) var(--space-m);
  24. padding-block: var(--space-xxxs);
  25. .gin--high-contrast-mode
  26. &--offset {
  27. margin-top: calc(4rem + var(--space-s));
  28. }
  29. &:has(.top-bar__tools:not(:empty), .top-bar__context:not(:empty), .top-bar__actions:not(:empty)) {
  30. display: flex;
  31. }
  32. .top-bar__burger {
  33. align-self: center;
  34. }
  35. .top-bar__context {
  36. gap: var(--space-xs);
  37. }
  38. .top-bar__actions,
  39. .local-actions {
  40. display: flex;
  41. flex-wrap: wrap;
  42. align-items: center;
  43. gap: var(--space-xs);
  44. }
  45. .local-actions,
  46. .local-actions__item,
  47. .form-actions,
  48. .gin-sticky-form-actions {
  49. width: auto;
  50. margin: 0;
  51. }
  52. .toolbar-title {
  53. color: var(--gin-color-text);
  54. }
  55. .toolbar-title__icon path {
  56. fill: var(--gin-color-text);
  57. }
  58. .toolbar-button {
  59. font-size: var(--font-size-xs);
  60. font-weight: var(--font-weight-semibold);
  61. font-variation-settings: normal;
  62. }
  63. .toolbar-dropdown__menu {
  64. box-sizing: border-box;
  65. padding: var(--space-xs);
  66. border-radius: var(--gin-border-l);
  67. background-color: var(--gin-bg-layer3);
  68. box-shadow: var(--gin-shadow-l2);
  69. gap: 0;
  70. .toolbar-dropdown__link {
  71. box-sizing: border-box;
  72. width: 100%;
  73. max-width: 15rem;
  74. margin: 0 !important;
  75. padding: var(--space-s);
  76. text-align: start;
  77. -webkit-text-decoration: none;
  78. text-decoration: none;
  79. border: 0 !important;
  80. border-radius: var(--gin-border-s);
  81. box-shadow: none;
  82. font-size: var(--font-size-xs);
  83. font-weight: var(--font-weight-semibold);
  84. line-height: 1;
  85. &:hover,
  86. &:active,
  87. &:focus {
  88. color: var(--gin-color-button-text);
  89. outline: none;
  90. background-color: var(--gin-color-primary);
  91. &::before {
  92. background-color: var(--gin-bg-layer) !important;
  93. }
  94. }
  95. }
  96. .toolbar-dropdown__item + .toolbar-dropdown__item {
  97. border: none;
  98. }
  99. @media (prefers-reduced-motion: no-preference) {
  100. transition: opacity var(--gin-transition-fast);
  101. }
  102. }
  103. button,
  104. input[type="submit"],
  105. .action-link--icon-trash.action-link--danger,
  106. .button.button--danger,
  107. a.button.button--danger,
  108. .local-actions__item a {
  109. -webkit-text-decoration: none;
  110. text-decoration: none;
  111. box-shadow: none;
  112. font-size: var(--font-size-xs);
  113. font-weight: var(--font-weight-bold);
  114. padding-block: calc(var(--space-xs) - var(--space-xxxs));
  115. padding-inline: var(--space-s);
  116. margin-block: 0;
  117. }
  118. .action-link--icon-trash.action-link--danger,
  119. .button.button--danger,
  120. a.button.button--danger {
  121. padding-block: calc(var(--space-xs) - 0.5px);
  122. }
  123. @supports (backdrop-filter: blur()) {
  124. opacity: 0.999;
  125. /* stylelint-disable-next-line color-function-notation */
  126. background: rgb(from var(--layer-background) r g b/ 0.8);
  127. backdrop-filter: blur(0.75rem);
  128. }
  129. }
  130. body:has(.gin--navigation-top-bar .gin-sticky-form-actions) :where(#default_admin_sidebar) {
  131. inset-block-start: 4rem !important;
  132. height: calc(100% - 4rem) !important;
  133. }
  134. :where(.gin--edit-form) .gin-sticky-form-actions {
  135. gap: var(--space-xs);
  136. .button {
  137. margin-inline-end: 0;
  138. &:dir(rtl) {
  139. margin-inline-start: 0;
  140. }
  141. }
  142. }
  143. :where(.gin--edit-form) .gin-sticky-form-actions [data-drupal-selector="edit-delete"] {
  144. display: none;
  145. }
  146. #block-gin-page-title {
  147. margin-block: var(--space-xxs) var(--space-s);
  148. }

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