styles.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. font-family: Arial, sans-serif;
  32. display: flex;
  33. justify-content: center;
  34. align-items: center;
  35. }
  36. .image-grid {
  37. display: grid;
  38. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  39. gap: 16px;
  40. width: 90%;
  41. }
  42. .image-grid img {
  43. width: 100%;
  44. height: auto;
  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. width: 100%;
  59. height: auto;
  60. border: 1px solid #ccc;
  61. border-radius: 8px;
  62. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  63. }
  64. .album-grid-card img {
  65. width: 100%;
  66. height: auto;
  67. cursor: pointer;
  68. border-radius: 8px;
  69. }
  70. .album-icon-grid {
  71. display: grid;
  72. grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  73. gap: 16px;
  74. width: 90%;
  75. }
  76. /* 响应式设计, 如果是手机屏幕 */
  77. @media (max-width: 768px) {
  78. .image-grid {
  79. width: 90%; /* 手机端宽度占90% */
  80. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  81. }
  82. .album-grid {
  83. width: 90%; /* 手机端宽度占90% */
  84. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  85. }
  86. .album-icon-grid {
  87. width: 90%; /* 手机端宽度占90% */
  88. grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  89. }
  90. }