common.scss 1.7 KB

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