Created
January 24, 2019 15:45
-
-
Save techiediaries/f69d726ac192346274a7127af690e3bd to your computer and use it in GitHub Desktop.
Login form CSS example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .container { | |
| background:rgba(2, 60, 117, 0.5); | |
| border-radius: 5px; | |
| box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1); | |
| width:409px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .logo{ | |
| font-family: "museo-slab"; | |
| font-size:20px; | |
| text-align: center; | |
| padding: 20px 20px 0; | |
| margin:0; | |
| } | |
| .login-item { | |
| color: #ffff; | |
| padding:25px 25px 0; | |
| margin: 20px 20px 0; | |
| border-radius: 3px; | |
| } | |
| input { | |
| border: 0; | |
| color: inherit; | |
| font: inherit; | |
| margin: 0; | |
| outline: 0; | |
| padding: 0; | |
| -webkit-transition: background-color .3s; | |
| transition: background-color .3s; | |
| } | |
| .user:before { | |
| content: '\f007'; | |
| font: 14px fontawesome; | |
| color: #5b5b5b; | |
| } | |
| .lock:before { | |
| content: '\f023'; | |
| font: 14px fontawesome; | |
| color: #5b5b5b; | |
| } | |
| .form input[type="password"], .form input[type="email"], .form input[type="submit"] { | |
| width: 100%; | |
| } | |
| .form-login label, | |
| .form-login input[type="email"], | |
| .form-login input[type="password"], | |
| .form-login input[type="submit"] { | |
| border-radius: 0.25rem; | |
| padding: 1rem; | |
| color: #3A3F44; | |
| } | |
| .form-login label { | |
| background-color: #222222; | |
| border-bottom-right-radius: 0; | |
| border-top-right-radius: 0; | |
| padding-left: 1.25rem; | |
| padding-right: 1.25rem; | |
| } | |
| .form-login input[type="email"], .form-login input[type="password"] { | |
| background-color: #ffffff; | |
| border-bottom-left-radius: 0; | |
| border-top-left-radius: 0; | |
| } | |
| .form-login input[type="email"]:focus, .form-login input[type="email"]:hover, .form-login input[type="password"]:focus, .form-login input[type="password"]:hover { | |
| background-color: #eeeeee; | |
| } | |
| .form-login input[type="submit"] { | |
| background-color: rgb(86, 69, 238); | |
| color: #eee; | |
| font-weight: bold; | |
| text-transform: uppercase; | |
| } | |
| .form-login input[type="submit"]:focus, .form-login input[type="submit"]:hover { | |
| background-color: #120a2e; | |
| } | |
| .form-field { | |
| display: -webkit-box; | |
| display: -webkit-flex; | |
| display: -ms-flexbox; | |
| display: flex; | |
| margin-bottom: 2rem; | |
| } | |
| .hidden { | |
| border: 0; | |
| clip: rect(0 0 0 0); | |
| height: 1px; | |
| margin: -1px; | |
| overflow: hidden; | |
| padding: 0; | |
| position: absolute; | |
| width: 1px; | |
| } | |
| .text--center { | |
| text-align: center; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment