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. -webkit-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-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");
  41. -webkit-mask-repeat: no-repeat;
  42. mask-repeat: no-repeat;
  43. -webkit-mask-size: contain;
  44. mask-size: contain;
  45. -webkit-mask-position: center;
  46. mask-position: center;
  47. }
  48. @media (forced-colors: active) {
  49. #drupal-off-canvas-wrapper .ui-dialog-titlebar::before {
  50. background-color: canvastext;
  51. }
  52. }
  53. /* Close button. */
  54. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close {
  55. position: absolute;
  56. top: 50%;
  57. inset-inline: auto 0.625rem;
  58. overflow: hidden;
  59. width: 1.875rem;
  60. height: 1.875rem;
  61. cursor: pointer;
  62. transform: translateY(-50%);
  63. text-indent: -624.9375rem;
  64. color: inherit;
  65. border: 1px solid transparent;
  66. background-color: transparent;
  67. -webkit-appearance: none;
  68. appearance: none;
  69. }
  70. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close:focus {
  71. outline: solid 2px currentColor;
  72. outline-offset: 2px;
  73. }
  74. /* The plus icon. */
  75. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before,
  76. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  77. position: absolute;
  78. top: calc(50% - 1px);
  79. left: 50%;
  80. width: 50%;
  81. height: 0;
  82. content: "";
  83. border-top: solid 2px currentColor;
  84. }
  85. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::before {
  86. transform: translate(-50%, 50%) rotate(-45deg);
  87. }
  88. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close::after {
  89. transform: translate(-50%, 50%) rotate(45deg);
  90. }
  91. /* Hide the default jQuery UI dialog close button. */
  92. #drupal-off-canvas-wrapper .ui-dialog-titlebar-close .ui-icon {
  93. display: none;
  94. }