Wedding Invitation
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

app.css 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /* resources/css/app.css */
  2. @import "../../node_modules/@fortawesome/fontawesome-free/css/all.min.css";
  3. /* Other CSS rules */
  4. @tailwind base;
  5. @tailwind components;
  6. @tailwind utilities;
  7. @font-face {
  8. font-family: 'Tan Pearl';
  9. src: url('tanPearl.woff2') format('woff2');
  10. font-weight: normal;
  11. font-style: normal;
  12. }
  13. @media (prefers-color-scheme: dark) {
  14. html,
  15. body {
  16. background-color: #ffffff;
  17. color: #000000;
  18. }
  19. /* Override any other dark mode specific styles */
  20. .dark\:bg-gray-900 {
  21. background-color: #ffffff !important;
  22. }
  23. .dark\:text-white {
  24. color: #000000 !important;
  25. }
  26. }
  27. /* Remove outline on focus for all elements */
  28. *:focus {
  29. outline: none;
  30. }
  31. html {
  32. scroll-behavior: smooth;
  33. }
  34. body.no-scroll {
  35. overflow: hidden;
  36. }
  37. .fade-in {
  38. opacity: 1;
  39. }
  40. .petal-overlay {
  41. position: fixed;
  42. /* Fixes the position to the viewport */
  43. top: 0;
  44. left: 0;
  45. width: 100vw;
  46. height: 100vh;
  47. pointer-events: none;
  48. /* Allows interactions through the overlay */
  49. z-index: 1;
  50. /* Ensures it is on top of other elements */
  51. opacity: 0.3;
  52. /* Set the opacity to a lower value */
  53. display: block;
  54. }
  55. .petal-overlay img {
  56. width: 100%;
  57. height: 100%;
  58. object-fit: cover;
  59. /* Ensures the image covers the entire container */
  60. }
  61. .loader {
  62. position: relative;
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. width: 100%;
  67. max-width: 6rem;
  68. margin-top: 3rem;
  69. margin-bottom: 3rem;
  70. }
  71. .loader:before,
  72. .loader:after {
  73. content: "";
  74. position: absolute;
  75. border-radius: 50%;
  76. animation: pulsOut 1.8s ease-in-out infinite;
  77. filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
  78. }
  79. .loader:before {
  80. width: 100%;
  81. padding-bottom: 100%;
  82. box-shadow: inset 0 0 0 1rem #fff;
  83. animation-name: pulsIn;
  84. }
  85. .loader:after {
  86. width: calc(100% - 2rem);
  87. padding-bottom: calc(100% - 2rem);
  88. box-shadow: 0 0 0 0 #fff;
  89. }
  90. .part{
  91. transition: all 0.1s ease-in-out;
  92. }
  93. @keyframes pulsIn {
  94. 0% {
  95. box-shadow: inset 0 0 0 1rem #fff;
  96. opacity: 1;
  97. }
  98. 50%,
  99. 100% {
  100. box-shadow: inset 0 0 0 0 #fff;
  101. opacity: 0;
  102. }
  103. }
  104. @keyframes pulsOut {
  105. 0%,
  106. 50% {
  107. box-shadow: 0 0 0 0 #fff;
  108. opacity: 0;
  109. }
  110. 100% {
  111. box-shadow: 0 0 0 1rem #fff;
  112. opacity: 1;
  113. }
  114. }
  115. @keyframes to-right {
  116. from {
  117. transform: translateX(0)
  118. }
  119. to {
  120. transform: translateX(100%)
  121. }
  122. }
  123. @media (prefers-reduced-motion: no-preference) {
  124. @supports (animation-timeline: scroll()) {
  125. #right-cover {
  126. animation: to-right linear both;
  127. animation-timeline: scroll();
  128. animation-range: contain;
  129. }
  130. }
  131. }