You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_dialog.scss 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .dialog {
  2. box-sizing: border-box;
  3. height: auto;
  4. min-height: 131px;
  5. overflow: visible;
  6. visibility: visible;
  7. width: 400px;
  8. h1, h2, h3, h4, h5, h6 {
  9. color: $auiDialogColor;
  10. }
  11. .aui {
  12. &-icon {
  13. color: $auiDialogColor;
  14. text-indent: -999em;
  15. &-small {
  16. width: 14px;
  17. height: 14px;
  18. &:before {
  19. color: inherit;
  20. font-family: "FontAwesome";
  21. font-size: 16px;
  22. -webkit-font-smoothing: antialiased;
  23. font-style: normal;
  24. font-weight: normal;
  25. left: 0;
  26. line-height: 1;
  27. margin-top: -8px;
  28. position: absolute;
  29. text-indent: 0;
  30. speak: none;
  31. top: 50%;
  32. }
  33. }
  34. }
  35. &-iconfont-close-dialog {
  36. cursor: pointer;
  37. right: 20px;
  38. position: absolute;
  39. top: -49px;
  40. &:before {
  41. content: "\f00d";
  42. }
  43. }
  44. &-dialog2 {
  45. &-header, &-footer {
  46. background-color: $auiDialogBg;
  47. border: none;
  48. }
  49. &-header {
  50. border-bottom: 1px solid $auiBorderColor;
  51. border-radius: 5px 5px 0 0;
  52. box-sizing: border-box;
  53. color: #333;
  54. display: table;
  55. font-weight: normal;
  56. height: em(58, 12);
  57. margin-top: -69px;
  58. padding: 0 20px;
  59. width: 100%;
  60. h2 {
  61. font-size: em(20, 12);
  62. font-weight: $dialogTitleFontWeight;
  63. color: $auiDialogColor;
  64. }
  65. &-main {
  66. display: table-cell;
  67. padding-right: 0;
  68. max-width: 400px;
  69. overflow: hidden;
  70. text-overflow: ellipsis;
  71. vertical-align: middle;
  72. white-space: nowrap;
  73. }
  74. }
  75. &-footer {
  76. border-top: 1px solid $auiBorderColor;
  77. border-radius: 0 0 5px 5px;
  78. box-sizing: border-box;
  79. height: 51px;
  80. overflow: hidden;
  81. padding: 10px 20px;
  82. width: 100%;
  83. &:empty {
  84. height: 5px;
  85. padding: 0;
  86. }
  87. }
  88. &-content {
  89. background-color: $auiDialogBg;
  90. box-sizing: border-box;
  91. color: $auiDialogColor;
  92. font-size: em(14, 12);
  93. overflow: auto;
  94. max-height: 100%;
  95. padding: 20px;
  96. p,span, h3 {
  97. font-weight: $labelFontWeight;
  98. }
  99. &:last-child {
  100. border-bottom-right-radius: 5px;
  101. border-bottom-left-radius: 5px;
  102. }
  103. &:first-child {
  104. border-top-right-radius: 5px;
  105. border-top-left-radius: 5px;
  106. }
  107. }
  108. }
  109. }
  110. .input-control {
  111. background-color: $auiDialogContentBg;
  112. color: $auiDialogColor;
  113. }
  114. .form-control:not(:last-child) {
  115. border-bottom: 1px solid $auiBorderColor;
  116. }
  117. }
  118. @media all and (max-width: 420px) {
  119. .aui-dialog2-small .aui-dialog2-content {
  120. height: 100%;
  121. }
  122. }
  123. .modal-dialog-form {
  124. margin-top: 5px !important;
  125. .input-control {
  126. background: $modalMockAKInputBackground;
  127. border: $modalMockAKInputBorder;
  128. color: inherit;
  129. }
  130. &-error {
  131. margin-bottom: 8px;
  132. }
  133. }
  134. .modal-dialog-footer {
  135. font-size: $modalButtonFontSize;
  136. }
  137. /**
  138. * Styling inline dialog errors.
  139. */
  140. .inline-dialog-error {
  141. margin-top: 16px;
  142. &-text {
  143. color: $dialogErrorText;
  144. margin-bottom: 8px;
  145. text-align: center;
  146. }
  147. &-button {
  148. display: block;
  149. margin: 16px auto 0 auto;
  150. }
  151. }