_ui.dialog.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. @charset "utf-8";
  2. /*
  3. * @file: dialog基础UI组件
  4. * @update: 2015-06-05 16:45:13
  5. */
  6. /*
  7. * 默认dialog
  8. * @base
  9. */
  10. $close-icon-width: 46px; // 关闭按钮宽度
  11. $close-icon-height: 44px; // 关闭按钮高度
  12. $close-icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAsCAMAAAAtr3oOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAOVBMVEX////19fX+/v7y8vX///+oqKjz8/Xz8/b09Pb09Pf19ff29vj39/n4+Pn4+Pr5+fr5+fv6+vsAAABX36Q3AAAAA3RSTlPmTOc1ux8eAAAAAWJLR0QSe7xsAAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAIhJREFUSMft0tsKgDAIBmArbZ0P7/+yERHF/B1JDLrIu8GHuF+p4udFBXk4lz7OP//5ay5iv1D3u4g1GuYySsPZT6U1/urhgDaS2SXSVpAiUJu5Y81U+7oH3+zB0EYywdI492BquNUmlYm+mTaZoLrImKeLOh/vs/IhKx99fPLxOStffHz9EN8Aw/wgV5BHry4AAAAASUVORK5CYII="; // 关闭按钮背景图片链接地址
  13. $close-icon-hover: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAsCAMAAAAtr3oOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAOVBMVEX////19fX+/v7y8vX////MzMzz8/Xz8/b09Pb09Pf19ff29vj39/n4+Pn4+Pr5+fr5+fv6+vsAAABAtFMnAAAAA3RSTlPmTOc1ux8eAAAAAWJLR0QSe7xsAAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAIhJREFUSMft0tsKgDAIBmArbZ0P7/+yERHF/B1JDLrIu8GHuF+p4udFBXk4lz7OP//5ay5iv1D3u4g1GuYySsPZT6U1/urhgDaS2SXSVpAiUJu5Y81U+7oH3+zB0EYywdI492BquNUmlYm+mTaZoLrImKeLOh/vs/IhKx99fPLxOStffHz9EN8Aw/wgV5BHry4AAAAASUVORK5CYII="; // 关闭按钮hover背景图链接地址
  14. .ui-dialog {
  15. outline: none;
  16. }
  17. .ui-dialog-close {
  18. position: absolute;
  19. right: 0;
  20. z-index: 9;
  21. width: $close-icon-width;
  22. height: 0;
  23. padding-top: $close-icon-height;
  24. overflow: hidden;
  25. background-image: url($close-icon);
  26. background-repeat: no-repeat;
  27. border-top-right-radius: 4px;
  28. &:hover {
  29. background-image: url($close-icon-hover);
  30. }
  31. }
  32. .ui-dialog__hd {
  33. position: relative;
  34. height: 22px;
  35. padding: 12px;
  36. border-bottom: 1px solid #f2f2f5;
  37. line-height: 22px;
  38. background-color: #fff;
  39. border-radius: 4px 4px 0 0;
  40. }
  41. .ui-dialog__tit {
  42. float: left;
  43. margin-right: 10px;
  44. font-size: 16px;
  45. font-weight: 700;
  46. }
  47. .ui-dialog__meta {
  48. font-size: 12px;
  49. color: #999;
  50. }
  51. .ui-dialog__bd {
  52. background-color: #fff;
  53. border-radius: 0 0 4px 4px;
  54. }
  55. /*
  56. * 带半透明边框dialog
  57. * @extend: border
  58. */
  59. $border-width: 5px; // 边框大小
  60. $radius: 4px; // 边框圆角
  61. .ui-dialog {
  62. &.ext-border {
  63. padding: $border-width;
  64. border-radius: $radius;
  65. background-color: rgba(0, 0, 0, .2);
  66. .ui-dialog-close {
  67. right: $border-width;
  68. }
  69. }
  70. }