mobile.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. a, img {
  2. }
  3. body {
  4. margin: 0;
  5. -webkit-user-select: none;
  6. user-select: none;
  7. -ms-touch-action: none;
  8. }
  9. /* construction */
  10. html, body, .page {
  11. height: 100%; width: 100%;max-width: 768px;max-height: 1024px;
  12. overflow: hidden;
  13. }
  14. .page {
  15. position: absolute; left: 0; top: 0;
  16. }
  17. .out {
  18. display: none;
  19. }
  20. .in, .out {
  21. -webkit-animation-fill-mode: both;
  22. animation-fill-mode: both;
  23. }
  24. .in {
  25. -webkit-animation-timing-function: ease-out;
  26. -webkit-animation-duration: 350ms;
  27. animation-timing-function: ease-out;
  28. animation-duration: 350ms;
  29. }
  30. .out {
  31. -webkit-animation-timing-function: ease-in;
  32. -webkit-animation-duration: 225ms;
  33. animation-timing-function: ease-in;
  34. animation-duration: 225ms;
  35. }
  36. /* mask layer when ajax sending... */
  37. .mask {
  38. height: 100%; width: 100%;
  39. background-color: rgba(255,255,255,.35);
  40. position: absolute;
  41. z-index: 9;
  42. }
  43. .loading-bg{width: 100%;height: 100%;background-color:#C8C7CC;position: fixed;left: 0;top: 0;z-index: 999;}
  44. .loading-bg:after{content: 'loading...';position: absolute;left: 50%;top: 55%;-webkit-transform: translateX(-45%);}
  45. .loading { /* more info: http://www.zhangxinxu.com/wordpress/?p=3357 */
  46. width: 3px; height:3px;
  47. border-radius: 100%;
  48. box-shadow: 0 -10px 0 1px currentColor, /* top, 1px expand */
  49. 10px 0px currentColor, /* right */
  50. 0 10px currentColor, /* bottom */
  51. -10px 0 currentColor, /* left */
  52. -7px -7px 0 .5px currentColor, /* left-top, 0.5px expand */
  53. 7px -7px 0 1.5px currentColor, /* right-top, 1.5px expand */
  54. 7px 7px currentColor, /* right-bottom */
  55. -7px 7px currentColor; /* left-bottom */
  56. -webkit-animation: loading 1s step-start infinite;
  57. animation: loading 1s step-start infinite;
  58. /*center*/
  59. position: absolute;
  60. top: 0; right: 0; bottom: 0; left: 0;
  61. margin: auto;
  62. }
  63. /* Default animation - slide, you can visit 'src/mobilebone.aniamte.css' to get more styles of animation */
  64. .slide.in {
  65. -webkit-animation-name: slideinfromright;
  66. animation-name: slideinfromright;
  67. }
  68. .slide.out {
  69. -webkit-animation-name: slideouttoleft;
  70. animation-name: slideouttoleft;
  71. }
  72. .slide.reverse.out {
  73. -webkit-animation-name: slideouttoright;
  74. animation-name: slideouttoright;
  75. }
  76. .slide.reverse.in {
  77. -webkit-animation-name: slideinfromleft;
  78. animation-name: slideinfromleft;
  79. }
  80. /* keyframes for slidein from sides */
  81. @-webkit-keyframes slideinfromright {
  82. from { -webkit-transform: translate3d(100%,0,0); }
  83. to { -webkit-transform: translate3d(0,0,0); }
  84. }
  85. @keyframes slideinfromright {
  86. from { transform: translateX(100%); }
  87. to { transform: translateX(0); }
  88. }
  89. @-webkit-keyframes slideinfromleft {
  90. from { -webkit-transform: translate3d(-100%,0,0); }
  91. to { -webkit-transform: translate3d(0,0,0); }
  92. }
  93. @keyframes slideinfromleft {
  94. from { transform: translateX(-100%); }
  95. to { transform: translateX(0); }
  96. }
  97. /* keyframes for slideout to sides */
  98. @-webkit-keyframes slideouttoleft {
  99. from { -webkit-transform: translate3d(0,0,0); }
  100. to { -webkit-transform: translate3d(-100%,0,0); }
  101. }
  102. @keyframes slideouttoleft {
  103. from { transform: translateX(0); }
  104. to { transform: translateX(-100%); }
  105. }
  106. @-webkit-keyframes slideouttoright {
  107. from { -webkit-transform: translate3d(0,0,0); }
  108. to { -webkit-transform: translate3d(100%,0,0); }
  109. }
  110. @keyframes slideouttoright {
  111. from { transform: translateX(0); }
  112. to { transform: translateX(100%); }
  113. }
  114. /* chrysanthemum loading effect */
  115. @-webkit-keyframes spin {
  116. 0% { -webkit-transform: rotate(0deg); }
  117. 100% { -webkit-transform: rotate(360deg); }
  118. }
  119. @keyframes spin {
  120. 0% { transform: rotate(0deg); }
  121. 100% { transform: rotate(360deg); }
  122. }