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

app.css 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. }
  53. .petal-overlay img {
  54. width: 100%;
  55. height: 100%;
  56. object-fit: cover;
  57. /* Ensures the image covers the entire container */
  58. }
  59. .loader {
  60. position: relative;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. width: 100%;
  65. max-width: 6rem;
  66. margin-top: 3rem;
  67. margin-bottom: 3rem;
  68. }
  69. .loader:before,
  70. .loader:after {
  71. content: "";
  72. position: absolute;
  73. border-radius: 50%;
  74. animation: pulsOut 1.8s ease-in-out infinite;
  75. filter: drop-shadow(0 0 1rem rgba(255, 255, 255, 0.75));
  76. }
  77. .loader:before {
  78. width: 100%;
  79. padding-bottom: 100%;
  80. box-shadow: inset 0 0 0 1rem #fff;
  81. animation-name: pulsIn;
  82. }
  83. .loader:after {
  84. width: calc(100% - 2rem);
  85. padding-bottom: calc(100% - 2rem);
  86. box-shadow: 0 0 0 0 #fff;
  87. }
  88. .part {
  89. transition: all 0.1s ease-in-out;
  90. }
  91. @keyframes to-left{
  92. from{
  93. transform: translateX(0%);
  94. }
  95. to{
  96. transform: translateX(-100%);
  97. }
  98. }
  99. @keyframes to-right{
  100. from{
  101. transform: translateX(0%);
  102. }
  103. to{
  104. transform: translateX(100%);
  105. }
  106. }
  107. @media (prefers-reduced-motion: no-preference) {
  108. @supports (animation-timeline: scroll()) {
  109. .part.left {
  110. animation: to-left linear both;
  111. animation-timeline: scroll();
  112. animation-range-end: 4%;
  113. }
  114. .part.right {
  115. animation: to-right linear both;
  116. animation-timeline: scroll();
  117. animation-range-end: 4%;
  118. }
  119. }
  120. }
  121. @keyframes pulsIn {
  122. 0% {
  123. box-shadow: inset 0 0 0 1rem #fff;
  124. opacity: 1;
  125. }
  126. 50%,
  127. 100% {
  128. box-shadow: inset 0 0 0 0 #fff;
  129. opacity: 0;
  130. }
  131. }
  132. @keyframes pulsOut {
  133. 0%,
  134. 50% {
  135. box-shadow: 0 0 0 0 #fff;
  136. opacity: 0;
  137. }
  138. 100% {
  139. box-shadow: 0 0 0 1rem #fff;
  140. opacity: 1;
  141. }
  142. }
  143. @keyframes to-right {
  144. from {
  145. transform: translateX(0)
  146. }
  147. to {
  148. transform: translateX(100%)
  149. }
  150. }
  151. @media (prefers-reduced-motion: no-preference) {
  152. @supports (animation-timeline: scroll()) {
  153. #right-cover {
  154. animation: to-right linear both;
  155. animation-timeline: scroll();
  156. animation-range: contain;
  157. }
  158. }
  159. }