global.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .cards {
  2. margin-top: 40px;
  3. column-count: 2;
  4. column-gap: 1em;
  5. }
  6. .cards > section {
  7. margin: 0 0 1em;
  8. width: 100%;
  9. page-break-inside: avoid;
  10. break-inside: avoid-column;
  11. flex-direction: column;
  12. }
  13. section {
  14. overflow:hidden;
  15. }
  16. section img:first-child {
  17. margin: -8px -18px 8px -18px;
  18. max-width: calc(100% + 36px);
  19. }
  20. header[role=banner] {
  21. background:
  22. linear-gradient(
  23. rgba(199, 228, 255, 0.8),
  24. rgba(199, 228, 255, 0.8)
  25. ),
  26. url("milky-way-4526277.jpg"),
  27. linear-gradient(#b6bdc3, #cedce7);
  28. background-position: center center;
  29. background-size: cover;
  30. }
  31. .image-attribution {
  32. display: inline-block;
  33. padding: 16px;
  34. transition: background 0.2s;
  35. border-radius: 8px;
  36. }
  37. .image-attribution .attribution {
  38. /* display: none; */
  39. opacity: 0;
  40. transition: opacity 0.2s;
  41. margin-left: 8px;
  42. }
  43. .image-attribution:hover {
  44. background-color: var(--content-background);
  45. }
  46. .image-attribution:hover .attribution {
  47. display: inline;
  48. opacity: 1;
  49. }
  50. @media (prefers-color-scheme: dark) {
  51. header[role=banner] {
  52. background:
  53. linear-gradient(
  54. rgba(43, 54, 65, 0.6),
  55. rgba(43, 54, 65, 0.6)
  56. ),
  57. url("milky-way-4526277.jpg"),
  58. linear-gradient(#b6bdc3, #cedce7);
  59. background-position: center center;
  60. background-size: cover;
  61. }
  62. }
  63. @media screen and (max-width: 75ch) {
  64. .cards {
  65. column-count: 1;
  66. }
  67. header > div {
  68. padding: 18px;
  69. }
  70. }
  71. footer {
  72. text-align: center;
  73. }