off-canvas.theme.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /**
  2. * @file
  3. * Styling for the off-canvas ui dialog. Including overrides for jQuery UI.
  4. */
  5. /* Style the dialog-off-canvas container. */
  6. .ui-dialog.ui-dialog-off-canvas {
  7. /* Layer the dialog just under the toolbar. */
  8. z-index: 501;
  9. padding: 0;
  10. color: #ddd;
  11. border-radius: 0;
  12. background: #444;
  13. box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3333);
  14. }
  15. .ui-widget.ui-dialog.ui-dialog-off-canvas {
  16. border: 1px solid transparent;
  17. }
  18. /* Style the off-canvas dialog header. */
  19. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
  20. padding: 1em;
  21. color: #fff;
  22. border: 0;
  23. border-bottom: 1px solid #000;
  24. border-radius: 0;
  25. background: #2d2d2d;
  26. font-weight: normal;
  27. }
  28. /* Hide the default jQuery UI dialog close button. */
  29. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close .ui-icon {
  30. visibility: hidden;
  31. }
  32. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
  33. position: absolute;
  34. top: calc(50% - 6px);
  35. right: 1em;
  36. width: 30px;
  37. height: 30px;
  38. transition: all 0.5s ease;
  39. border: 3px solid transparent;
  40. background-color: transparent;
  41. background-image: url(../icons/bebebe/ex.svg);
  42. background-repeat: no-repeat;
  43. background-position: center center;
  44. }
  45. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close:hover,
  46. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close:focus {
  47. border: 3px solid #fff;
  48. background-image: url(../icons/ffffff/ex.svg);
  49. }
  50. [dir="rtl"] .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
  51. right: auto;
  52. left: 1em;
  53. }
  54. .ui-dialog.ui-dialog-off-canvas .ui-dialog-title {
  55. /* Ensure that long titles do not overlap the close button. */
  56. max-width: 210px;
  57. margin: 0;
  58. padding-right: 0; /* LTR */
  59. /* Push the text away from the icon. */
  60. padding-left: 30px; /* LTR */
  61. text-align: left; /* LTR */
  62. /* Ensure that long titles are not truncated. */
  63. white-space: normal;
  64. font-family: "Lucida Grande", "Lucida Sans Unicode", "liberation sans", sans-serif;
  65. font-size: 16px;
  66. }
  67. [dir="rtl"] .ui-dialog.ui-dialog-off-canvas .ui-dialog-title {
  68. float: right;
  69. padding-right: 30px;
  70. padding-left: 0;
  71. text-align: right;
  72. }
  73. .ui-dialog.ui-dialog-off-canvas .ui-dialog-title:before {
  74. position: absolute;
  75. top: 0;
  76. left: 1em; /* LTR */
  77. display: block;
  78. width: 20px;
  79. height: 100%;
  80. content: "";
  81. background: transparent url(../icons/ffffff/pencil.svg) no-repeat scroll center center;
  82. background-size: 100% auto;
  83. }
  84. [dir="rtl"] .ui-dialog.ui-dialog-off-canvas .ui-dialog-title:before {
  85. right: 1em;
  86. left: auto;
  87. }
  88. /* Override default styling from jQuery UI. */
  89. #drupal-off-canvas .ui-state-default,
  90. #drupal-off-canvas .ui-widget-content .ui-state-default,
  91. #drupal-off-canvas .ui-widget-header .ui-state-default {
  92. color: #333;
  93. border: 0;
  94. font-size: 14px;
  95. font-weight: normal;
  96. }
  97. #drupal-off-canvas .ui-widget-content a {
  98. color: #85bef4;
  99. }