styles.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. justify-content: center;
  33. align-items: center;
  34. }
  35. .image-grid {
  36. display: grid;
  37. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  38. gap: 16px;
  39. width: 90%;
  40. }
  41. .image-grid img {
  42. width: 100%;
  43. height: auto;
  44. object-fit: contain;
  45. aspect-ratio: 1;
  46. display: block;
  47. cursor: pointer;
  48. border-radius: 8px; /* 可选,添加圆角效果 */
  49. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 可选,添加阴影效果 */
  50. }
  51. .album-grid {
  52. display: grid;
  53. grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  54. gap: 16px;
  55. width: 90%;
  56. }
  57. .album-grid-card {
  58. border: 1px solid #ccc;
  59. border-radius: 8px;
  60. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  61. }
  62. .album-icon-img {
  63. width: 100%;
  64. aspect-ratio: 1;
  65. cursor: pointer;
  66. border-radius: 8px;
  67. }
  68. .album-cover-img {
  69. width: 100%;
  70. aspect-ratio: 2;
  71. cursor: pointer;
  72. border-radius: 8px;
  73. }
  74. .album-icon-grid {
  75. display: grid;
  76. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  77. gap: 16px;
  78. width: 90%;
  79. }
  80. .breadcrumb {
  81. list-style: none;
  82. background-color: #f8f9fa;
  83. border-radius: 4px;
  84. padding: 8px;
  85. margin: 0;
  86. display: flex;
  87. align-items: center;
  88. flex-wrap: wrap;
  89. }
  90. .breadcrumb li {
  91. margin-right: 8px;
  92. }
  93. .breadcrumb li:not(:last-child)::after {
  94. content: '/';
  95. margin-left: 8px;
  96. }
  97. .breadcrumb a {
  98. text-decoration: none;
  99. color: #007bff;
  100. }
  101. .breadcrumb a:hover {
  102. text-decoration: underline;
  103. }
  104. /* 响应式设计, 如果是手机屏幕 */
  105. @media (max-width: 768px) {
  106. .image-grid {
  107. width: 90%; /* 手机端宽度占90% */
  108. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  109. }
  110. .album-grid {
  111. width: 90%; /* 手机端宽度占90% */
  112. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  113. }
  114. .album-icon-grid {
  115. width: 90%; /* 手机端宽度占90% */
  116. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  117. }
  118. /* 移动端不显示面包屑导航 */
  119. .breadcrumb {
  120. display: none;
  121. }
  122. }