dialog.css

Same filename in this branch
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
  2. 8.9.x core/themes/claro/css/components/dialog.css
  3. 8.9.x core/themes/bartik/css/classy/components/dialog.css
  4. 8.9.x core/themes/classy/css/components/dialog.css
  5. 8.9.x core/assets/vendor/jquery.ui/themes/base/dialog.css
  6. 8.9.x core/assets/vendor/ckeditor/skins/moono-lisa/dialog.css
  7. 8.9.x core/assets/vendor/ckeditor/plugins/dialog/styles/dialog.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
  2. 9 core/themes/seven/css/components/dialog.css
  3. 9 core/themes/claro/css/components/dialog.css
  4. 9 core/themes/bartik/css/classy/components/dialog.css
  5. 9 core/themes/starterkit_theme/css/components/dialog.css
  6. 9 core/themes/classy/css/components/dialog.css
  7. 9 core/assets/vendor/jquery.ui/themes/base/dialog.css
  8. 9 core/assets/vendor/ckeditor/skins/moono-lisa/dialog.css
  9. 9 core/assets/vendor/ckeditor/plugins/dialog/styles/dialog.css
  10. 10 core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
  11. 10 core/themes/claro/css/components/dialog.css
  12. 10 core/themes/starterkit_theme/css/components/dialog.css
  13. 10 core/assets/vendor/jquery.ui/themes/base/dialog.css
  14. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/dialog.css
  15. 11.x core/themes/claro/css/components/dialog.css
  16. 11.x core/themes/starterkit_theme/css/components/dialog.css
  17. 11.x core/assets/vendor/jquery.ui/themes/base/dialog.css
/**
 * Presentational styles for Drupal dialogs.
 */

.ui-dialog {
  position: absolute;
  z-index: 1260;
  padding: 0;
  border: 0;
  background: transparent;
}

@media all and (max-width: 48em) { /* 768px */
  .ui-dialog {
    min-width: 92%;
    max-width: 92%;
  }
}
.ui-dialog .ui-dialog-titlebar {
  padding: 15px 49px 15px 15px; /* LTR */
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: #6b6b6b;
}
[dir="rtl"] .ui-dialog .ui-dialog-titlebar {
  padding-right: 15px;
  padding-left: 49px;
}
.ui-dialog .ui-dialog-title {
  margin: 0;
  color: #fff;
  font-size: 1.231em;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  top: 10px;
  right: 12px; /* LTR */
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  -webkit-transition: all 0.1s;
  transition: all 0.1s;
  border: 3px solid #6b6b6b;
  border-radius: 5px;
  background: none;
}
.ui-dialog .ui-dialog-titlebar-close:hover,
.ui-dialog .ui-dialog-titlebar-close:focus {
  border-color: #fff;
}
[dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
  right: auto;
  left: 20px;
}
.ui-dialog .ui-icon.ui-icon-closethick {
  margin-top: -8px;
  background: url(../../../../misc/icons/ffffff/ex.svg) 0 0 no-repeat;
}
.ui-dialog .ui-widget-content.ui-dialog-content {
  overflow: auto;
  padding: 1em;
  background: #fff;
}
.views-ui-dialog .ui-widget-content.ui-dialog-content {
  padding: 0;
}
.ui-dialog .ui-widget-content.ui-dialog-buttonpane {
  /* border-top: 1px solid #bfbfbf; */
  margin: 0;
  padding: 15px 20px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  background: #f5f5f2;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  float: none;
  margin: 0;
  padding: 0;
}
.ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text {
  padding: 0;
}
.ui-dialog .ui-dialog-content {
  position: static;
}

/* Form action buttons are moved in dialogs. Remove empty space. */
.ui-dialog .ui-dialog-content .form-actions {
  margin: 0;
  padding: 0;
}
.ui-dialog .ajax-progress-throbber {
  position: fixed;
  z-index: 1000;
  top: 48.5%;
  /* Can't do center:50% middle: 50%, so approximate it for a typical window size. */
  left: 49%; /* LTR */
  width: 24px;
  height: 24px;
  padding: 4px;
  opacity: 0.9;
  border-radius: 7px;
  background-color: #232323;
  background-image: url(../../../../misc/loading-small.gif);
  background-repeat: no-repeat;
  background-position: center center;
}
[dir="rtl"] .ui-dialog .ajax-progress-throbber {
  right: 49%;
  left: auto;
}
.ui-dialog .ajax-progress-throbber .throbber,
.ui-dialog .ajax-progress-throbber .message {
  display: none;
}
.ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
  position: relative;
}
.ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
  top: 10px;
}
.ui-dialog.ui-dialog-off-canvas .ui-widget-content.ui-dialog-content {
  background: none;
}

