absolute.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* wechat.css */
  2. body {
  3. margin: 0;
  4. -webkit-user-select: none;
  5. user-select: none;
  6. -ms-touch-action: none;
  7. }
  8. /* construction */
  9. html, body, .page {
  10. height: 100%; width: 100%;
  11. overflow: hidden;
  12. }
  13. .page {
  14. position: absolute; left: 0; top: 0;
  15. }
  16. body { background-color: #ebebeb; font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif; }
  17. a { text-decoration: none; -webkit-tap-highlight-color: rgba(0,0,0,0); }
  18. h1,h2,h3,h4,h5,h6{ margin: 0; font-weight: 400; }
  19. ul,ol{ margin: 0; list-style-type: none; }
  20. .header, .footer, .content { position: absolute; left: 0; right: 0; }
  21. .header { height: 48px; padding: 0 5px; background-color: #21292B; color: #fff; top: 0; z-index: 1; }
  22. .header > h1 { line-height: 48px; margin: 0 0 0 10px; font-size: 18px; float: left; }
  23. .header > a { display: inline-block; width: 48px; height: 48px; background-size: 48px 144px; text-indent: -9em; overflow: hidden; }
  24. .header > .icon-search, .header > .icon-add { float: right; }
  25. .footer { height: 52px; border-top: 1px solid #dfdfdf; background-color: #fcfcfc; bottom: 0; z-index: 1; }
  26. .footer > a { width: 50%; text-align: center; color: #999; float: left; font-size: 14px; }
  27. .footer > a > i { display: block; height: 35px; margin-bottom: -3px; background-size: 35px 280px; }
  28. .footer > .active { color: #45c018; }
  29. .content { top: 48px; bottom: 53px; overflow: auto; }
  30. .icon-search, .icon-back, .icon-add { background: url(http://img.mukewang.com/547d339b000188bb00960288.png) no-repeat; }
  31. .icon-back { background-position: 0 -96px; }
  32. .icon-add { background-position: 0 -48px; }
  33. .icon-wechat, .icon-contacts, .icon-finds, .icon-mes { background: url(http://img.mukewang.com/547d33970001444d00700560.png) no-repeat center top; }
  34. .active .icon-wechat { background-position: center -35px; }
  35. .icon-contacts { background-position: center -70px; }
  36. .active .icon-contacts { background-position: center -105px; }
  37. .icon-finds { background-position: center -140px; }
  38. .active .icon-finds { background-position: center -175px; }
  39. .icon-mes { background-position: center -210px; }
  40. .active .icon-mes { background-position: center -245px; }
  41. .icon-find { background: url(icon-find.png) no-repeat; background-size: 28px 210px; }
  42. .icon-find-2 { background-position: 0 -30px; }
  43. .icon-find-3 { background-position: 0 -60px; }
  44. .icon-find-4 { background-position: 0 -90px; }
  45. .icon-find-5 { background-position: 0 -120px; }
  46. .icon-find-6 { background-position: 0 -150px; }
  47. .icon-find-7 { background-position: 0 -180px; }
  48. .icon-me { background: url(icon-me.png) no-repeat; background-size: 28px 120px; }
  49. .icon-me-2 { background-position: 0 -30px; }
  50. .icon-me-3 { background-position: 0 -60px; }
  51. .icon-me-4 { background-position: 0 -90px; }
  52. .wechat-list { display: block; height: 112px; padding: 8px 12px; box-sizing: border-box; border-bottom: 1px solid #d7d7d7; background-color: #fff; }
  53. .wechat-list:last-child { border-bottom: 0; }
  54. .wechat-list > img { width: 96px; height: 96px; float: left; }
  55. .wechat-list > .cell { padding-left: 106px; line-height: 24px; color: #333; }
  56. .wechat-h-time { overflow: hidden; }
  57. .wechat-h-time > h5 { font-size: 100%; float: left; }
  58. .wechat-h-time > time { font-size: 12px; color: #b9b9b9; float: right; }
  59. .wechat-h-time .business { color: #54688D; }
  60. .wechat-h-time + p { margin: 0 20px 0 0; font-size: 14px; color: #a8a8a8; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
  61. .wechat-detail { position: relative; z-index: 1; }