dialog.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. /* Dialog */
  2. .dialog
  3. {
  4. border: 1px solid gray;
  5. background: white;
  6. z-index: 10001;
  7. -webkit-box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  8. -moz-box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  9. box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  10. position: absolute;
  11. top: 50%;
  12. left: 50%;
  13. -webkit-transform: translate(-50%, -50%);
  14. transform: translate(-50%, -50%);
  15. max-width: 98%;
  16. max-height: 98%;
  17. animation: fade_in_dialog;
  18. animation-duration: 0.5s;
  19. animation-fill-mode: forwards;
  20. }
  21. .dialog_curtain
  22. {
  23. z-index: 10000;
  24. opacity: 0;
  25. position: absolute;
  26. top:0;
  27. bottom:0;
  28. left:0;
  29. right:0;
  30. background-color: gray;
  31. -webkit-box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  32. -moz-box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  33. box-shadow: 2px 2px 30px 0px rgba(50, 50, 50, 0.63);
  34. -webkit-user-select: none;
  35. -moz-user-select: none;
  36. -khtml-user-select: none;
  37. -ms-user-select: none;
  38. animation: fade_in_curtain;
  39. animation-duration: 0.5s;
  40. animation-fill-mode: forwards;
  41. }
  42. .dialog > .header
  43. {
  44. position: absolute;
  45. top:0;
  46. left:0;
  47. right:0;
  48. height: 24px;
  49. background-color: white;
  50. border-bottom: 1px solid #e0e0e0;
  51. line-height: 24px;
  52. font-weight: bold;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. -webkit-user-select: none;
  57. -moz-user-select: none;
  58. -khtml-user-select: none;
  59. -ms-user-select: none;
  60. }
  61. .dialog .body
  62. {
  63. position: absolute;
  64. top:25px;
  65. left:0;
  66. right:0;
  67. bottom:32px;
  68. overflow:auto;
  69. padding: 6px;
  70. }
  71. .dialog > .footer
  72. {
  73. position: absolute;
  74. bottom:0;
  75. left:0;
  76. right:0;
  77. height: 32px;
  78. display: flex;
  79. border-top: 1px solid #e0e0e0;
  80. align-items: center;
  81. justify-content: center;
  82. -webkit-user-select: none;
  83. -moz-user-select: none;
  84. -khtml-user-select: none;
  85. -ms-user-select: none;
  86. }
  87. .dialog .body > div
  88. {
  89. margin-top: 4px;
  90. }
  91. .dialog .body > div > input[type='text'],
  92. .dialog .body > div > input[type='password']
  93. {
  94. width:100%;
  95. box-sizing: border-box;
  96. }
  97. .dialog .body .text_field,
  98. .dialog .body .select_field,
  99. .dialog .body .radio_buttons
  100. {
  101. width: 100%;
  102. box-sizing: border-box;
  103. }
  104. .dialog .body .select_field select
  105. {
  106. border: 1px solid #C0C0C0;
  107. background-color: white;
  108. border-radius: 2px;
  109. padding: 2px 4px 2px 2px;
  110. width: 100%;
  111. box-sizing: border-box;
  112. }
  113. .dialog .body .list_field select
  114. {
  115. -webkit-appearance:none;
  116. -moz-appearance: none;
  117. font-size: 14px;
  118. padding: 2px 4px 2px 4px;
  119. background: white;
  120. border-radius: 2px;
  121. width: 100%;
  122. box-sizing: border-box;
  123. }
  124. .dialog .body .text_field label,
  125. .dialog .body .select_field label
  126. {
  127. display: block;
  128. }
  129. .dialog .body .checkbox_field label,
  130. .dialog .body .checkbox_field input
  131. {
  132. vertical-align: middle;
  133. }
  134. .dialog .body div input,
  135. .dialog .body div select
  136. {
  137. margin-top:2px;
  138. }
  139. .dialog .body pre
  140. {
  141. width: 100%;
  142. color: black;
  143. margin:0;
  144. box-sizing: border-box;
  145. }
  146. .dialog .body .code > input[type=text]
  147. {
  148. font-family: monospace;
  149. font-size: 14px;
  150. color: #404040;
  151. }
  152. .dialog .body span.row
  153. {
  154. display:block;
  155. text-align: left;
  156. }
  157. .dialog .body .radio_buttons > input[type='radio']
  158. {
  159. float: left;
  160. clear: both;
  161. line-height: 20px;
  162. }
  163. .dialog .body .radio_buttons > label
  164. {
  165. float: left;
  166. line-height: 20px;
  167. margin-left: 2px;
  168. }
  169. .dialog .footer > button
  170. {
  171. margin-left:4px;
  172. margin-right:4px;
  173. }
  174. .dialog .body.confirm,
  175. .dialog .body.info,
  176. .dialog .body.error
  177. {
  178. text-align: center;
  179. display:flex;
  180. justify-content: center;
  181. align-items: center;
  182. }
  183. .dialog .body.error span
  184. {
  185. color: #C00000;
  186. }
  187. .dialog .body.confirm span
  188. {
  189. color: #D00000;
  190. }
  191. .dialog input[type="text"]
  192. {
  193. border: 1px solid #C0C0C0;
  194. }
  195. .dialog .error
  196. {
  197. color: #C00000;
  198. }
  199. .dialog .block
  200. {
  201. display: block;
  202. text-align: center;
  203. }
  204. .dialog div.console
  205. {
  206. font-family: monospace;
  207. font-size: 14px;
  208. color: #404040;
  209. border: 1px solid #C0C0C0;
  210. border-radius: 2px;
  211. padding: 2px 4px 2px 2px;
  212. width: 100%;
  213. box-sizing: border-box;
  214. overflow: auto;
  215. }
  216. .dialog div.console div.info
  217. {
  218. color: #808080;
  219. }
  220. .dialog div.console div.warn
  221. {
  222. color: #C0C000;
  223. }
  224. .dialog div.console div.error
  225. {
  226. color: #C00000;
  227. }
  228. @keyframes fade_in_dialog
  229. {
  230. 0% {opacity: 0; visibility: visible; }
  231. 100% {opacity: 1; }
  232. }
  233. @keyframes fade_in_curtain
  234. {
  235. 0% {opacity: 0; visibility: visible; }
  236. 100% {opacity: 0.4; }
  237. }