common.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .chat-card {
  2. padding: 12px;
  3. display: flex;
  4. justify-content: flex-start;
  5. $size: 42px;
  6. --avatar-size: 42px;
  7. &.left {
  8. flex-direction: row;
  9. .chat-card__avatar {
  10. margin-right: 8px;
  11. image {
  12. width: 90%;
  13. height: 90%;
  14. }
  15. }
  16. .chat-card__content {
  17. width: calc(90% - var(--avatar-size));
  18. border-color: #1B4F34;
  19. }
  20. }
  21. &.right {
  22. flex-direction: row-reverse;
  23. .chat-card__avatar {
  24. margin-left: 8px;
  25. }
  26. .chat-card__content {
  27. border-color: #38FF6E;
  28. }
  29. }
  30. &__avatar {
  31. flex: none;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. width: $size;
  36. height: $size;
  37. border-radius: 50%;
  38. }
  39. &__content {
  40. max-width: calc(80% - $size);
  41. background-color: rgba(255, 255, 255, 0.04);
  42. border-radius: 8px;
  43. border-width: 1px;
  44. border-style: solid;
  45. overflow: hidden;
  46. }
  47. &__handle {
  48. display: flex;
  49. flex-direction: row;
  50. justify-content: space-evenly;
  51. margin: 12px 0;
  52. &.disabled {
  53. opacity: 0.5;
  54. }
  55. .item {
  56. position: relative;
  57. width: 190 * 0.5px;
  58. height: 54 * 0.5px;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. text-align: center;
  63. font-size: 12px;
  64. color: var(--primary-color);
  65. image {
  66. position: absolute;
  67. top: 0;
  68. left: 0;
  69. width: 100%;
  70. height: 100%;
  71. }
  72. }
  73. }
  74. }
  75. .loading {
  76. --td-loading-color: #38FF6E;
  77. align-self: center;
  78. margin: 0 8px;
  79. }