login.less 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. html {
  2. height: 100%;
  3. overflow: hidden;
  4. }
  5. body {
  6. background: url("../images/login/login_line.jpg") left center repeat-x;
  7. height: 100%;
  8. }
  9. /*移除表单填充色*/
  10. input:-webkit-autofill {
  11. -webkit-box-shadow: 0 0 0 1000px #ececec inset;
  12. }
  13. /*按钮移上去颜色*/
  14. .layui-btn-primary:hover {
  15. border-color: #1E9FFF;
  16. color: #333;
  17. }
  18. /*页面背景色*/
  19. .m-login-bg {
  20. background: url("../images/login/login_bg.png") left center repeat-x;
  21. height: 100%;
  22. }
  23. .m-login {
  24. width: 390px;
  25. position: absolute;
  26. left: 50%;
  27. top: 50%;
  28. margin-left: -195px;
  29. margin-top: -205px;
  30. h3 {
  31. color: #fff;
  32. text-align: center;
  33. height: 60px;
  34. font-size: 28px;
  35. }
  36. .copyright {
  37. text-align: center;
  38. color: #999;
  39. padding-top: 10px;
  40. }
  41. }
  42. .m-login-warp {
  43. background: #fff;
  44. -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2);
  45. box-shadow: 0 0 10px rgba(0,0,0,0.2);
  46. -webkit-border-radius: 6px;
  47. border-radius: 6px;
  48. padding: 25px;
  49. .layui-input {
  50. height: 40px;
  51. line-height: 40px\9;
  52. margin-bottom: 5px;
  53. -webkit-transition-property: none;
  54. transition-property: none;
  55. background: #ececec;
  56. border: 1px solid #ececec;
  57. }
  58. .m-login-btn {
  59. .layui-inline {
  60. width: 49%;
  61. margin: 0;
  62. button {
  63. width: 100%;
  64. }
  65. }
  66. }
  67. .verifyImg {
  68. width: 130px;
  69. height: 42px;
  70. }
  71. }
  72. @media screen and (max-width: 450px) {
  73. .m-login {
  74. width: 300px;
  75. position: absolute;
  76. left: 50%;
  77. top: 50%;
  78. margin-left: -150px;
  79. margin-top: -240px;
  80. }
  81. .layui-form-item .layui-inline {
  82. display: block;
  83. margin-right: 0;
  84. margin-bottom: 20px;
  85. clear: both;
  86. }
  87. .m-login-warp .m-login-btn .layui-inline {
  88. width: 100%;
  89. margin: 0 0 10px;
  90. }
  91. }