dialog.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /**
  2. * IBM Confidential
  3. * OCO Source Materials
  4. * IBM Business Platform: Dashboard
  5. * (C) Copyright IBM Corp. 2018, 2020
  6. * The source code for this program is not published or otherwise divested of its trade secrets,
  7. * irrespective of what has been deposited with the U.S. Copyright Office
  8. **/
  9. @import "../lib/@ba-ui-toolkit/essentials/_essentials.scss";
  10. html {
  11. .glass {
  12. .dialogBlocker {
  13. .modelDialogBlockerCell {
  14. width: 100%;
  15. }
  16. }
  17. }
  18. }
  19. %blocker {
  20. @include absolute-position(0, 0, 0, 0);
  21. height: 100%;
  22. width: 100%;
  23. display: none;
  24. text-align: center;
  25. @include theming(background-color, ui-background);
  26. border: none;
  27. z-index: 3000;
  28. overflow: auto;
  29. }
  30. .dialogBlocker {
  31. @extend %blocker;
  32. }
  33. .loadingBlocker {
  34. @extend %blocker;
  35. display: flex;
  36. @include theming(background-color, ui-01);
  37. }
  38. .dialogBlocker.transparent {
  39. background-color: transparent;
  40. }
  41. .dialogBlocker.show {
  42. display: table;
  43. }
  44. .dialogBlockerCell {
  45. display: block;
  46. margin-top: 10vmin;
  47. margin-right: auto;
  48. margin-left: auto;
  49. text-align: center;
  50. }
  51. .dialogVerticalAlign {
  52. position: relative;
  53. top: 50%;
  54. -webkit-transform: translateY(-50%);
  55. -ms-transform: translateY(-50%);
  56. transform: translateY(-50%);
  57. margin-top: auto;
  58. margin-bottom: auto;
  59. }
  60. .modalDialog {
  61. display: inline-block;
  62. text-align: left;
  63. @include theming(background-color, ui-01);
  64. &[dir="rtl"] {
  65. text-align: right;
  66. }
  67. }
  68. .modalDialog .dialogHeader {
  69. position: relative;
  70. }
  71. .dialogHeader header {
  72. border-bottom: 1px solid;
  73. @include theming(border-bottom, ui-03);
  74. padding: 21px 24px;
  75. line-height: 100%;
  76. height: 65px;
  77. text-align: center;
  78. @include theming(color, text-01);
  79. font-weight: $fw-medium;
  80. font-style: normal;
  81. @include theming(background-color, ui-01);
  82. font-size: $heading-size-s;
  83. }
  84. .dialogContent {
  85. min-height: 100px;
  86. }
  87. .dialogButton {
  88. display: inline-block;
  89. text-align: center;
  90. cursor: pointer;
  91. @include theming(color, interactive-01);
  92. width: auto;
  93. min-width: 90px;
  94. padding: 0px;
  95. margin: 0px;
  96. height: 36px;
  97. @include theming(background-color, ui-01);
  98. }
  99. /* set primary button style */
  100. .dialogButton.primary {
  101. @include theming(color, ui-01);
  102. @include theming(background-color, interactive-01);
  103. padding-left: 32px;
  104. padding-right: 32px;
  105. margin: 0px 16px 20px 0px;
  106. border-width: 2px;
  107. border-style: solid;
  108. @include theming(border-color, interactive-01);
  109. &[dir="rtl"] {
  110. margin: 0px 0px 20px 16px;
  111. }
  112. &:hover {
  113. @include theming(color, ui-01);
  114. @include theming(background-color, hover-primary);
  115. }
  116. &:focus {
  117. @include theming(outline-color, focus);
  118. outline-style: solid;
  119. outline-width: 2px;
  120. }
  121. &:active {
  122. @include theming(color, ui-01);
  123. @include theming(background-color, active-primary);
  124. border-width: 2px;
  125. border-style: solid;
  126. @include theming(border-color, active-primary);
  127. }
  128. &.selected {
  129. @include theming(color, ui-01);
  130. @include theming(background-color, interactive-01);
  131. }
  132. &.disabled,
  133. &:disabled {
  134. @include theming(background-color, disabled-02);
  135. }
  136. }
  137. /* set secondary button style */
  138. .dialogButton.secondary {
  139. @include theming(background-color, interactive-02);
  140. @include theming(color, ui-01);
  141. margin: 0px;
  142. display: inline-block;
  143. border-width: 2px;
  144. border-style: solid;
  145. @include theming(border-color, interactive-02);
  146. &:hover {
  147. @include theming(background-color, hover-secondary);
  148. @include theming(color, ui-01);
  149. }
  150. &:focus {
  151. @include theming(outline-color, focus);
  152. outline-style: solid;
  153. outline-width: 2px;
  154. }
  155. &:active {
  156. @include theming(color, ui-01);
  157. @include theming(background-color, active-secondary);
  158. border-width: 2px;
  159. border-style: solid;
  160. @include theming(border-color, active-secondary);
  161. }
  162. &.selected {
  163. @include theming(background-color, selected-ui);
  164. }
  165. &.disabled,
  166. &:disabled {
  167. @include theming(background-color, disabled-02);
  168. cursor: default;
  169. }
  170. }
  171. .dashboardMessageBox {
  172. min-height: 40px;
  173. padding-left: 40px;
  174. margin: 10px;
  175. white-space: pre-wrap;
  176. word-wrap: break-word;
  177. @include user-select(text);
  178. &[dir="rtl"] {
  179. padding-left: 0px;
  180. padding-right: 40px;
  181. }
  182. &.info {
  183. background: url(icons/mb_info.png) no-repeat;
  184. }
  185. &.warning {
  186. background: url(icons/mb_warning.png) no-repeat;
  187. }
  188. &.error {
  189. background: url(../images/error.png) no-repeat;
  190. }
  191. &.selectableInfo {
  192. max-height: 500px;
  193. width: 65vw;
  194. white-space: pre;
  195. overflow-y: scroll;
  196. }
  197. &.editableInfo {
  198. max-height: 500px;
  199. height: 80vw;
  200. width: 65vw;
  201. white-space: pre;
  202. overflow-y: scroll;
  203. }
  204. &.none {
  205. margin: 0px;
  206. padding-left: 0px;
  207. padding-right: 0px;
  208. }
  209. }
  210. .blockerCenterContents {
  211. align-items: center !important;
  212. justify-content: center !important;
  213. }