index.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. body {
  7. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  8. background: #e6eeff;
  9. width: 240px;
  10. height: 160px;
  11. padding: 3px;
  12. overflow: hidden;
  13. }
  14. #app {
  15. width: 100%;
  16. height: 100%;
  17. }
  18. .cards-grid {
  19. display: flex;
  20. flex-direction: row;
  21. gap: 2px;
  22. height: 100%;
  23. overflow: hidden;
  24. }
  25. .card {
  26. background: white;
  27. box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
  28. padding: 5px;
  29. text-align: center;
  30. border-top: 2px solid #3b82f6;
  31. border-radius: 1px;
  32. width: calc((100% / 5) - 1px);
  33. flex-shrink: 0;
  34. display: flex;
  35. flex-direction: column;
  36. gap: 4px;
  37. }
  38. .avatar-image {
  39. width: 25px;
  40. height: 25px;
  41. margin: 0 auto;
  42. border-radius: 50%;
  43. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  44. background: #f0f9ff;
  45. object-fit: cover;
  46. transition: all 0.3s ease;
  47. display: block;
  48. /* 关键:移除所有边框 */
  49. border: none !important;
  50. outline: none;
  51. box-sizing: border-box;
  52. /* 防止图片周围出现间隙 */
  53. vertical-align: middle;
  54. flex-shrink: 0;
  55. /* 改善图片加载失败时的显示 */
  56. background-clip: content-box;
  57. -webkit-appearance: none;
  58. appearance: none;
  59. }
  60. .card-section {
  61. display: flex;
  62. flex-direction: column;
  63. gap: 4px;
  64. }
  65. .card-label {
  66. font-size: 6px;
  67. color: #9ca3af;
  68. text-transform: uppercase;
  69. letter-spacing: 0.3px;
  70. font-weight: 500;
  71. line-height: 1;
  72. }
  73. .card-school-value {
  74. font-size: 7px;
  75. color: #1f2937;
  76. font-weight: 700;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. line-height: 1.2;
  81. }
  82. .card-name-value {
  83. font-size: 8px;
  84. color: #1f2937;
  85. font-weight: 700;
  86. white-space: nowrap;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. line-height: 1.2;
  90. }
  91. .card-divider {
  92. height: 1px;
  93. background-color: #e5e7eb;
  94. margin: 1px 0;
  95. }
  96. .card-score {
  97. font-size: 12px;
  98. color: #2563eb;
  99. font-weight: bold;
  100. line-height: 1.2;
  101. }
  102. .card-violation {
  103. font-size: 12px;
  104. color: #6366f1;
  105. font-weight: bold;
  106. line-height: 1.2;
  107. }
  108. ::-webkit-scrollbar {
  109. height: 2px;
  110. }
  111. ::-webkit-scrollbar-track {
  112. background: transparent;
  113. }
  114. ::-webkit-scrollbar-thumb {
  115. background: #bfdbfe;
  116. border-radius: 1px;
  117. }