File

core/themes/seven/css/components/dialog.css

View source
  1. /**
  2. * Presentational styles for Drupal dialogs.
  3. */
  4. .ui-dialog {
  5. position: absolute;
  6. z-index: 1260;
  7. padding: 0;
  8. border: 0;
  9. background: transparent;
  10. }
  11. @media all and (max-width: 48em) { /* 768px */
  12. .ui-dialog {
  13. min-width: 92%;
  14. max-width: 92%;
  15. }
  16. }
  17. .ui-dialog .ui-dialog-titlebar {
  18. padding: 15px 49px 15px 15px; /* LTR */
  19. border-top-left-radius: 5px;
  20. border-top-right-radius: 5px;
  21. background: #6b6b6b;
  22. }
  23. [dir="rtl"] .ui-dialog .ui-dialog-titlebar {
  24. padding-right: 15px;
  25. padding-left: 49px;
  26. }
  27. .ui-dialog .ui-dialog-title {
  28. margin: 0;
  29. color: #fff;
  30. font-size: 1.231em;
  31. font-weight: 600;
  32. -webkit-font-smoothing: antialiased;
  33. }
  34. .ui-dialog .ui-dialog-titlebar-close {
  35. position: absolute;
  36. top: 10px;
  37. right: 12px; /* LTR */
  38. width: 30px;
  39. height: 30px;
  40. margin: 0;
  41. padding: 0;
  42. -webkit-transition: all 0.1s;
  43. transition: all 0.1s;
  44. border: 3px solid #6b6b6b;
  45. border-radius: 5px;
  46. background: none;
  47. }
  48. .ui-dialog .ui-dialog-titlebar-close:hover,
  49. .ui-dialog .ui-dialog-titlebar-close:focus {
  50. border-color: #fff;
  51. }
  52. [dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
  53. right: auto;
  54. left: 20px;
  55. }
  56. .ui-dialog .ui-icon.ui-icon-closethick {
  57. margin-top: -8px;
  58. background: url(../../../../misc/icons/ffffff/ex.svg) 0 0 no-repeat;
  59. }
  60. .ui-dialog .ui-widget-content.ui-dialog-content {
  61. overflow: auto;
  62. padding: 1em;
  63. background: #fff;
  64. }
  65. .views-ui-dialog .ui-widget-content.ui-dialog-content {
  66. padding: 0;
  67. }
  68. .ui-dialog .ui-widget-content.ui-dialog-buttonpane {
  69. /* border-top: 1px solid #bfbfbf; */
  70. margin: 0;
  71. padding: 15px 20px;
  72. border-bottom-right-radius: 5px;
  73. border-bottom-left-radius: 5px;
  74. background: #f5f5f2;
  75. }
  76. .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  77. float: none;
  78. margin: 0;
  79. padding: 0;
  80. }
  81. .ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text {
  82. padding: 0;
  83. }
  84. .ui-dialog .ui-dialog-content {
  85. position: static;
  86. }
  87. /* Form action buttons are moved in dialogs. Remove empty space. */
  88. .ui-dialog .ui-dialog-content .form-actions {
  89. margin: 0;
  90. padding: 0;
  91. }
  92. .ui-dialog .ajax-progress-throbber {
  93. position: fixed;
  94. z-index: 1000;
  95. top: 48.5%;
  96. /* Can't do center:50% middle: 50%, so approximate it for a typical window size. */
  97. left: 49%; /* LTR */
  98. width: 24px;
  99. height: 24px;
  100. padding: 4px;
  101. opacity: 0.9;
  102. border-radius: 7px;
  103. background-color: #232323;
  104. background-image: url(../../../../misc/loading-small.gif);
  105. background-repeat: no-repeat;
  106. background-position: center center;
  107. }
  108. [dir="rtl"] .ui-dialog .ajax-progress-throbber {
  109. right: 49%;
  110. left: auto;
  111. }
  112. .ui-dialog .ajax-progress-throbber .throbber,
  113. .ui-dialog .ajax-progress-throbber .message {
  114. display: none;
  115. }
  116. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar {
  117. position: relative;
  118. }
  119. .ui-dialog.ui-dialog-off-canvas .ui-dialog-titlebar-close {
  120. top: 10px;
  121. }
  122. .ui-dialog.ui-dialog-off-canvas .ui-widget-content.ui-dialog-content {
  123. background: none;
  124. }

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