common.scss 1.7 KB

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