jquery.mloading.less 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* Author:mingyuhisoft@163.com
  2. * Github:https://github.com/imingyu/jquery.mloading
  3. * Npm:npm install jquery.mloading.js
  4. * Date:2016-7-4
  5. */
  6. .mloading-container {
  7. position: relative;
  8. min-height: 70px;
  9. -webkit-transition: height .6s ease-in-out;
  10. -o-transition: height .6s ease-in-out;
  11. transition: height .6s ease-in-out;
  12. }
  13. .mloading {
  14. position: absolute;
  15. background: #E9E9E8;
  16. font: normal 12px/22px "Microsoft Yahei","微软雅黑","宋体";
  17. display: none;
  18. z-index: 1600;
  19. background: rgba(233, 233, 232,0);
  20. &.active{
  21. display: block;
  22. }
  23. &.mloading-mask{
  24. background: rgba(233, 233, 232,0.75);
  25. filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75);
  26. }
  27. }
  28. .mloading-full{
  29. position: fixed;
  30. width:100%;
  31. height: 100%;
  32. top:0;
  33. left: 0;
  34. }
  35. .mloading-container > .mloading {
  36. top: 0px;
  37. left: 0px;
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .mloading-body {
  42. width: 100%;
  43. height: 100%;
  44. position: relative;
  45. }
  46. .mloading-bar {
  47. width: 250px;
  48. min-height: 22px;
  49. text-align: center;
  50. background: #fff;
  51. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.27);
  52. border-radius: 7px;
  53. padding: 20px 15px;
  54. font-size: 14px;
  55. color: #999;
  56. position: absolute;
  57. top: 50%;
  58. left: 50%;
  59. margin-left: -140px;
  60. margin-top: -30px;
  61. word-break: break-all;
  62. @media (max-width:300px) {
  63. width: 62px;
  64. height: 56px;
  65. margin-left: -30px !important;
  66. margin-top: -30px !important;
  67. padding: 0;
  68. line-height:56px;
  69. &> .mloading-text{
  70. display: none;
  71. }
  72. }
  73. }
  74. .mloading-bar-sm {
  75. width: 62px;
  76. height: 56px;
  77. margin-left: -30px !important;
  78. margin-top: -30px !important;
  79. padding: 0;
  80. line-height:56px;
  81. }
  82. .mloading-bar-sm > .mloading-text {
  83. display: none;
  84. }
  85. .mloading-icon {
  86. width: 16px;
  87. height: 16px;
  88. vertical-align: middle;
  89. }
  90. .mloading-text {
  91. margin-left: 10px;
  92. }