main.css 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. @charset "UTF-8";
  2. /*通用模块*/
  3. /*通用组件*/
  4. .u-comment-arrow { position: absolute; right: 10px; top: 7px; width: 0; height: 0; border-width: 5px; border-style: solid; border-color: #666 transparent transparent; font-size: 0; line-height: 0; }
  5. /* 通用评论弹出层 */
  6. .u-comment-popupnote { display: none; background-color: rgba(36, 36, 36, 0.95); max-width: 80%; padding: 1em 5%; position: absolute; top: 50%; left: 50%; }
  7. .u-comment-popupnote p { color: #fff; text-align: center; }
  8. body { background-color: #F5F5F5; }
  9. ul { padding: 0px; margin: 0px; }
  10. /*评论样式*/
  11. .comment-wrapper { padding: 0 1em; height: 100%; }
  12. .comment-wrapper .comment-hd { position: absolute; top: 10px; left: 0px; height: 2em; width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0 10px; }
  13. .comment-wrapper .comment-hd .tab { display: -webkit-box; -webkit-box-orient: horizontal; border: 1px solid #3263A0; border-radius: 3px; }
  14. .comment-wrapper .comment-hd .tab > span { -webkit-box-flex: 1; display: block; text-align: center; height: 2em; line-height: 2em; color: #3264a0; font-size: .875em; }
  15. .comment-wrapper .comment-hd .tab > span:active { background-color: #D9E9FC; }
  16. .comment-wrapper .comment-hd .tab > span[class="selected"]:hover { background-color: #3263A0; }
  17. .comment-wrapper .comment-hd .tab :first-child { border-radius: 3px 0px 0px 3px; }
  18. .comment-wrapper .comment-hd .tab :last-child { border-radius: 0px 3px 3px 0px; }
  19. .comment-wrapper .comment-hd .tab > .selected { color: #fff; background-color: #3263A0; }
  20. .comment-wrapper .comment-bd { position: absolute; top: 2.5em; bottom: 44px; left: 0px; width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0 10px; }
  21. .commentList { overflow: hidden; min-height: 300px; }
  22. .commentList > li { padding: .5em 0 .7em; border-bottom: 1px solid #CCCCCC; position: relative; }
  23. .commentList > li:last-child { border-bottom: 0px solid #fff; }
  24. .commentList .hd { overflow: hidden; padding-bottom: .3em; position: relative; }
  25. .commentList .hd > .info { float: left; }
  26. .commentList .hd > .info .name { color: #666666; font-size: .875em; }
  27. .commentList .hd > .info .time { color: #C2C2C2; margin-left: 5px; font-size: .75em; }
  28. .commentList .hd > .action { position: absolute; top: 0px; right: 0px; }
  29. .commentList .hd > .action .zan { color: #C2C2C2; font-size: .75em; height: 20px; line-height: 20px; display: block; }
  30. .commentList .hd > .action .zan em { margin-right: 3px; }
  31. .commentList .hd > .action .zan-normal > .icon { background-position: 0 -65px; }
  32. .commentList .hd > .action .zan-active > .icon { background-position: 0 -20px; }
  33. .commentList .bd .cont > p { color: #333333; line-height: 1.4em; }
  34. .commentList .tooltip-layer { display: none; position: absolute; top: 0px; left: 50%; background-color: rgba(36, 36, 36, 0.95); z-index: 80; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; }
  35. .commentList .tooltip-layer .comment-action-bar { display: -webkit-box; -webkit-box-orient: horizontal; padding: 5px; }
  36. .commentList .tooltip-layer li { padding-top: 4px; height: 50px; width: 60px; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; color: #fff; -webkit-box-flex: 1; }
  37. .commentList .tooltip-layer li .text { display: block; text-align: center; font-size: .875em; }
  38. .commentList .tooltip-layer li:active { background-color: #242424; }
  39. .commentList .tooltip-layer .icon { width: 24px; height: 24px; background-image: url(../img/map-icon.png); background-repeat: none; -webkit-background-size: 50px 250px; background-size: 50px 250px; display: block; margin: 0 auto .4em; }
  40. .commentList .tooltip-layer .zan > .icon { background-position: 0 -85px; }
  41. .commentList .tooltip-layer .reply > .icon { background-position: 0 -40px; }
  42. .commentList .tooltip-layer .u-comment-arrow { border-width: 10px; position: absolute; top: auto; bottom: -20px; left: 50%; margin-left: -10px; border-color: rgba(36, 36, 36, 0.95) transparent transparent; }
  43. .commentList .tooltip-layer-bottom .u-comment-arrow { bottom: auto; top: -20px; border-color: transparent transparent rgba(36, 36, 36, 0.95) transparent; }
  44. .comment-replyList-ctn { margin: 10px 5px 0px; }
  45. .comment-replyList-ctn .comment-replyList { padding: 0 10px; border: 1px solid #C2C2C2; background-color: #FFFFFF; margin-bottom: .7em; }
  46. .comment-replyList-ctn .comment-replyList > li { padding: .5em 0; border-bottom: 1px solid #CCCCCC; position: relative; }
  47. .comment-replyList-ctn .comment-replyList > :last-child { border-bottom: 0px solid #ccc; }
  48. .comment-replyList-ctn .replyList-hd { overflow: hidden; padding-bottom: .3em; }
  49. .comment-replyList-ctn .replyList-hd > .info { float: left; }
  50. .comment-replyList-ctn .replyList-hd > .info .name { color: #666666; font-size: .875em; }
  51. .comment-replyList-ctn .replyList-hd > .info .time { color: #C2C2C2; margin-left: 5px; font-size: .75em; }
  52. .comment-replyList-ctn .replyList-hd > .action { float: right; }
  53. .comment-replyList-ctn .replyList-hd > .action .zan { color: #C2C2C2; font-size: .75em; }
  54. .comment-replyList-ctn .replyList-bd .cont > p { color: #333333; line-height: 1.4em; }
  55. .comment-replyList-ctn .comment-replyList-more { font-size: .812em; color: #666666; }
  56. .comment-replyList-ctn .comment-replyList-more > a { color: #3264a0; }
  57. .comment-post-ctn { position: absolute; bottom: 0px; left: 0px; background-color: #FFFFFF; width: 100%; padding: 0 1em; height: 43px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
  58. .comment-post-ctn > input { border: 1px solid #CCCCCC; padding: 0px; margin: 0px; box-sizing: border-box; height: 28px; margin-top: 7px; font-size: .875em; background-color: #F5F5F5; padding-left: 30px; }
  59. .comment-post-ctn > .icon { position: absolute; top: 10px; left: 1.4em; height: 20px; width: 20px; background-image: url(../img/map-icon.png); background-repeat: no-repeat; background-position: 0 3px; -webkit-background-size: 50px 250px; background-size: 50px 250px; }
  60. /* 评论发表页面样式 */
  61. .comment-post { padding: 1em 0; }
  62. .comment-post textarea { border: 1px #D0D0D0 solid; height: 10em; widows: 100%; }
  63. .comment-post .post-button { display: block; background-color: #3D669B; text-align: center; border-radius: 3px; }
  64. .comment-post .post-button input { display: block; background: none; border: none; color: #fff; width: 100%; height: 44px; line-height: 44px; padding: 0px; border-radius: 3px; }
  65. .comment-post .post-button:active { background-color: #3488E7; }
  66. .comment-wrapper--duowanapp .comment-hd .tab { border-color: #E5004D; }
  67. .comment-wrapper--duowanapp .comment-hd .tab span { color: #e40450; }
  68. .comment-wrapper--duowanapp .comment-hd .tab > .selected { background-color: #E5004D; }
  69. .comment-wrapper--duowanapp .comment-post .post-button { background-color: #E5004D; }