helsinki2103

css

Jan 13th, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. body{
  2. margin: 0;
  3. padding: 0;
  4. font-family: sans-serif;
  5. background:#130f40;
  6. }
  7.  
  8. .box{
  9. width: 300px;
  10. padding: 40px;
  11. position: absolute;
  12. top: 50%;
  13. left: 50%;
  14. transform: translate(-50%, -50%);
  15. background: #2c3e50;
  16. border: 0;
  17. border-radius: 10px;
  18. text-align: center;
  19. }
  20.  
  21. .box a{
  22. color: white;
  23. text-transform: uppercase;
  24. font-weight: 500;
  25. }
  26.  
  27. .box input[type = "text"], .box input[type = "password"]{
  28. color: black;
  29. display: block;
  30. margin: 20px auto;
  31. background: none;
  32. border: 2px solid #00b894;
  33. text-align: center;
  34. padding: 14px 10px;
  35. width: 200px;
  36. outline: none;
  37. border-radius: 24px;
  38. transition: 0.25s;
  39. }
  40.  
  41. .box input[type = "text"]:focus, .box input[type = "password"]:focus{
  42. border-color: #74b9ff;
  43. width: 280px;
  44. }
  45.  
  46. .box input[type = "submit"]{
  47. display: block;
  48. margin: 20px auto;
  49. background: none;
  50. border: 2px solid #74b9ff;
  51. text-align: center;
  52. padding: 14px 40px;
  53. outline: none;
  54. color: white;
  55. border-radius: 24px;
  56. transition: 0.25s;
  57. cursor: pointer;
  58. }
  59.  
  60. .box input[type = "submit"]:hover{
  61. background:#74b9ff;
  62. box-shadow: 0 0 10px #74b9ff, 0 0 40px #74b9ff, 0 0 80px #74b9ff;
  63. transition-delay: 0.1s;
  64. }
  65.  
  66. .box span{
  67. position: absolute;
  68. display: block;
  69. }
  70.  
  71. form span:nth-child(1){
  72. top: 0;
  73. left: -100%;
  74. width: 100%;
  75. height: 5px;
  76. background: linear-gradient(90deg,transparent,#3498db);
  77. }
  78.  
  79. form:hover span:nth-child(1){
  80. left: 100%;
  81. transition: 1s;
  82. }
  83.  
  84. form span:nth-child(3){
  85. bottom: 0;
  86. right: -100%;
  87. width: 100%;
  88. height: 5px;
  89. background: linear-gradient(270deg,transparent,#3498db);
  90. }
  91.  
  92. form:hover span:nth-child(3){
  93. right: 100%;
  94. transition: 1s;
  95. transition-delay: 0.5s;
  96. }
  97.  
  98. form span:nth-child(2){
  99. top: -100%;
  100. right: 0;
  101. width: 5px;
  102. height: 100%;
  103. background: linear-gradient(180deg,transparent,#3498db);
  104. }
  105.  
  106. form:hover span:nth-child(2){
  107. top: 100%;
  108. transition: 1s;
  109. transition-delay: 0.25s;
  110. }
  111.  
  112. form span:nth-child(4){
  113. bottom: -100%;
  114. left: 0;
  115. width: 5px;
  116. height: 100%;
  117. background: linear-gradient(360deg,transparent,#3498db);
  118. }
  119.  
  120. form:hover span:nth-child(4){
  121. bottom: 100%;
  122. transition: 1s;
  123. transition-delay: 0.75s;
  124. }
Advertisement
Add Comment
Please, Sign In to add comment