off-canvas.theme.css 2.7 KB

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