Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

off-canvas.css

Layout Builder styling for off-canvas UI.

File

core/modules/layout_builder/css/off-canvas.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. * Layout Builder styling for off-canvas UI.
  10. */
  11. #drupal-off-canvas-wrapper .layout-selection {
  12. margin: 0;
  13. padding: 0;
  14. list-style: none;
  15. }
  16. #drupal-off-canvas-wrapper .layout-selection li {
  17. position: relative; /* Anchor throbber. */
  18. padding: calc(0.25 * var(--off-canvas-vertical-spacing-unit));
  19. border-bottom: 1px solid var(--off-canvas-border-color);
  20. }
  21. #drupal-off-canvas-wrapper .layout-selection li:last-child {
  22. padding-bottom: 0;
  23. border-bottom: none;
  24. }
  25. /* Horizontally align icon and text. */
  26. #drupal-off-canvas-wrapper .layout-selection a {
  27. display: flex;
  28. flex-wrap: wrap;
  29. align-items: center;
  30. gap: 0.625rem;
  31. padding: 0.625rem;
  32. }
  33. /*
  34. * This is the styling of the SVG within the layout selection list.
  35. */
  36. #drupal-off-canvas-wrapper .layout-icon__region {
  37. fill: var(--off-canvas-text-color);
  38. stroke: transparent;
  39. }
  40. @media (forced-colors: active) {
  41. #drupal-off-canvas-wrapper .layout-icon__region {
  42. fill: canvastext;
  43. }
  44. }
  45. #drupal-off-canvas-wrapper .inline-block-create-button {
  46. --icon-size: 1rem;
  47. position: relative; /* Anchor pseudo-element. */
  48. display: block;
  49. padding: 1.5rem;
  50. padding-inline-start: calc(2 * var(--off-canvas-padding) + var(--icon-size) / 2); /* Room for icon */
  51. border-bottom: 1px solid #333;
  52. font-size: 1rem;
  53. /* Plus icon. */
  54. }
  55. #drupal-off-canvas-wrapper .inline-block-create-button::before {
  56. position: absolute;
  57. top: 50%;
  58. left: var(--off-canvas-padding);
  59. width: var(--icon-size);
  60. height: var(--icon-size);
  61. content: "";
  62. transform: translateY(-50%);
  63. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px'%3e%3cpath fill='%23bebebe' d='M0.656,9.023c0,0.274,0.224,0.5,0.499,0.5l4.853,0.001c0.274-0.001,0.501,0.226,0.5,0.5l0.001,4.853 c-0.001,0.273,0.227,0.5,0.501,0.5l1.995-0.009c0.273-0.003,0.497-0.229,0.5-0.503l0.002-4.806c0-0.272,0.228-0.5,0.499-0.502 l4.831-0.021c0.271-0.005,0.497-0.23,0.501-0.502l0.008-1.998c0-0.276-0.225-0.5-0.499-0.5l-4.852,0c-0.275,0-0.502-0.228-0.501-0.5 L9.493,1.184c0-0.275-0.225-0.499-0.5-0.499L6.997,0.693C6.722,0.694,6.496,0.92,6.495,1.195L6.476,6.026 c-0.001,0.274-0.227,0.5-0.501,0.5L1.167,6.525C0.892,6.526,0.665,6.752,0.665,7.026L0.656,9.023z'/%3e%3c/svg%3e");
  64. background-repeat: no-repeat;
  65. background-size: contain;
  66. }
  67. @media (forced-colors: active) {
  68. #drupal-off-canvas-wrapper .inline-block-create-button::before {
  69. background: linktext;
  70. mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16px' height='16px'%3e%3cpath fill='%23bebebe' d='M0.656,9.023c0,0.274,0.224,0.5,0.499,0.5l4.853,0.001c0.274-0.001,0.501,0.226,0.5,0.5l0.001,4.853 c-0.001,0.273,0.227,0.5,0.501,0.5l1.995-0.009c0.273-0.003,0.497-0.229,0.5-0.503l0.002-4.806c0-0.272,0.228-0.5,0.499-0.502 l4.831-0.021c0.271-0.005,0.497-0.23,0.501-0.502l0.008-1.998c0-0.276-0.225-0.5-0.499-0.5l-4.852,0c-0.275,0-0.502-0.228-0.501-0.5 L9.493,1.184c0-0.275-0.225-0.499-0.5-0.499L6.997,0.693C6.722,0.694,6.496,0.92,6.495,1.195L6.476,6.026 c-0.001,0.274-0.227,0.5-0.501,0.5L1.167,6.525C0.892,6.526,0.665,6.752,0.665,7.026L0.656,9.023z'/%3e%3c/svg%3e");
  71. mask-repeat: no-repeat;
  72. mask-size: contain;
  73. }
  74. }
  75. #drupal-off-canvas-wrapper .inline-block-create-button,
  76. #drupal-off-canvas-wrapper .inline-block-list__item {
  77. margin: 0 calc(-1 * var(--off-canvas-padding));
  78. color: var(--off-canvas-text-color);
  79. }
  80. #drupal-off-canvas-wrapper .inline-block-create-button:hover,
  81. #drupal-off-canvas-wrapper .inline-block-list__item:hover {
  82. background-color: rgba(255, 255, 255, 0.05);
  83. }
  84. #drupal-off-canvas-wrapper .inline-block-create-button:focus,
  85. #drupal-off-canvas-wrapper .inline-block-list__item:focus {
  86. outline-offset: -4px; /* Prevent outline from being cut off. */
  87. }
  88. #drupal-off-canvas-wrapper .inline-block-list {
  89. margin: 0 0 calc(2 * var(--off-canvas-vertical-spacing-unit));
  90. padding: 0;
  91. list-style: none;
  92. }
  93. #drupal-off-canvas-wrapper .inline-block-list li {
  94. position: relative; /* Anchor throbber. */
  95. margin: 0;
  96. padding: calc(0.25 * var(--off-canvas-vertical-spacing-unit)) 0;
  97. }
  98. #drupal-off-canvas-wrapper .inline-block-list li:last-child {
  99. padding-bottom: 0;
  100. border-bottom: none;
  101. }
  102. /* This is the tag. */
  103. #drupal-off-canvas-wrapper .inline-block-list__item {
  104. display: block;
  105. flex-grow: 1;
  106. padding: calc(2 * var(--off-canvas-vertical-spacing-unit)) var(--off-canvas-padding);
  107. border-bottom: 1px solid var(--off-canvas-border-color);
  108. }
  109. /* Highlight the active block in the Move Block dialog. */
  110. #drupal-off-canvas-wrapper .layout-builder-components-table__block-label--current {
  111. padding-left: 1.0625rem;
  112. border-left: solid 5px;
  113. }
RSS feed
Powered by Drupal