styles.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. /* 响应式设计, 如果是手机屏幕 */
  81. @media (max-width: 768px) {
  82. .image-grid {
  83. width: 90%; /* 手机端宽度占90% */
  84. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  85. }
  86. .album-grid {
  87. width: 90%; /* 手机端宽度占90% */
  88. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  89. }
  90. .album-icon-grid {
  91. width: 90%; /* 手机端宽度占90% */
  92. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  93. }
  94. }