sidebar.css

Same filename in this branch
  1. main core/themes/admin/migration/css/components/sidebar.css
Same filename and directory in other branches
  1. 9 core/themes/bartik/css/components/sidebar.css
  2. 8.9.x core/themes/bartik/css/components/sidebar.css
  3. 11.x core/themes/admin/migration/css/components/sidebar.css
  4. 11.x core/themes/default_admin/migration/css/components/sidebar.css

Sidebar panel and controls.

File

core/themes/default_admin/migration/css/components/sidebar.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. * Sidebar panel and controls.
  10. */
  11. #gin-sidebar-draggable {
  12. position: absolute;
  13. z-index: 104;
  14. display: block;
  15. width: 2px;
  16. height: 100%;
  17. padding: 0;
  18. cursor: ew-resize;
  19. inset-block-start: 0;
  20. inset-inline-start: 0;
  21. &:hover {
  22. background-color: var(--gin-border-color-table);
  23. }
  24. &:active {
  25. background-color: var(--gin-border-color);
  26. }
  27. @media (prefers-reduced-motion: no-preference) {
  28. transition: var(--gin-transition-fast);
  29. }
  30. }
  31. .layout-region--secondary {
  32. @media (prefers-reduced-motion: no-preference) {
  33. transition: transform var(--gin-transition-fast);
  34. }
  35. @media (max-width: 60.99em) {
  36. --gin-sidebar-width: var(--gin-sidebar-small-width);
  37. }
  38. @media (max-width: 63.99em) {
  39. visibility: hidden;
  40. opacity: 0;
  41. }
  42. }
  43. body[data-meta-sidebar="closed"] {
  44. --gin-sidebar-offset: 0px;
  45. .layout-region--secondary {
  46. visibility: hidden;
  47. transform: translateX(var(--gin-sidebar-width));
  48. &:dir(rtl) {
  49. transform: translateX(calc(var(--gin-sidebar-width) * -1));
  50. }
  51. }
  52. }
  53. body[data-meta-sidebar="open"] {
  54. .layout-region--secondary {
  55. @media (max-width: 63.99em) {
  56. visibility: visible;
  57. opacity: 1;
  58. }
  59. }
  60. }
  61. :is(#extra-specificity-hack, [data-drupal-admin-styles]) .meta-sidebar__close,
  62. .meta-sidebar__close {
  63. width: 2rem;
  64. height: 2rem;
  65. cursor: pointer;
  66. border-radius: var(--gin-border-m);
  67. background: transparent;
  68. &::before {
  69. display: inline-block;
  70. width: 100%;
  71. height: 100%;
  72. content: "";
  73. background-color: var(--gin-icon-color);
  74. mask-repeat: no-repeat;
  75. mask-position: center center;
  76. }
  77. &:hover,
  78. &:focus {
  79. background-color: var(--gin-color-primary-light);
  80. &::before {
  81. background-color: var(--gin-color-primary);
  82. }
  83. }
  84. &.is-active {
  85. background-color: var(--gin-color-primary-light-hover);
  86. &::before {
  87. background-color: var(--gin-color-primary-active);
  88. }
  89. }
  90. @media (prefers-reduced-motion: no-preference) {
  91. transition: background var(--gin-transition-fast);
  92. }
  93. }
  94. :is(#extra-specificity-hack, [data-drupal-admin-styles]) .meta-sidebar__trigger,
  95. .meta-sidebar__trigger {
  96. display: block;
  97. width: 2rem;
  98. height: 2rem;
  99. cursor: pointer;
  100. border-radius: var(--gin-border-m);
  101. background: transparent;
  102. &::before {
  103. display: inline-block;
  104. width: 100%;
  105. height: 100%;
  106. content: "";
  107. border-radius: 50%;
  108. background-color: var(--gin-icon-color);
  109. mask-repeat: no-repeat;
  110. mask-position: center center;
  111. 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='2' stroke-linecap='round' stroke-linejoin='round'%3e %3crect x='2' y='2' width='20' height='18' rx='4' ry='4'%3e%3c/rect%3e %3cline x1='14' y1='2' x2='14' y2='20'%3e%3c/line%3e %3cline x1='17.25' y1='7' x2='18.5' y2='7'%3e%3c/line%3e %3cline x1='17.25' y1='11.5' x2='18.5' y2='11.5'%3e%3c/line%3e %3c/g%3e%3c/svg%3e");
  112. mask-size: var(--gin-icon-size-sidebar-toggle) var(--gin-icon-size-sidebar-toggle);
  113. }
  114. &:hover,
  115. &:focus,
  116. &.is-active,
  117. &.is-active:hover {
  118. background-color: var(--gin-color-primary-light);
  119. &::before {
  120. background-color: var(--gin-color-primary);
  121. }
  122. }
  123. &.is-active {
  124. background-color: var(--gin-bg-item-hover);
  125. }
  126. @media (prefers-reduced-motion: no-preference) {
  127. transition: background var(--gin-transition-fast);
  128. }
  129. }
  130. :is(#extra-specificity-hack, [data-drupal-admin-styles]) .meta-sidebar__close,
  131. .meta-sidebar__close {
  132. position: absolute;
  133. z-index: 104;
  134. inset-block-start: 1.125rem;
  135. inset-inline-end: var(--space-m);
  136. &::before {
  137. 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='2.25' stroke-linecap='round' stroke-linejoin='round'%3e %3cpath d='M20 4L4 20' /%3e %3cpath d='M4 4L20 20' /%3e %3c/g%3e%3c/svg%3e");
  138. mask-size: 1rem 1rem;
  139. }
  140. @media (min-width: 64em) {
  141. display: none;
  142. }
  143. }
  144. :is(#extra-specificity-hack, [data-drupal-admin-styles]) .meta-sidebar__overlay,
  145. .meta-sidebar__overlay {
  146. position: fixed;
  147. z-index: 102;
  148. visibility: hidden;
  149. width: 100%;
  150. height: 100%;
  151. opacity: 0;
  152. background: var(--gin-bg-layer2);
  153. inset-block-start: 0;
  154. inset-inline-start: 0;
  155. @media (min-width: 64em) {
  156. display: none;
  157. }
  158. }
  159. body[data-meta-sidebar="open"] :is(#extra-specificity-hack, [data-drupal-admin-styles]) .meta-sidebar__overlay,
  160. body[data-meta-sidebar="open"] .meta-sidebar__overlay {
  161. visibility: visible;
  162. opacity: 0.9;
  163. }

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