style.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. .msg-repeal-item{
  2. // padding: 7px 7px 0;
  3. text-align: center;
  4. font-size: 12px;
  5. line-height: 20px;
  6. }
  7. .msg-item {
  8. padding: 0 7px;
  9. margin: 10px 0;
  10. user-select:none;
  11. &.active{
  12. animation: blink 3s ease;
  13. }
  14. &:hover {
  15. .toolbtn {
  16. display: block;
  17. }
  18. .time {
  19. visibility: visible;
  20. }
  21. }
  22. pre {
  23. text-align: left;
  24. margin: 0;
  25. font-family: inherit;
  26. font-size: inherit;
  27. white-space: pre-wrap;
  28. word-break: normal;
  29. -ms-word-break: break-all;
  30. word-break: break-all;
  31. }
  32. .avatar {
  33. width: 32px;
  34. height: 32px;
  35. margin-top: 4px;
  36. line-height: 32px;
  37. text-align: center;
  38. border-radius: 3px;
  39. cursor: pointer;
  40. &::before {
  41. content: attr(data-name);
  42. color: #ffffff;
  43. font-size: 14px;
  44. }
  45. }
  46. .bubble {
  47. min-height: 1em;
  48. max-width: 100%;
  49. display: inline-block;
  50. vertical-align: top;
  51. position: relative;
  52. text-align: left;
  53. font-size: 14px;
  54. border-radius: 3px;
  55. line-height: 1.6;
  56. padding: 8px 10px;
  57. margin-top: 4px;
  58. &::before {
  59. position: absolute;
  60. width: 0;
  61. height: 0;
  62. top: 14px;
  63. border: 6px solid transparent;
  64. content: "";
  65. }
  66. a {
  67. word-break: break-all;
  68. }
  69. }
  70. .metabar {
  71. position: relative;
  72. }
  73. .admin{
  74. font-size: 12px;
  75. color: #999999;
  76. i{
  77. display: inline-block;
  78. vertical-align: top;
  79. }
  80. .el-icon-star-on{
  81. color: #f5ab5c;
  82. font-size: 12px;
  83. }
  84. .icon-creator{
  85. background: url('../../assets/icon-creater.png') no-repeat;
  86. width: 12px;
  87. height: 11px;
  88. background-size: 100%;
  89. }
  90. }
  91. .time {
  92. float: left;
  93. visibility: hidden;
  94. margin-left: 10px;
  95. font-size: 12px;
  96. line-height: 14px;
  97. color: #bababa;
  98. vertical-align: top;
  99. }
  100. .name {
  101. float: left;
  102. font-size: 12px;
  103. color: #999999;
  104. vertical-align: top;
  105. }
  106. .content {
  107. position: relative;
  108. min-height: 40px;
  109. max-width: 80%;
  110. }
  111. .toolbtn {
  112. position: absolute;
  113. right: -30px;
  114. bottom: 0;
  115. width: 23px;
  116. height: 17px;
  117. background: url("./img/chat-item-icon.png") no-repeat;
  118. display: none;
  119. cursor: pointer;
  120. box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
  121. &:hover {
  122. opacity: 0.6;
  123. }
  124. }
  125. .toolbar {
  126. position: absolute;
  127. background: #ffffff;
  128. border-radius: 5px;
  129. overflow: hidden;
  130. box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
  131. z-index: 11;
  132. width: 60px;
  133. user-select: none;
  134. li {
  135. width: 60px;
  136. line-height: 36px;
  137. text-align: center;
  138. font-size: 14px;
  139. color: #333333;
  140. position: relative;
  141. cursor: pointer;
  142. &.split-line{
  143. &:after {
  144. content: "";
  145. height: 1px;
  146. left: 5px;
  147. right: 5px;
  148. bottom: 0;
  149. position: absolute;
  150. background: #dfdfdf;
  151. }
  152. }
  153. &:hover {
  154. background: #dfdfdf;
  155. }
  156. }
  157. }
  158. }
  159. .you {
  160. .loading-icon{
  161. right: -24px;
  162. }
  163. .error-icon{
  164. right: -24px;
  165. }
  166. .avatar {
  167. float: left;
  168. }
  169. .content {
  170. float: left;
  171. margin-left: 12px;
  172. }
  173. .admin{
  174. float: left;
  175. margin-left: 4px;
  176. }
  177. .bubble {
  178. background-color: #ffffff;
  179. &::before {
  180. top: 12px;
  181. border-right-color: #ffffff;
  182. border-right-width: 6px;
  183. right: 100%;
  184. }
  185. &.focus{
  186. background-color: #fafafa;
  187. &::before{
  188. border-right-color: #fafafa;
  189. }
  190. }
  191. }
  192. }
  193. .me {
  194. .admin{
  195. float: right;
  196. margin-right: 4px;
  197. }
  198. .loading-icon{
  199. left: -24px;
  200. }
  201. .error-icon{
  202. left: -24px;
  203. }
  204. .avatar {
  205. float: right;
  206. }
  207. .time {
  208. float: right;
  209. margin-right: 10px;
  210. }
  211. .name{
  212. float: right;
  213. }
  214. .link {
  215. color: #005392;
  216. cursor: pointer;
  217. &:hover {
  218. text-decoration: underline;
  219. }
  220. }
  221. .content {
  222. float: right;
  223. margin-right: 12px;
  224. text-align: right;
  225. }
  226. .bubble {
  227. background-color: #83c0ee;
  228. &::before {
  229. top: 6px;
  230. border-left-color: #83c0ee;
  231. border-left-width: 6px;
  232. left: 100%;
  233. }
  234. &.focus{
  235. background-color: #4fa8eb;
  236. &::before{
  237. border-left-color: #4fa8eb;
  238. }
  239. }
  240. }
  241. .toolbtn {
  242. right: initial;
  243. left: -30px;
  244. }
  245. }
  246. .loading-icon{
  247. position: absolute;
  248. background: url('../../assets/msg-loading-icon.png') no-repeat;
  249. background-size: 100%;
  250. width: 20px;
  251. height: 20px;
  252. top: 50%;
  253. margin-top: -10px;
  254. animation: rotate 2s linear infinite;
  255. }
  256. .error-icon{
  257. position: absolute;
  258. background: url('../../assets/msg-error-icon.png') no-repeat;
  259. background-size: 100%;
  260. width: 20px;
  261. height: 20px;
  262. top: 50%;
  263. margin-top: -10px;
  264. cursor: pointer;
  265. }
  266. .img-msg{
  267. display: block;
  268. max-width: 100%;
  269. max-height: 250px;
  270. width: auto;
  271. height: auto;
  272. border-radius: 4px;
  273. cursor: pointer;
  274. }
  275. .video-msg{
  276. display: block;
  277. max-width: 100%;
  278. max-height: 300px;
  279. border-radius: 4px;
  280. &.limit-height{
  281. width: 100%;
  282. height: 50px;
  283. }
  284. }
  285. @keyframes blink{
  286. 0%,50%,100%{
  287. background: rgba(0, 0, 0,0.03)
  288. }
  289. 25%,75%{
  290. background: rgba(0, 0, 0, 0.08)
  291. }
  292. }