dm.css 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* danmu's css */
  2. #dm{
  3. position: fixed;
  4. width: 70%;
  5. height: 160px;
  6. left: 10px;
  7. top: 30px;
  8. z-index: 9999;
  9. pointer-events: none;
  10. font-size: 16px;
  11. }
  12. #dm .dm-item{
  13. position: absolute;
  14. left: 0;
  15. background-color: rgba(0, 0, 0, .3);
  16. border-radius: 15px;
  17. opacity: 0;
  18. pointer-events: auto;
  19. }
  20. #dm .dm-item.new{
  21. background-color: rgba(113, 131, 8, 0.3);
  22. }
  23. #dm .dm-item .avatar{
  24. float: left;
  25. margin-right: 5px;
  26. }
  27. #dm .dm-item .avatar img{
  28. height: 30px;
  29. width: 30px;
  30. border-radius: 50%;
  31. }
  32. #dm .dm-item .avatar span{
  33. word-break: break-word;
  34. font-size: 1em;
  35. color: #fff;
  36. padding: 0 3px;
  37. }
  38. #dm .dm-item .txt{
  39. word-break: break-word;
  40. color: #fff;
  41. font-size: .9em;
  42. line-height: 1.3em;
  43. padding: 5px 5px 5px 0px;
  44. overflow: hidden;
  45. zoom: 1;
  46. }
  47. #dm .dm-item .dm-wrap{ display: inline-block; }
  48. /*
  49. #dm-switch{
  50. display: none;
  51. bottom: 0;
  52. right: 0;
  53. z-index: 999;
  54. height: 50px;
  55. width: 50px;
  56. position: fixed;
  57. background-color:#f06;
  58. }
  59. #dm-switch .dm-switch-icon{
  60. position: relative;
  61. top: 5px;
  62. left: 5px;
  63. width: 40px;
  64. height: 40px;
  65. background-image: url('../image/icon/ic_danmu_off_normal.png');
  66. background-repeat: no-repeat;
  67. background-position: 0 0;
  68. background-size: 40px 40px;
  69. }
  70. #dm-switch .dm-switch-icon.open{
  71. background-image: url('../image/icon/ic_danmu_on_normal.png');
  72. background-repeat: no-repeat;
  73. background-position: 0 0;
  74. background-size: 40px 40px;
  75. }*/