dialog.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. /**
  2. * Presentational styles for Drupal dialogs.
  3. */
  4. .ui-dialog {
  5. background: transparent;
  6. border: 0;
  7. position: absolute;
  8. z-index: 1260;
  9. padding: 0;
  10. animation: fade 0.4s;
  11. z-index: 9999999;
  12. }
  13. .ui-dialog.media-library-widget-modal,
  14. .ui-dialog.entity-browser-modal {
  15. left: 2.5% !important;
  16. right: 2.5% !important;
  17. max-width: 95%;
  18. min-width: 95%;
  19. }
  20. .ui-dialog:focus,
  21. .ui-dialog .ui-dialog-titlebar-close:focus {
  22. outline: transparent;
  23. }
  24. @keyframes fade {
  25. 0% {
  26. opacity: 0;
  27. }
  28. 100% {
  29. opacity: 1;
  30. }
  31. }
  32. @media all and (max-width: 48em) {
  33. /* 768px */
  34. .ui-dialog {
  35. min-width: 92%;
  36. max-width: 92%;
  37. }
  38. }
  39. .ui-dialog .ui-dialog-titlebar {
  40. background: #0678be;
  41. padding: 15px 49px 15px 15px;
  42. /* LTR */
  43. }
  44. [dir="rtl"] .ui-dialog .ui-dialog-titlebar {
  45. padding-left: 49px;
  46. padding-right: 15px;
  47. }
  48. .ui-dialog .ui-dialog-title {
  49. font-size: 26px;
  50. line-height: 30px;
  51. font-weight: 300;
  52. margin: 0;
  53. color: #fff;
  54. -webkit-font-smoothing: antialiased;
  55. }
  56. .ui-dialog .ui-dialog-titlebar-close {
  57. border: none;
  58. border-radius: 0;
  59. background: none;
  60. right: 15px;
  61. /* LTR */
  62. top: 15px;
  63. margin: 0;
  64. padding: 0;
  65. height: 30px;
  66. width: 30px;
  67. position: absolute;
  68. }
  69. [dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
  70. right: auto;
  71. left: 15px;
  72. }
  73. .ui-dialog .ui-icon.ui-icon-closethick {
  74. position: absolute;
  75. left: 0;
  76. top: 0;
  77. width: 30px;
  78. height: 30px;
  79. opacity: 0.8;
  80. margin: 0;
  81. background: none;
  82. -webkit-transition: all 0.2s;
  83. transition: all 0.2s;
  84. }
  85. .ui-dialog .ui-icon.ui-icon-closethick:hover {
  86. opacity: 1;
  87. }
  88. .ui-dialog .ui-icon.ui-icon-closethick:before,
  89. .ui-dialog .ui-icon.ui-icon-closethick:after {
  90. position: absolute;
  91. left: 14px;
  92. top: 4px;
  93. content: ' ';
  94. height: 22px;
  95. width: 2px;
  96. background-color: white;
  97. }
  98. .ui-dialog .ui-icon.ui-icon-closethick:before {
  99. transform: rotate(45deg);
  100. }
  101. .ui-dialog .ui-icon.ui-icon-closethick:after {
  102. transform: rotate(-45deg);
  103. }
  104. .ui-dialog .ui-widget-content.ui-dialog-content {
  105. background: #fff;
  106. overflow: auto;
  107. padding: 20px;
  108. }
  109. .views-ui-dialog .ui-widget-content.ui-dialog-content {
  110. padding: 0;
  111. }
  112. .ui-dialog .ui-widget-content.ui-dialog-buttonpane,
  113. #media-entity-browser-modal {
  114. background: #f5f5f5;
  115. margin: 0;
  116. padding: 15px 20px;
  117. }
  118. .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
  119. margin: 0;
  120. padding: 0;
  121. float: none;
  122. padding: 0;
  123. position: relative;
  124. right: 0;
  125. background-color: transparent;
  126. }
  127. .ui-dialog .ui-dialog-buttonpane .ui-button-text-only .ui-button-text {
  128. padding: 0;
  129. }
  130. .ui-dialog .ui-dialog-content {
  131. position: static;
  132. }
  133. /* Form action buttons are moved in dialogs. Remove empty space. */
  134. .ui-dialog .ui-dialog-content .form-actions {
  135. margin: 0;
  136. }
  137. .ui-dialog .ajax-progress-throbber {
  138. position: fixed;
  139. top: 0;
  140. right: 0;
  141. width: 100%;
  142. justify-content: center;
  143. z-index: 99999;
  144. }
  145. .ui-dialog .ajax-progress-throbber .throbber {
  146. border-top: 5px solid rgba(0, 128, 255, 0.3);
  147. border-right: 5px solid rgba(0, 128, 255, 0.3);
  148. border-bottom: 5px solid rgba(0, 128, 255, 0.3);
  149. border-left: 5px solid #0678be;
  150. width: 30px;
  151. height: 30px;
  152. }
  153. .ui-dialog .ajax-progress-throbber .message {
  154. display: none;
  155. }
  156. .ui-dialog .form-item-settings-label {
  157. display: flex;
  158. flex-direction: column;
  159. }
  160. .ui-dialog .field-suffix {
  161. margin: 0;
  162. }
  163. .ui-dialog .field-suffix br {
  164. display: none;
  165. }
  166. .ui-dialog table {
  167. margin: 0;
  168. }
  169. .ui-dialog fieldset:not(.fieldgroup) {
  170. background: none;
  171. padding: 55px 0 0 0;
  172. }
  173. .ui-dialog .ui-tabs .ui-tabs-panel {
  174. padding: 20px 20px 0 20px;
  175. }
  176. .ui-dialog .ui-tabs .ui-tabs-nav {
  177. border-bottom: 0;
  178. padding: 0;
  179. background: #f5f5f5;
  180. }
  181. .ui-dialog .ui-tabs .ui-tabs-nav li.ui-tabs-active {
  182. margin: 0;
  183. padding-bottom: 0;
  184. background: white;
  185. border: 0;
  186. }
  187. .ui-dialog .ui-tabs .ui-tabs-nav li.ui-tabs-active a:hover {
  188. background: white;
  189. }
  190. .ui-dialog .ui-tabs .ui-tabs-nav li {
  191. padding: 0;
  192. border: 0;
  193. margin: 0;
  194. }
  195. .ui-dialog .ui-tabs .ui-tabs-nav li a {
  196. padding: 10px 20px;
  197. line-height: 1.8;
  198. display: flex;
  199. border: none;
  200. }
  201. .ui-dialog .ui-tabs .ui-tabs-nav li a:hover {
  202. background: #f9f9f9;
  203. border: 0;
  204. }
  205. .ui-dialog .ui-tabs .ui-tabs-nav li.ui-tabs-active:hover,
  206. .ui-dialog .ui-tabs .ui-tabs-nav li:hover {
  207. border: 0;
  208. }
  209. .ui-dialog .form-wrapper {
  210. flex-wrap: wrap;
  211. }
  212. @media screen and (min-width: 640px) {
  213. .ui-dialog .form-wrapper {
  214. flex-wrap: nowrap;
  215. }
  216. }
  217. .ui-dialog table .form-type-checkbox {
  218. display: inline-flex;
  219. }