login.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /* css reset 重置样式 */
  2. body{
  3. margin: 0;
  4. }
  5. ul{
  6. padding: 0;
  7. margin: 0;
  8. }
  9. li{
  10. list-style: none;
  11. }
  12. /* 工具类 */
  13. .clearfix::after{
  14. content: "";
  15. display: block;
  16. /* 清除所有方向的浮动 */
  17. clear: both;
  18. }
  19. /* 最外层容器 */
  20. .container{
  21. height: 100vh;
  22. width: 100vw;
  23. overflow: hidden;
  24. }
  25. /* 左侧图片部分 */
  26. .left-img{
  27. height: 100vh;
  28. width:375px;
  29. float: left;
  30. /* ../ 表示返回上一级目录*/
  31. background-image: url("../img/banner.jpg");
  32. background-size: cover;
  33. background-position: center center;
  34. }
  35. /* 登录页面主要功能部分 */
  36. .right-content{
  37. height: 100vh;
  38. width: calc(100vw - 375px);
  39. background-color: #f5f5f5;
  40. float: left;
  41. }
  42. /* 顶部导航栏 */
  43. .top-bar{
  44. padding:20px;
  45. }
  46. .logo{
  47. float: left;
  48. }
  49. .logo img{
  50. width: 40px;
  51. height: 40px;
  52. display: block;
  53. float: left;
  54. }
  55. .logo span{
  56. font-size: 26px;
  57. color:rgba(0,0,0,.8);
  58. font-weight: 500;
  59. display: block;
  60. float: left;
  61. margin-left: 10px;
  62. }
  63. .top-nav{
  64. float: right;
  65. }
  66. .top-nav ul li{
  67. float: left;
  68. color:#838383;
  69. font-size: 14px;
  70. margin:0 10px;
  71. }
  72. .top-nav ul li:hover{
  73. color:#ff6900;
  74. cursor: pointer;
  75. }
  76. .top-nav ul li.line{
  77. color:rgba(0,0,0,.1)
  78. }
  79. .top-nav ul li.line:hover{
  80. cursor:auto;
  81. }
  82. .top-nav li i{
  83. display: inline-block;
  84. margin-top: 5px;
  85. border-top: 5px solid gray;
  86. border-bottom: 5px solid transparent;
  87. border-left: 5px solid transparent;
  88. border-right: 5px solid transparent;
  89. }
  90. /* 登录框 */
  91. .login-box{
  92. width: 450px;
  93. background-color: #fff;
  94. box-shadow:0 0 10px #aaa;
  95. margin: 30px auto;
  96. padding: 40px 45px;
  97. box-sizing: border-box;
  98. }
  99. .login-box .login-tab div{
  100. font-size: 24px;
  101. color: #bbb;
  102. font-weight: 400;
  103. float: left;
  104. margin-right: 20px;
  105. }
  106. .login-box .login-tab div.active{
  107. color: #111;
  108. }
  109. .login-box .login-tab .active::after{
  110. content: "";
  111. display: block;
  112. height: 4px;
  113. width: 100%;
  114. background-color: #ff6900;
  115. margin-top:5px;
  116. border-radius: 2px;
  117. }
  118. .login-box .login-input{
  119. margin-top: 20px;
  120. overflow: hidden;
  121. }
  122. .login-box .login-input div{
  123. height: 60px;
  124. background-color: #f5f5f5;
  125. margin-top: 20px;
  126. padding-left: 20px;
  127. }
  128. .login-box .login-input input{
  129. height: 100%;
  130. border:0;
  131. outline: none;
  132. background-color: transparent;
  133. font-size: 20px;
  134. }
  135. /* 协议区域 */
  136. .login-box .login-agreement{
  137. padding:20px 0;
  138. }
  139. .login-box .login-agreement div{
  140. float: left;
  141. font-size: 14px;
  142. }
  143. .login-box .login-agreement .inp input{
  144. height: 20px;
  145. width: 20px;
  146. margin-top:-2px;
  147. }
  148. .login-box .login-agreement .text{
  149. color: #838383;
  150. }
  151. .login-box .login-agreement .text u{
  152. color: #333;
  153. }
  154. /* 登录按钮 */
  155. .login-box .login-btn{
  156. margin: 20px 0;
  157. }
  158. .login-box .login-btn .inp-btn button{
  159. height: 60px;
  160. width: 100%;
  161. background-color: #ff6900;
  162. color: #fff;
  163. font-size: 18px;
  164. font-weight: 400;
  165. border-radius: 4px;
  166. border:0;
  167. }
  168. .login-box .login-btn .text-btn{
  169. margin-top: 10px;
  170. color: #ff5c00;
  171. }
  172. .login-box .text-btn span:first-child{
  173. float: left;
  174. }
  175. .login-box .text-btn span:last-child{
  176. float: right;
  177. }
  178. /* 其他登录方式 */
  179. .login-other{
  180. text-align: center;
  181. }
  182. .login-other p{
  183. font-size: 17px;
  184. color: #aaa;
  185. font-weight: 400;
  186. }
  187. .login-other ul{
  188. width: 264px;
  189. margin: 0 auto;
  190. }
  191. .login-other ul li{
  192. float: left;
  193. width: 46px;
  194. height: 46px;
  195. border-radius: 50%;
  196. background-color: #aaa;
  197. color: #fff;
  198. line-height: 46px;
  199. text-align: center;
  200. margin: 0 10px;
  201. }
  202. .login-other ul li i{
  203. font-size: 30px;
  204. }
  205. .login-other ul li:first-child{
  206. background-color: #007bff;
  207. }
  208. .login-other ul li:nth-child(2){
  209. background-color: #50B674;
  210. }
  211. .login-other ul li:nth-child(3){
  212. background-color: #18ACFC;
  213. }
  214. .login-other ul li:nth-child(4){
  215. background-color: #EA5D5C;
  216. }
  217. /* 底部区域 */
  218. .bottom-bar{
  219. text-align: center;
  220. color: #999;
  221. font-size: 12px;
  222. }