_formLogin.scss 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. .formdiv{
  2. width: 100%;
  3. height: 100vh;
  4. display: flex;
  5. justify-content: center;
  6. align-items: center;
  7. font-size: 20px;
  8. margin: 0 auto ;
  9. // background-color: #c1bdba;
  10. background-image: url("../img/depositphotos_80275194-stock-illustration-russian-old-fair-bazaar-vector.jpg");
  11. //height: 500px; /* You must set a specified height */
  12. background-position: center; /* Center the image */
  13. background-repeat: no-repeat; /* Do not repeat the image */
  14. background-size: cover;
  15. }
  16. h1, .input::-webkit-input-placeholder, .button {
  17. font-family: 'roboto', sans-serif;
  18. transition: all 0.3s ease-in-out;
  19. }
  20. h1 {
  21. height: 100px;
  22. width: 100%;
  23. font-size: 18px;
  24. background: darken($el-color, 4%);
  25. color: #fff;
  26. line-height: 150%;
  27. border-radius: 3px 3px 0 0;
  28. box-shadow: 0 2px 5px 1px rgba(0,0,0,0.2);
  29. }
  30. .form {
  31. box-sizing: border-box;
  32. width: 260px;
  33. box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.2);
  34. padding-bottom: 40px;
  35. border-radius: 3px;
  36. background-color: #fff;
  37. h1 {
  38. box-sizing: border-box;
  39. padding: 20px;
  40. }
  41. }
  42. .input {
  43. margin: 40px 25px;
  44. width: 200px;
  45. display: block;
  46. border: none;
  47. padding: 10px 0;
  48. border-bottom: solid 1px $el-color;
  49. transition: all 0.3s cubic-bezier(.64,.09,.08,1);
  50. background: linear-gradient(to bottom, rgba(255,255,255,0) 96%, $el-color 4%);
  51. background-position: -200px 0;
  52. background-size: 200px 100%;
  53. background-repeat: no-repeat;
  54. color: darken($el-color, 20%);
  55. &:focus {
  56. box-shadow: none;
  57. outline: none;
  58. background-position: 0 0;
  59. &::-webkit-input-placeholder {
  60. color: $el-color;
  61. font-size: 11px;
  62. transform: translateY(-20px);
  63. visibility: visible !important;
  64. }
  65. }
  66. }
  67. // .input:focus::-webkit-input-placeholder {text-indent: 500px; transition: text-indent 0.9s ease;}
  68. .button {
  69. border: none;
  70. background: $el-color;
  71. cursor: pointer;
  72. border-radius: 3px;
  73. padding: 6px;
  74. width: 200px;
  75. color: white;
  76. margin-left: 25px;
  77. box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
  78. &:hover {
  79. transform: translateY(-3px);
  80. box-shadow: 0 6px 6px 0 rgba(0,0,0,0.2);
  81. }
  82. }