off-canvas.css

Same filename and directory in other branches
  1. 10 core/modules/layout_builder/css/off-canvas.css
  2. 9 core/misc/dialog/off-canvas.css
  3. 9 core/themes/olivero/css/components/off-canvas.css
  4. 9 core/themes/stable9/css/core/dialog/off-canvas.css
  5. 9 core/themes/stable/css/core/dialog/off-canvas.css
  6. 8.9.x core/misc/dialog/off-canvas.css
  7. 8.9.x core/themes/stable/css/core/dialog/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. :is(#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. :is(:is(#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. :is(#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. :is(#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. :is(#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. :is(#drupal-off-canvas-wrapper .inline-block-create-button, #drupal-off-canvas-wrapper .inline-block-list__item):hover {
  81. background-color: rgb(255, 255, 255, 0.05);
  82. }
  83. :is(#drupal-off-canvas-wrapper .inline-block-create-button, #drupal-off-canvas-wrapper .inline-block-list__item):focus {
  84. outline-offset: -4px; /* Prevent outline from being cut off. */
  85. }
  86. #drupal-off-canvas-wrapper .inline-block-list {
  87. margin: 0 0 calc(2 * var(--off-canvas-vertical-spacing-unit));
  88. padding: 0;
  89. list-style: none;
  90. }
  91. :is(#drupal-off-canvas-wrapper .inline-block-list) li {
  92. position: relative; /* Anchor throbber. */
  93. margin: 0;
  94. padding: calc(0.25 * var(--off-canvas-vertical-spacing-unit)) 0;
  95. }
  96. :is(:is(#drupal-off-canvas-wrapper .inline-block-list) li):last-child {
  97. padding-bottom: 0;
  98. border-bottom: none;
  99. }
  100. /* This is the tag. */
  101. #drupal-off-canvas-wrapper .inline-block-list__item {
  102. display: block;
  103. flex-grow: 1;
  104. padding: calc(2 * var(--off-canvas-vertical-spacing-unit)) var(--off-canvas-padding);
  105. border-bottom: 1px solid var(--off-canvas-border-color);
  106. }
  107. /* Highlight the active block in the Move Block dialog. */
  108. #drupal-off-canvas-wrapper .layout-builder-components-table__block-label--current {
  109. padding-left: 1.0625rem;
  110. border-left: solid 5px;
  111. }