dialog.css 4.4 KB

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