styles.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. body {
  2. background-color: #ffffff;
  3. font-family: Arial, sans-serif;
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. }
  8. .content-wrapper {
  9. padding: 10px 0px 10px 0px;
  10. border: 1px solid #ccc;
  11. border-radius: 8px;
  12. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  13. }
  14. .content-title {
  15. padding: 0px 20px 0px 20px;
  16. display: flex;
  17. flex-direction: row;
  18. justify-content: space-between;
  19. align-items: center;
  20. }
  21. .content-title a {
  22. text-decoration: none;
  23. color: #ff4081;
  24. font-weight: bold;
  25. }
  26. .content-title a:hover {
  27. transform: scale(1.1);
  28. }
  29. .content {
  30. margin-top: 20px;
  31. display: flex;
  32. flex-direction: column;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. .image-card {
  37. padding: 5px;
  38. border: 1px solid #ccc; /* 卡片边框 */
  39. border-radius: 8px; /* 卡片圆角 */
  40. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 卡片阴影 */
  41. }
  42. .card-title {
  43. white-space: nowrap; /* 禁止文本换行 */
  44. overflow-x: auto; /* 允许水平滚动 */
  45. -ms-overflow-style: none; /* IE和Edge浏览器隐藏滚动条 */
  46. scrollbar-width: none; /* Firefox浏览器隐藏滚动条 */
  47. padding: 5px 4px 0px 4px;
  48. text-align: center;
  49. font-size: 16px;
  50. font-weight: bold;
  51. }
  52. .card-title::-webkit-scrollbar {
  53. display: none; /* Chrome, Safari和Opera浏览器隐藏滚动条 */
  54. }
  55. .image-grid {
  56. display: grid;
  57. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  58. gap: 16px;
  59. width: 90%;
  60. }
  61. .image-grid img {
  62. width: 100%;
  63. height: auto;
  64. object-fit: contain;
  65. aspect-ratio: 1;
  66. display: block;
  67. cursor: pointer;
  68. }
  69. .album-grid {
  70. display: grid;
  71. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  72. gap: 16px;
  73. width: 90%;
  74. }
  75. .album-grid-card {
  76. padding: 5px 0px 5px 0px;
  77. border: 1px solid #ccc;
  78. border-radius: 8px;
  79. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  80. }
  81. .album-icon-img {
  82. width: 100%;
  83. aspect-ratio: 1;
  84. cursor: pointer;
  85. border-radius: 8px;
  86. }
  87. .album-cover-img {
  88. width: 100%;
  89. aspect-ratio: 2;
  90. cursor: pointer;
  91. border-radius: 8px;
  92. }
  93. .album-icon-grid {
  94. display: grid;
  95. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  96. gap: 16px;
  97. width: 90%;
  98. }
  99. .breadcrumb {
  100. list-style: none;
  101. background-color: #f8f9fa;
  102. border-radius: 4px;
  103. padding: 8px;
  104. margin: 0;
  105. display: flex;
  106. align-items: center;
  107. flex-wrap: wrap;
  108. }
  109. .breadcrumb li {
  110. margin-right: 8px;
  111. }
  112. .breadcrumb li:not(:last-child)::after {
  113. content: '/';
  114. margin-left: 8px;
  115. }
  116. .breadcrumb a {
  117. text-decoration: none;
  118. color: #007bff;
  119. }
  120. .breadcrumb a:hover {
  121. text-decoration: underline;
  122. }
  123. /* 响应式设计, 如果是手机屏幕 */
  124. @media (max-width: 768px) {
  125. .image-grid {
  126. width: 90%; /* 手机端宽度占90% */
  127. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  128. }
  129. .album-grid {
  130. width: 90%; /* 手机端宽度占90% */
  131. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  132. }
  133. .album-icon-grid {
  134. width: 90%; /* 手机端宽度占90% */
  135. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  136. }
  137. /* 移动端不显示面包屑导航 */
  138. .breadcrumb {
  139. display: none;
  140. }
  141. }