common.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. border-radius: 10px 0px 10px 10px;
  29. max-width: calc(90% - var(--avatar-size));
  30. }
  31. }
  32. &__avatar {
  33. flex: none;
  34. display: flex;
  35. justify-content: center;
  36. align-items: center;
  37. width: $size;
  38. height: $size;
  39. border-radius: 50%;
  40. }
  41. &__content {
  42. max-width: calc(80% - $size);
  43. // max-width: calc(90% - var(--avatar-size));
  44. // background-color: rgba(255, 255, 255, 0.04);
  45. background-color: white;
  46. border-radius: 0px 10px 10px 10px;
  47. border-width: 1px;
  48. // border-style: solid;
  49. overflow: hidden;
  50. }
  51. &__handle {
  52. display: flex;
  53. flex-direction: row;
  54. justify-content: space-evenly;
  55. margin: 12px 0;
  56. &.disabled {
  57. opacity: 0.5;
  58. }
  59. .item {
  60. position: relative;
  61. // width: 190 * 0.5px;
  62. width: 40%;
  63. height: 54 * 0.5px;
  64. display: flex;
  65. justify-content: center;
  66. align-items: center;
  67. text-align: center;
  68. font-size: 12px;
  69. // color: var(--primary-color);
  70. color: #fff;
  71. image {
  72. position: absolute;
  73. top: 0;
  74. left: 0;
  75. width: 100%;
  76. height: 100%;
  77. }
  78. }
  79. }
  80. }
  81. .loading {
  82. --td-loading-color: #38FF6E;
  83. align-self: center;
  84. margin: 0 8px;
  85. }