style.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. background: -webkit-radial-gradient(top, circle cover, #fbfff7 0%, #6eade8 80%)
  5. }
  6. a {
  7. text-decoration: none;
  8. }
  9. .box {
  10. display: -webkit-flex;
  11. display: flex;
  12. justify-content: center;
  13. align-items: center;
  14. position: relative;
  15. }
  16. .container {
  17. display: flex;
  18. background:#fff;
  19. width: 450px;
  20. height: 600px;
  21. overflow: auto;
  22. box-shadow: 2px 1px 6px #CC9999;
  23. flex-direction: column;
  24. position: absolute;
  25. }
  26. @keyframes fadeIn {
  27. 0% {
  28. opacity: 0;
  29. left: 910px;
  30. }
  31. 20% {
  32. opacity: 0.2;
  33. left: 728px;
  34. }
  35. 40% {
  36. opacity: 0.4;
  37. left: 546px;
  38. }
  39. 60% {
  40. opacity: 0.6;
  41. left: 364px;
  42. }
  43. 80% {
  44. opacity: 0.8;
  45. left: 182px;
  46. }
  47. 100% {
  48. opacity: 1;
  49. left: 0;
  50. }
  51. }
  52. .fadeIn {
  53. animation: fadeIn .3s linear forwards;
  54. }
  55. @keyframes fadeOut {
  56. 0% {
  57. opacity: 1;
  58. left: 0;
  59. }
  60. 20% {
  61. opacity: 0.8;
  62. left: 182px;
  63. }
  64. 40% {
  65. opacity: 0.6;
  66. left: 364px;
  67. }
  68. 60% {
  69. opacity: 0.4;
  70. left: 546px;
  71. }
  72. 80% {
  73. opacity: 0.2;
  74. left: 728px;
  75. }
  76. 100% {
  77. opacity: 0;
  78. left: 910px;
  79. }
  80. }
  81. .fadeOut {
  82. animation: fadeOut .3s linear forwards;
  83. }
  84. .register_container {
  85. opacity: 0;
  86. right: 0;
  87. top: 0;
  88. left: 910px;
  89. bottom: 0;
  90. margin: auto;
  91. }
  92. .login_container {
  93. opacity: 1;
  94. right: 0;
  95. top: 0;
  96. left: 0;
  97. bottom: 0;
  98. margin: auto;
  99. }
  100. .form {
  101. height: 90%;
  102. display: flex;
  103. flex-direction: column;
  104. }
  105. .form h2 {
  106. flex: 1;
  107. align-self: center;
  108. font-size: 40px;
  109. line-height: 80px;
  110. color: #0084FF
  111. }
  112. .form .cont {
  113. flex: 5;
  114. align-self: center;
  115. display: flex;
  116. width: 100%;
  117. flex-direction: column;
  118. }
  119. .form .cont label {
  120. position: relative;
  121. align-self: center;
  122. width: 60%;
  123. height: 20%;
  124. margin-bottom: 20px;
  125. display: flex;
  126. flex-direction: row;
  127. }
  128. @keyframes scaleFont {
  129. 0% {
  130. transform: scale(1);
  131. }
  132. 50% {
  133. transform: scale(.9);
  134. bottom: 40%;
  135. }
  136. 100% {
  137. transform: scale(.8);
  138. bottom: 60%;
  139. }
  140. }
  141. .form .cont label span {
  142. position: absolute;
  143. font-size: 20px;
  144. display: inline;
  145. bottom: 8%;
  146. animation: scaleFont 0.3s ease;
  147. animation-fill-mode: forwards; /* 保存动画最后状态 */
  148. }
  149. .form .input {
  150. border: none;
  151. border-bottom: 1px solid #e6e6e6;
  152. outline: none;
  153. width: 100%;
  154. align-self: flex-end;
  155. height: 30px;
  156. font-size: 20px;
  157. }
  158. .form .line {
  159. width: 0;
  160. position: absolute;
  161. background-color: blue;
  162. height: 2px;
  163. margin: 0 auto;
  164. bottom: 0;
  165. left: 0;
  166. right: 0;
  167. transition: width .3s linear;
  168. }
  169. .form .btn {
  170. border: none;
  171. width: 100%;
  172. height: 80%;
  173. background: #0084FF;
  174. color: #fff;
  175. font-size: 25px;
  176. border-radius: 11px;
  177. align-self: flex-end;
  178. }
  179. .form .btn:hover {
  180. background-color: #005eb6;
  181. cursor: pointer;
  182. }
  183. .tab {
  184. height: 12%;
  185. width: 100%;
  186. border-top: 1px solid #EBEBEB;
  187. background: #f6f6f6;
  188. display: flex;
  189. justify-content: center;
  190. align-items: center;
  191. font-size: 20px;
  192. }