card.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .avue-card{
  2. &__item{
  3. margin-bottom: 16px;
  4. border: 1px solid #e8e8e8;
  5. background-color: #fff;
  6. box-sizing: border-box;
  7. color: rgba(0,0,0,.65);
  8. font-size: 14px;
  9. font-variant: tabular-nums;
  10. line-height: 1.5;
  11. list-style: none;
  12. font-feature-settings: "tnum";
  13. cursor: pointer;
  14. height:200px;
  15. &:hover{
  16. border-color: rgba(0,0,0,.09);
  17. box-shadow: 0 2px 8px rgba(0,0,0,.09);
  18. }
  19. &--add{
  20. border:1px dashed #000;
  21. width: 100%;
  22. color: rgba(0,0,0,.45);
  23. background-color: #fff;
  24. border-color: #d9d9d9;
  25. border-radius: 2px;
  26. display: flex;
  27. align-items: center;
  28. justify-content: center;
  29. font-size: 16px;
  30. i{
  31. margin-right: 10px;
  32. }
  33. &:hover{
  34. color: #40a9ff;
  35. background-color: #fff;
  36. border-color: #40a9ff;
  37. }
  38. }
  39. }
  40. &__body{
  41. display: flex;
  42. padding: 24px;
  43. }
  44. &__detail{
  45. flex:1
  46. }
  47. &__avatar{
  48. width: 48px;
  49. height: 48px;
  50. border-radius: 48px;
  51. overflow: hidden;
  52. margin-right: 12px;
  53. img{
  54. width: 100%;
  55. height: 100%;
  56. }
  57. }
  58. &__title{
  59. color: rgba(0,0,0,.85);
  60. margin-bottom: 12px;
  61. font-size: 16px;
  62. &:hover{
  63. color:#1890ff;
  64. }
  65. }
  66. &__info{
  67. color: rgba(0,0,0,.45);
  68. display: -webkit-box;
  69. -webkit-box-orient: vertical;
  70. -webkit-line-clamp: 3;
  71. overflow: hidden;
  72. height: 64px;
  73. }
  74. &__menu{
  75. display: flex;
  76. justify-content:space-around;
  77. height: 50px;
  78. background: #f7f9fa;
  79. color: rgba(0,0,0,.45);
  80. text-align: center;
  81. line-height: 50px;
  82. &:hover{
  83. color:#1890ff;
  84. }
  85. }
  86. }
  87. /** joolun 额外加的 */
  88. .avue-comment__main {
  89. flex: unset!important;
  90. border-radius: 5px!important;
  91. margin: 0 8px!important;
  92. }
  93. .avue-comment__header {
  94. border-top-left-radius: 5px;
  95. border-top-right-radius: 5px;
  96. }
  97. .avue-comment__body {
  98. border-bottom-right-radius: 5px;
  99. border-bottom-left-radius: 5px;
  100. }