common.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* 卡片样式 */
  2. .card {
  3. min-height: 252rpx;
  4. display: flex;
  5. flex-direction: column;
  6. background-color: #fff;
  7. }
  8. .card-header {
  9. display: flex;
  10. align-items: center;
  11. height: 80rpx;
  12. padding: 0 44rpx;
  13. box-sizing: border-box;
  14. font-size: 28rpx;
  15. color: #333;
  16. position: relative;
  17. /* border-bottom: 1rpx solid #ddd; */
  18. }
  19. .card-header view {
  20. width: 4rpx;
  21. height: 32rpx;
  22. background: #4dc182;
  23. position: absolute;
  24. left: 24rpx;
  25. top: 26rpx;
  26. }
  27. /* 1px边框 */
  28. .border-top-before,
  29. .border-bottom-after,
  30. .border-left-before,
  31. .border-right-before {
  32. position: relative;
  33. }
  34. .border-bottom-after::after {
  35. content: '';
  36. position: absolute;
  37. background-color: #ddd;
  38. display: block;
  39. z-index: 1;
  40. top: auto;
  41. right: auto;
  42. bottom: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 1px;
  46. transform-origin: 50% 100%;
  47. transform: scaleY(0.5);
  48. }
  49. .border-top-before::before {
  50. content: '';
  51. position: absolute;
  52. background-color: #ddd;
  53. display: block;
  54. z-index: 1;
  55. top: 0;
  56. right: auto;
  57. bottom: auto;
  58. left: 0;
  59. width: 100%;
  60. height: 1px;
  61. transform-origin: 50% 100%;
  62. transform: scaleY(0.5);
  63. }
  64. .border-left-before::before {
  65. content: '';
  66. position: absolute;
  67. background-color: #ddd;
  68. display: block;
  69. z-index: 1;
  70. top: auto;
  71. right: auto;
  72. bottom: 0;
  73. left: 0;
  74. width: 1px;
  75. height: 100%;
  76. /* transform-origin: 100% 50%; */
  77. transform: scaleX(0.5);
  78. }
  79. .border-right-before::before {
  80. content: '';
  81. position: absolute;
  82. background-color: #ddd;
  83. display: block;
  84. z-index: 1;
  85. top: auto;
  86. right: 0;
  87. bottom: 0;
  88. left: auto;
  89. width: 1px;
  90. height: 100%;
  91. /* transform-origin: 100% 50%; */
  92. transform: scaleX(0.5);
  93. }
  94. /* 单行溢出内容点点点显示 */
  95. .ellipsis {
  96. white-space: nowrap;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. }