off-canvas.theme.css

Same filename in this branch
  1. 9 core/misc/dialog/off-canvas.theme.css
  2. 9 core/themes/stable9/css/core/dialog/off-canvas.theme.css
  3. 9 core/themes/stable/css/core/dialog/off-canvas.theme.css
Same filename and directory in other branches
  1. 8.9.x core/misc/dialog/off-canvas.theme.css
  2. 8.9.x core/themes/stable/css/core/dialog/off-canvas.theme.css

Styling for the off-canvas ui dialog.

Contains overrides for jQuery UI dialog.

File

core/themes/claro/css/base/off-canvas.theme.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 off-canvas ui dialog.
  10. *
  11. * Contains overrides for jQuery UI dialog.
  12. */
  13. /* Style the dialog-off-canvas container. */
  14. .ui-dialog.ui-dialog-off-canvas {
  15. /* Layer the dialog just under the toolbar. */
  16. z-index: 501;
  17. padding: 0;
  18. color: #ddd;
  19. border-radius: 0;
  20. background: #444;
  21. box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3333);
  22. }
  23. .ui-widget.ui-dialog.ui-dialog-off-canvas {
  24. border: 1px solid transparent;
  25. }
  26. /* Style the off-canvas dialog header. */
  27. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
  28. padding: 0.75rem 3rem 0.75rem 1rem; /* LTR */
  29. border: 0;
  30. border-bottom: 1px solid #000;
  31. border-radius: 0;
  32. background: #2d2d2d;
  33. line-height: 1.5;
  34. }
  35. [dir="rtl"] .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
  36. padding-right: 1rem;
  37. padding-left: 3rem;
  38. }
  39. .ui-dialog.ui-dialog-off-canvas .ui-dialog-title {
  40. /* Push the text away from the icon. */
  41. padding-left: 1.75rem; /* LTR */
  42. /* Ensure that long titles are not truncated. */
  43. white-space: normal;
  44. background: transparent 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");
  45. background-repeat: no-repeat;
  46. background-position: 0 50%; /* LTR */
  47. background-size: 1.25rem 1.25rem;
  48. font-size: 1rem;
  49. }
  50. [dir="rtl"] .ui-dialog.ui-dialog-off-canvas .ui-dialog-title {
  51. padding-right: 1.75rem;
  52. padding-left: 0;
  53. background-position: 100% 50%;
  54. }
  55. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
  56. margin-right: 1rem;
  57. margin-left: 1rem;
  58. }
  59. /* Override default styling from jQuery UI. */
  60. #drupal-off-canvas .ui-state-default,
  61. #drupal-off-canvas .ui-widget-content .ui-state-default,
  62. #drupal-off-canvas .ui-widget-header .ui-state-default {
  63. color: #333;
  64. border: 0;
  65. font-size: 0.889rem;
  66. font-weight: normal;
  67. }
  68. #drupal-off-canvas .ui-widget-content a {
  69. color: #99b8ff;
  70. }
  71. #drupal-off-canvas .form-actions {
  72. display: block;
  73. }

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