login.less 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. html{
  2. width: 100%;
  3. height: 100%;
  4. body{
  5. width: 100%;
  6. height: 100%;
  7. .wrapper{
  8. width: 100%;
  9. height: 100%;
  10. // background-color: #f2f2f2;
  11. background:url("../img/login.png") no-repeat center;
  12. background-size: cover;
  13. position: relative;
  14. .inner{
  15. width: 450px;
  16. position: absolute;
  17. left: 50%;
  18. top: 25%;
  19. margin-left: -250px;
  20. background-color: #ffffff;
  21. border-radius: 12px;
  22. box-shadow: 0 0 10px 0;
  23. .logo{
  24. text-align: center;
  25. padding: 15px;
  26. box-sizing: border-box;
  27. img{
  28. max-width: 100%;
  29. }
  30. }
  31. .form-box{
  32. width: 100%;
  33. padding: 10px 20px 35px;
  34. box-sizing: border-box;
  35. .form-item{
  36. width: 100%;
  37. margin-bottom: 15px;
  38. overflow: hidden;
  39. font-size: 16px;
  40. position: relative;
  41. .iconfont{
  42. position: absolute;
  43. left: 7px;
  44. top: 8px;
  45. color: #666666;
  46. font-size: 20px;
  47. vertical-align: middle;
  48. }
  49. .form-input{
  50. display: block;
  51. width: 100%;
  52. line-height: 36px;
  53. border: 1px solid #dddddd;
  54. border-radius: 4px;
  55. padding:0 10px 0 30px;
  56. box-sizing: border-box;
  57. &:focus{
  58. border-color: #bf3033;
  59. }
  60. }
  61. }
  62. .code-item{
  63. .form-input{
  64. display: inline-block;
  65. width: 70%;
  66. }
  67. .img-code{
  68. position: absolute;
  69. right: 25px;
  70. max-height: 100%;
  71. width: 80px;;
  72. height: 36px;;
  73. }
  74. }
  75. .form-button{
  76. width: 100%;
  77. &>button{
  78. display: block;
  79. width: 100%;
  80. outline: none;
  81. background-image: linear-gradient(90deg,#e45b5b 0,#bf3033 99%),linear-gradient(#139cfa,#139cfa);
  82. color: #ffffff;
  83. font-size: 20px;
  84. text-align: center;
  85. border: none;
  86. border-radius: 4px;
  87. line-height: 40px;
  88. cursor: pointer;
  89. &:hover{
  90. background-image: linear-gradient(90deg,#bf3033 0,#bf3033 99%),linear-gradient(#139cfa,#139cfa);
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }