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

Breadcrumb

  1. Drupal Core 11.1.x

titlebar.css

Styling for the titlebar within the off-canvas dialog.

@internal

File

core/misc/dialog/off-canvas/css/titlebar.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. * Styling for the titlebar within the off-canvas dialog.
  10. *
  11. * @internal
  12. */
  13. #drupal-off-canvas-wrapper {
  14. --off-canvas-title-padding: calc(3 * var(--off-canvas-vertical-spacing-unit));
  15. --off-canvas-title-background-color: #2d2d2d;
  16. --off-canvas-title-text-color: #fff;
  17. --off-canvas-title-font-size: 1rem;
  18. }
  19. #drupal-off-canvas-wrapper .ui-dialog-titlebar {
  20. position: relative;
  21. margin: 0 calc(-1 * var(--off-canvas-padding));
  22. padding: var(--off-canvas-title-padding) 3.125rem;
  23. color: var(--off-canvas-title-text-color);
  24. background-color: var(--off-canvas-title-background-color);
  25. font-family: var(--off-canvas-title-font-family);
  26. font-size: var(--off-canvas-title-font-size);
  27. font-weight: bold;
  28. /* The pencil icon. */
  29. }
  30. #drupal-off-canvas-wrapper .ui-dialog-titlebar::before {
  31. position: absolute;
  32. top: 0;
  33. inset-inline-start: 1em;
  34. display: block;
  35. width: 1.25rem;
  36. height: 100%;
  37. content: "";
  38. background-color: currentColor;
  39. mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3e%3cg%3e%3cpath fill='%23ffffff' d='M14.545 3.042l-1.586-1.585c-.389-.389-1.025-.389-1.414 0l-1.293 1.293 3 3 1.293-1.293c.389-.389.389-1.026 0-1.415z'/%3e%3crect fill='%23ffffff' x='5.129' y='3.8' transform='matrix(-.707 -.707 .707 -.707 6.189 20.064)' width='4.243' height='9.899'/%3e%3cpath fill='%23ffffff' d='M.908 14.775c-.087.262.055.397.316.312l2.001-.667-1.65-1.646-.667 2.001z'/%3e%3c/g%3e%3c/svg%3e");
  40. mask-repeat: no-repeat;
  41. mask-size: contain;
  42. mask-position: center;
  43. }
  44. @media (forced-colors: active) {
  45. #drupal-off-canvas-wrapper .ui-dialog-titlebar::before {
  46. background-color: canvastext;
  47. }
  48. }
  49. /* Close button. */
  50. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close {
  51. position: absolute;
  52. top: 50%;
  53. inset-inline: auto 0.625rem;
  54. overflow: hidden;
  55. width: 1.875rem;
  56. height: 1.875rem;
  57. cursor: pointer;
  58. transform: translateY(-50%);
  59. text-indent: -624.9375rem;
  60. color: inherit;
  61. border: 1px solid transparent;
  62. background-color: transparent;
  63. appearance: none;
  64. }
  65. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close:focus {
  66. outline: solid 2px currentColor;
  67. outline-offset: 2px;
  68. }
  69. /* The plus icon. */
  70. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before,
  71. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  72. position: absolute;
  73. top: calc(50% - 1px);
  74. left: 50%;
  75. width: 50%;
  76. height: 0;
  77. content: "";
  78. border-top: solid 2px currentColor;
  79. }
  80. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before {
  81. transform: translate(-50%, 50%) rotate(-45deg);
  82. }
  83. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  84. transform: translate(-50%, 50%) rotate(45deg);
  85. }
  86. /* Hide the default jQuery UI dialog close button. */
  87. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close .ui-icon {
  88. display: none;
  89. }

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal