Advertisement
n128

Login - CSS

Jan 28th, 2018
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.55 KB | None | 0 0
  1. body {
  2.     margin: 0 auto;
  3.     padding: 0;
  4.     overflow: hidden;
  5.     background: url(../img/bg.jpg) no-repeat center top;
  6.     background-size: cover;
  7.     height: 100vh;
  8.     font-family: sans-serif;
  9. }
  10.  
  11. #login-box {
  12.     width: 320px;
  13.     height: 420px;
  14.     background: #000;
  15.     color: #fff;
  16.     padding: 30px;
  17.     top: 55%;
  18.     left: 50%;
  19.     position: absolute;
  20.     transform: translate(-50%, -50%);
  21. }
  22.  
  23. #login-box .avatar {
  24.     width: 100px;
  25.     height: 100px;
  26.     border-radius: 50%;
  27.     position: absolute;
  28.     top: -40px;
  29.     left: 50%;
  30.     transform: translate(-50%, -40%);
  31.     border: 2px solid #f1f1f1;
  32. }
  33. #login-box .avatar:hover {
  34.     cursor: pointer;
  35. }
  36.  
  37. #login-box h1 {
  38.     text-align: center;
  39.     margin: 0;
  40.     padding: 0 0 20px;
  41.     font-size: 25px;
  42. }
  43.  
  44. #login-box hr {
  45.     border: 1px dashed grey;
  46.     height: 0;
  47.     width: 60%;
  48. }
  49.  
  50. #login-box label {
  51.     margin: 0;
  52.     padding: 0;
  53.     font-weight: bold;
  54.     display: block;
  55.     font-size: 17pt;
  56. }
  57.  
  58. #login-box input {
  59.     margin: 0 0 20px;
  60.     padding: 0;
  61.     width: 100%;
  62.     margin-bottom: 20px;
  63. }
  64.  
  65. #login-box input[type="text"],
  66. #login-box input[type="password"] {
  67.     border: none;
  68.     border-bottom: 1px solid #fff;
  69.     background: transparent;
  70.     outline: none;
  71.     height: 40px;
  72.     color: #fff;
  73.     font-size: 12pt;;
  74. }
  75.  
  76. #login-box input[type="submit"] {
  77.     background: #1d1d78;
  78.     color: #fff;
  79.     border: none;
  80.     padding: 10px;
  81.     font-size: 18px;
  82.  
  83. }
  84. #login-box input[type="submit"]:hover {
  85.     cursor: pointer;
  86.     background: #4949a3;
  87. }
  88.  
  89. #login-box a {
  90.     color: #F18000;
  91.     font-size: 13px;
  92.     line-height: 25px;
  93.     text-decoration: none;
  94. }
  95. #login-box a:hover {
  96.     color: #FFC100;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement