cookie.css 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. .cookie-notice {
  2. position: fixed;
  3. bottom: 0;
  4. left: 0;
  5. width: 100%;
  6. background-color: #f1f1f1;
  7. color: #333;
  8. text-align: center;
  9. padding: 10px;
  10. z-index: 9999;
  11. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  12. }
  13. .cookie-notice p {
  14. margin: 10px;
  15. }
  16. .accept-button {
  17. background-color: #4CAF50; /* 绿色背景 */
  18. color: white; /* 白色文字 */
  19. border: none;
  20. padding: 10px 20px;
  21. text-align: center;
  22. text-decoration: none;
  23. display: inline-block;
  24. font-size: 16px;
  25. margin-right: 10px;
  26. cursor: pointer;
  27. border-radius: 5px; /* 圆角 */
  28. transition: background-color 0.3s; /* 平滑过渡效果 */
  29. }
  30. .accept-button:hover {
  31. background-color: #45a049; /* 鼠标悬停时颜色变深 */
  32. }
  33. .reject-button {
  34. background-color: #e7e7e7; /* 浅灰色背景 */
  35. color: #666; /* 深灰色文字 */
  36. border: 1px solid #ccc; /* 浅灰色边框 */
  37. padding: 10px 20px;
  38. text-align: center;
  39. text-decoration: none;
  40. display: inline-block;
  41. font-size: 16px;
  42. cursor: pointer;
  43. border-radius: 5px; /* 圆角 */
  44. transition: background-color 0.3s, color 0.3s; /* 平滑过渡效果 */
  45. }
  46. .reject-button:hover {
  47. background-color: #ddd; /* 鼠标悬停时颜色略微变深 */
  48. color: #555; /* 文字颜色也略微变深 */
  49. }