style.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /* 外层模块 */
  2. .layout-chat{
  3. padding: 0 14px;
  4. margin-bottom: 24px;
  5. }
  6. /* 外层模块 */
  7. /* 用户头像 */
  8. .layout-chat-avatar{
  9. @include square(40px);
  10. }
  11. /* 用户头像 */
  12. /* 内容 */
  13. .layout-chat-content{
  14. margin-left: 6px;
  15. min-height: 40px;
  16. padding-left: 10px;
  17. }
  18. .layout-chat-message{
  19. padding: 7px 10px;
  20. min-height: 28px;
  21. background-color: rgba(255,255,255,0.1);
  22. border-radius: 5px;
  23. font-size: 12px;
  24. line-height: 20px;
  25. }
  26. .layout-chat-icon{
  27. fill: rgba(255,255,255,0.1);
  28. @include square(13px);
  29. left: 0;
  30. top: 9px;
  31. }
  32. .layout-chat-message:before {
  33. content:'';
  34. width: 0;
  35. height: 0;
  36. position: absolute;
  37. left: -10px;
  38. top:8px;
  39. border: 4px solid transparent;
  40. border-right: 6px solid rgba(255,255,255,0.1);
  41. }
  42. .layout-chat-message{
  43. -webkit-user-select:auto; /*webkit浏览器*/
  44. -khtml-user-select:auto; /*早期浏览器*/
  45. -moz-user-select:auto;/*火狐*/
  46. -ms-user-select:auto; /*IE10*/
  47. user-select:auto;
  48. }
  49. /* 内容 */
  50. /* right 方向 */
  51. .layout-chat-reverse{
  52. flex-direction: row-reverse;
  53. }
  54. .layout-chat-reverse .layout-chat-content{
  55. justify-content: flex-end;
  56. margin-left: 0;
  57. margin-right: 6px;
  58. }
  59. .layout-chat-reverse .layout-chat-content{
  60. padding-left: 0;
  61. padding-right: 10px;
  62. }
  63. .layout-chat-reverse .layout-chat-message:before{
  64. right: -10px;
  65. left: auto;
  66. border-right: 4px solid transparent;
  67. border-left: 6px solid rgba(255,255,255,0.1);
  68. }
  69. /* right 方向 */
  70. /* 礼物 */
  71. .layout-chat-close-icon{
  72. font-size: 14px;
  73. transform: scale(0.6) translateY(3px);
  74. }
  75. .layout-chat-gift-name{
  76. color: #FF9D62;
  77. }
  78. .layout-chat-gift{
  79. @include square(25px);
  80. }
  81. .layout-chat-gift-name,.layout-chat-gift{
  82. margin-left: 5px;
  83. }
  84. /* 礼物 */